app/Loader.php
Static call to undeclared method \Yii::setLogger
Open
Open
Yii::setLogger(Yii::createObject('App\Log'));
- Exclude checks
Reference to undeclared class \yii\BaseYii
Open
Open
parent::endProfile($token, $category);
- Exclude checks
Reference to undeclared class \yii\BaseYii
Open
Open
parent::beginProfile($token, $category);
- Exclude checks
Call to method __construct
from undeclared class \yii\di\Container
Open
Open
Yii::$container = new \yii\di\Container();
- Exclude checks
Static property 'container'
on \Yii
is undeclared Open
Open
Yii::$container = new \yii\di\Container();
- Exclude checks
Class extends undeclared class \yii\BaseYii
Open
Open
class Yii extends \yii\BaseYii
- Exclude checks
Static call to undeclared method \Yii::createObject
Open
Open
Yii::setLogger(Yii::createObject('App\Log'));
- Exclude checks
Each class must be in a namespace of at least one level (a top-level vendor name) Open
Open
class Yii extends \yii\BaseYii
- Exclude checks
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
Open
<?php
- 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
parent::beginProfile($token, $category);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
public static function endProfile($token, $category = 'application')
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
if (static::$logToProfile) {
- 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
return;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
/** {@inheritdoc} */
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
public static function beginProfile($token, $category = 'application')
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
if (static::$logToProfile) {
- 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
public static $logToProfile;
- 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
* @var bool
- 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
}
- 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
* Profiler optimization.
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
if ($categories && !\in_array($category, $categories)) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
parent::endProfile($token, $category);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
/** {@inheritdoc} */
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$categories = \Config\Debug::$LOG_PROFILE_CATEGORIES ?? [];
- 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 ($categories && !\in_array($category, $categories)) {
- 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
return;
- 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
$categories = \Config\Debug::$LOG_PROFILE_CATEGORIES ?? [];
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks