YetiForceCompany/YetiForceCRM

View on GitHub
token.php

Summary

Maintainability
A
0 mins
Test Coverage

Suspicious array access to bool
Open

            header("location: {$result['redirect']}");
Severity: Minor
Found in token.php by phan

Cannot access self when not in object context
Open

\App\Controller\Headers::getInstance()->send();
Severity: Critical
Found in token.php by phan

Assigning float to property but \App\Process::$startTime is int
Open

\App\Process::$startTime = microtime(true);
Severity: Minor
Found in token.php by phan

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

        \App\Log::info($th->getMessage() . PHP_EOL . $th->__toString());
Severity: Critical
Found in token.php by phan

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

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

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

        echo $message;
Severity: Minor
Found in token.php by phpcodesniffer

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

        \App\Log::info($th->getMessage() . PHP_EOL . $th->__toString());
Severity: Minor
Found in token.php by phpcodesniffer

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

        $request = \App\Request::init();
Severity: Minor
Found in token.php by phpcodesniffer

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

    }
Severity: Minor
Found in token.php by phpcodesniffer

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

            throw new \App\Exceptions\Security('ERR_TOKEN_DOES_NOT_EXIST', 405);
Severity: Minor
Found in token.php by phpcodesniffer

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

        if ($request->isEmpty('token')) {
Severity: Minor
Found in token.php by phpcodesniffer

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

            throw new \App\Exceptions\AppException('ERR_NO_TOKEN', 405);
Severity: Minor
Found in token.php by phpcodesniffer

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

        if (isset($result['redirect'])) {
Severity: Minor
Found in token.php by phpcodesniffer

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

    header('location: install/Install.php');
Severity: Minor
Found in token.php by phpcodesniffer

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

        $result = \App\Utils\Tokens::execute($token, $tokenData);
Severity: Minor
Found in token.php by phpcodesniffer

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

        $tokenData = \App\Utils\Tokens::get($token);
Severity: Minor
Found in token.php by phpcodesniffer

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

        $message = $th->getMessage();
Severity: Minor
Found in token.php by phpcodesniffer

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

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

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

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

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

            $message = $th->getDisplayMessage();
Severity: Minor
Found in token.php by phpcodesniffer

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

        $token = $request->getByType('token', \App\Purifier::ALNUM);
Severity: Minor
Found in token.php by phpcodesniffer

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

        }
Severity: Minor
Found in token.php by phpcodesniffer

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

        }
Severity: Minor
Found in token.php by phpcodesniffer

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

        if (empty($tokenData)) {
Severity: Minor
Found in token.php by phpcodesniffer

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

        }
Severity: Minor
Found in token.php by phpcodesniffer

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

            header("location: {$result['redirect']}");
Severity: Minor
Found in token.php by phpcodesniffer

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

        }
Severity: Minor
Found in token.php by phpcodesniffer

There are no issues that match your filters.

Category
Status