YetiForceCompany/YetiForceCRM

View on GitHub
app/Loader.php

Summary

Maintainability
A
0 mins
Test Coverage
F
42%

Static call to undeclared method \Yii::setLogger
Open

Yii::setLogger(Yii::createObject('App\Log'));
Severity: Critical
Found in app/Loader.php by phan

Reference to undeclared class \yii\BaseYii
Open

            parent::endProfile($token, $category);
Severity: Critical
Found in app/Loader.php by phan

Reference to undeclared class \yii\BaseYii
Open

            parent::beginProfile($token, $category);
Severity: Critical
Found in app/Loader.php by phan

Call to method __construct from undeclared class \yii\di\Container
Open

Yii::$container = new \yii\di\Container();
Severity: Critical
Found in app/Loader.php by phan

Static property 'container' on \Yii is undeclared
Open

Yii::$container = new \yii\di\Container();
Severity: Critical
Found in app/Loader.php by phan

Class extends undeclared class \yii\BaseYii
Open

class Yii extends \yii\BaseYii
Severity: Critical
Found in app/Loader.php by phan

Static call to undeclared method \Yii::createObject
Open

Yii::setLogger(Yii::createObject('App\Log'));
Severity: Critical
Found in app/Loader.php by phan

Each class must be in a namespace of at least one level (a top-level vendor name)
Open

class Yii extends \yii\BaseYii
Severity: Minor
Found in app/Loader.php by phpcodesniffer

A file should declare new symbols (classes, functions, constants, etc.) and cause no other side effects, or it should execute logic with side effects, but should not do both. The first symbol is defined on line 12 and the first side effect is on line 46.
Open

<?php
Severity: Minor
Found in app/Loader.php by phpcodesniffer

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

    /**
Severity: Minor
Found in app/Loader.php by phpcodesniffer

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

            parent::beginProfile($token, $category);
Severity: Minor
Found in app/Loader.php by phpcodesniffer

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

    public static function endProfile($token, $category = 'application')
Severity: Minor
Found in app/Loader.php by phpcodesniffer

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

        if (static::$logToProfile) {
Severity: Minor
Found in app/Loader.php by phpcodesniffer

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

    {
Severity: Minor
Found in app/Loader.php by phpcodesniffer

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

                return;
Severity: Minor
Found in app/Loader.php by phpcodesniffer

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

    /** {@inheritdoc} */
Severity: Minor
Found in app/Loader.php by phpcodesniffer

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

    public static function beginProfile($token, $category = 'application')
Severity: Minor
Found in app/Loader.php by phpcodesniffer

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

        if (static::$logToProfile) {
Severity: Minor
Found in app/Loader.php by phpcodesniffer

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

     *
Severity: Minor
Found in app/Loader.php by phpcodesniffer

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

    public static $logToProfile;
Severity: Minor
Found in app/Loader.php by phpcodesniffer

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

    {
Severity: Minor
Found in app/Loader.php by phpcodesniffer

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

     * @var bool
Severity: Minor
Found in app/Loader.php by phpcodesniffer

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

     */
Severity: Minor
Found in app/Loader.php by phpcodesniffer

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

    }
Severity: Minor
Found in app/Loader.php by phpcodesniffer

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

        }
Severity: Minor
Found in app/Loader.php by phpcodesniffer

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

     * Profiler optimization.
Severity: Minor
Found in app/Loader.php by phpcodesniffer

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

            if ($categories && !\in_array($category, $categories)) {
Severity: Minor
Found in app/Loader.php by phpcodesniffer

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

            parent::endProfile($token, $category);
Severity: Minor
Found in app/Loader.php by phpcodesniffer

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

    /** {@inheritdoc} */
Severity: Minor
Found in app/Loader.php by phpcodesniffer

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

            $categories = \Config\Debug::$LOG_PROFILE_CATEGORIES ?? [];
Severity: Minor
Found in app/Loader.php by phpcodesniffer

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

        }
Severity: Minor
Found in app/Loader.php by phpcodesniffer

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

            if ($categories && !\in_array($category, $categories)) {
Severity: Minor
Found in app/Loader.php by phpcodesniffer

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

            }
Severity: Minor
Found in app/Loader.php by phpcodesniffer

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

                return;
Severity: Minor
Found in app/Loader.php by phpcodesniffer

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

            }
Severity: Minor
Found in app/Loader.php by phpcodesniffer

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

            $categories = \Config\Debug::$LOG_PROFILE_CATEGORIES ?? [];
Severity: Minor
Found in app/Loader.php by phpcodesniffer

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

    }
Severity: Minor
Found in app/Loader.php by phpcodesniffer

There are no issues that match your filters.

Category
Status