YetiForceCompany/YetiForceCRM

View on GitHub
webservice.php

Summary

Maintainability
A
0 mins
Test Coverage
C
71%

Call to method beginProfile from undeclared class \App\Log
Open

\App\Log::beginProfile(\App\Request::getRequestMethod() . '::' . $_SERVER['REQUEST_URI'], 'WebServiceAPI');
Severity: Critical
Found in webservice.php by phan

Call to method error from undeclared class \App\Log
Open

    \App\Log::error($e->getMessage() . PHP_EOL . $e->__toString());
Severity: Critical
Found in webservice.php by phan

Call to method error from undeclared class \App\Log
Open

        \App\Log::error($e->getMessage() . PHP_EOL . $e->__toString());
Severity: Critical
Found in webservice.php by phan

Cannot access self when not in object context
Open

        $process = $controller->preProcess();
Severity: Critical
Found in webservice.php by phan

Cannot access self when not in object context
Open

            $controller->process();
Severity: Critical
Found in webservice.php by phan

Cannot access self when not in object context
Open

        $controller->postProcess();
Severity: Critical
Found in webservice.php by phan

Cannot access self when not in object context
Open

        $controller->handleError($e);
Severity: Critical
Found in webservice.php by phan

Call to method endProfile from undeclared class \App\Log
Open

\App\Log::endProfile(\App\Request::getRequestMethod() . '::' . $_SERVER['REQUEST_URI'], 'WebServiceAPI');
Severity: Critical
Found in webservice.php by phan

Spaces must be used to indent lines; tabs are not allowed
Open

        if ($process) {
Severity: Minor
Found in webservice.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        }
Severity: Minor
Found in webservice.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

                $ex = new \Api\Core\Exception($e->getMessage(), $e->getCode(), $e);
Severity: Minor
Found in webservice.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    }
Severity: Minor
Found in webservice.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            $controller->process();
Severity: Minor
Found in webservice.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        $ex->handleError();
Severity: Minor
Found in webservice.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    }
Severity: Minor
Found in webservice.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    try {
Severity: Minor
Found in webservice.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    } catch (\Throwable $e) {
Severity: Minor
Found in webservice.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        } else {
Severity: Minor
Found in webservice.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        }
Severity: Minor
Found in webservice.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        $ex = new \Api\Core\Exception($e->getMessage(), $e->getCode(), $e);
Severity: Minor
Found in webservice.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        throw new \App\Exceptions\NoPermittedToApi('Webservice - Service is not active', 403);
Severity: Minor
Found in webservice.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        $controller->postProcess();
Severity: Minor
Found in webservice.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    if (!headers_sent()) {
Severity: Minor
Found in webservice.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            $e->handleError();
Severity: Minor
Found in webservice.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            }
Severity: Minor
Found in webservice.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    if (!\in_array('webservice', \App\Config::api('enabledServices'))) {
Severity: Minor
Found in webservice.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        $controller->handleError($e);
Severity: Minor
Found in webservice.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            $ex->handleError();
Severity: Minor
Found in webservice.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

                $ex = new \Api\Core\Exception($e->getDisplayMessage(), $e->getCode(), $e);
Severity: Minor
Found in webservice.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            if ($e instanceof \App\Exceptions\AppException) {
Severity: Minor
Found in webservice.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    \App\Log::error($e->getMessage() . PHP_EOL . $e->__toString());
Severity: Minor
Found in webservice.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        \App\Log::error($e->getMessage() . PHP_EOL . $e->__toString());
Severity: Minor
Found in webservice.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            } else {
Severity: Minor
Found in webservice.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    $controller = Api\Controller::getInstance();
Severity: Minor
Found in webservice.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        $process = $controller->preProcess();
Severity: Minor
Found in webservice.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        if ($e instanceof \Api\Core\Exception) {
Severity: Minor
Found in webservice.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    }
Severity: Minor
Found in webservice.php by phpcodesniffer

There are no issues that match your filters.

Category
Status