add debugging

This commit is contained in:
Dennis
2021-07-12 12:31:19 +02:00
parent a9357034c8
commit 00ef1f470f

View File

@@ -67,7 +67,8 @@ class Site extends Resource
string $projectRoot = '/',
string $systemUser = 'ploi',
string $systemUserPassword = null
): stdClass {
): stdClass
{
// Remove the id
$this->setId(null);
@@ -100,6 +101,11 @@ class Site extends Resource
throw $exception;
}
// TODO: Debugging purposes
if (!$response->getJson() || !$response->getJson()->data) {
info(json_encode($response->getJson()));
}
// Set the id of the site
$this->setId($response->getJson()->data->id);
@@ -142,7 +148,7 @@ class Site extends Resource
return $response->getJson()->data;
}
public function phpVersion($version = '7.4') :stdClass
public function phpVersion($version = '7.4'): stdClass
{
// Set the options
$options = [