| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | 1 | public function actionOff(): int |
|
| 15 | { |
||
| 16 | 1 | $this->stdout("Trying disabling maintenance mode...\n"); |
|
| 17 | 1 | $file = $this->resolveFile(); |
|
| 18 | |||
| 19 | 1 | if (file_exists($file)) { |
|
| 20 | 1 | unlink($file); |
|
| 21 | 1 | $this->stdout("Done\n", Console::FG_GREEN); |
|
| 22 | 1 | return ExitCode::OK; |
|
| 23 | } |
||
| 24 | 1 | ||
| 25 | 1 | $this->stdout("Application is NOT in maintenance mode.\n", Console::FG_YELLOW); |
|
| 26 | return ExitCode::USAGE; |
||
| 27 | } |
||
| 28 | 1 | ||
| 54 |