| Conditions | 3 |
| Paths | 3 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 3.3332 |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 36 | 1 | public static function staticAdminLogon() |
|
| 37 | { |
||
| 38 | 1 | if (self::isTest()) { |
|
| 39 | throw new UserAuthException(); |
||
| 40 | } |
||
| 41 | 1 | if (file_exists(CONFIG_DIR . DIRECTORY_SEPARATOR . 'admins.json')) { |
|
| 42 | return AdminServices::getInstance()->setAdminHeaders(); |
||
| 43 | } else { |
||
| 44 | 1 | return UserController::showAdminManager(); |
|
| 45 | } |
||
| 61 |