| Total Complexity | 7 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Changes | 10 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | class ConsoleHelper |
||
| 16 | { |
||
| 17 | /** Allows for mocking the Windows OS check. Remember to clear the mock after the test. */ |
||
| 18 | protected static ?bool $enableLaravelPrompts = null; |
||
| 19 | |||
| 20 | public static function clearMocks(): void |
||
| 21 | { |
||
| 22 | static::$enableLaravelPrompts = null; |
||
| 23 | } |
||
| 24 | |||
| 25 | public static function disableLaravelPrompts(): void |
||
| 26 | { |
||
| 27 | static::$enableLaravelPrompts = false; |
||
| 28 | } |
||
| 29 | |||
| 30 | public static function mockWindowsOs(bool $isWindowsOs): void |
||
| 33 | } |
||
| 34 | |||
| 35 | public static function canUseLaravelPrompts(InputInterface $input): bool |
||
| 42 | } |
||
| 43 | } |
||
| 44 |