| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 13 | 
| Code Lines | 8 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 5 | 
| CRAP Score | 2.2109 | 
| Changes | 1 | ||
| Bugs | 0 | Features | 1 | 
| 1 | <?php  | 
            ||
| 49 | 5 | public static function mkdir($path)  | 
            |
| 50 |     { | 
            ||
| 51 | 5 | $path = Yii::getAlias($path);  | 
            |
| 52 | 5 | $path = rtrim(trim($path), '/');  | 
            |
| 53 | 5 |         if (!file_exists($path)) { | 
            |
| 54 | mkdir($path, 0777, true);  | 
            ||
| 55 |             Yii::warning('Created dir:  ' . $path . '/', 'file'); | 
            ||
| 56 | |||
| 57 | return true;  | 
            ||
| 58 | }  | 
            ||
| 59 | |||
| 60 | 5 | return false;  | 
            |
| 61 | }  | 
            ||
| 62 | }  | 
            ||
| 63 |