webservice.php
Call to method beginProfile
from undeclared class \App\Log
Open
Open
\App\Log::beginProfile(\App\Request::getRequestMethod() . '::' . $_SERVER['REQUEST_URI'], 'WebServiceAPI');
- Exclude checks
Call to method error
from undeclared class \App\Log
Open
Open
\App\Log::error($e->getMessage() . PHP_EOL . $e->__toString());
- Exclude checks
Call to method error
from undeclared class \App\Log
Open
Open
\App\Log::error($e->getMessage() . PHP_EOL . $e->__toString());
- Exclude checks
Cannot access self
when not in object context Open
Open
$process = $controller->preProcess();
- Exclude checks
Cannot access self
when not in object context Open
Open
$controller->process();
- Exclude checks
Cannot access self
when not in object context Open
Open
$controller->postProcess();
- Exclude checks
Cannot access self
when not in object context Open
Open
$controller->handleError($e);
- Exclude checks
Call to method endProfile
from undeclared class \App\Log
Open
Open
\App\Log::endProfile(\App\Request::getRequestMethod() . '::' . $_SERVER['REQUEST_URI'], 'WebServiceAPI');
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
if ($process) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$ex = new \Api\Core\Exception($e->getMessage(), $e->getCode(), $e);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$controller->process();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$ex->handleError();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
try {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
} catch (\Throwable $e) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
} else {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$ex = new \Api\Core\Exception($e->getMessage(), $e->getCode(), $e);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
throw new \App\Exceptions\NoPermittedToApi('Webservice - Service is not active', 403);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$controller->postProcess();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
if (!headers_sent()) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$e->handleError();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
if (!\in_array('webservice', \App\Config::api('enabledServices'))) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$controller->handleError($e);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$ex->handleError();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$ex = new \Api\Core\Exception($e->getDisplayMessage(), $e->getCode(), $e);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
if ($e instanceof \App\Exceptions\AppException) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
\App\Log::error($e->getMessage() . PHP_EOL . $e->__toString());
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
\App\Log::error($e->getMessage() . PHP_EOL . $e->__toString());
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
} else {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$controller = Api\Controller::getInstance();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$process = $controller->preProcess();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
if ($e instanceof \Api\Core\Exception) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks