| Conditions | 6 | 
| Paths | 16 | 
| Total Lines | 26 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 0 | 
| CRAP Score | 42 | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 32 | public function __construct()  | 
            ||
| 33 |     { | 
            ||
| 34 |         if ($appConfigFile = $_SERVER['argv'][3] ?? null) { | 
            ||
| 35 | |||
| 36 | $appConfig = require($appConfigFile); // require first for define YII_ENV and YII_DEBUG.  | 
            ||
| 37 | }  | 
            ||
| 38 | |||
| 39 |         foreach (self::AUTOLOAD_PATHS as $paths) { | 
            ||
| 40 | |||
| 41 |             foreach ($paths as $path) { | 
            ||
| 42 | |||
| 43 |                 if (file_exists($path)) { | 
            ||
| 44 | |||
| 45 | require($path);  | 
            ||
| 46 | |||
| 47 | break;  | 
            ||
| 48 | }  | 
            ||
| 49 | |||
| 50 | }  | 
            ||
| 51 | }  | 
            ||
| 52 | |||
| 53 |         if (isset($appConfig)) { | 
            ||
| 54 | |||
| 55 | new \yii\console\Application($appConfig);  | 
            ||
| 56 | }  | 
            ||
| 57 | }  | 
            ||
| 58 | };  | 
            ||
| 60 |