| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 30 | public function handle() |
||
| 31 | { |
||
| 32 | $output = new BufferedOutput(); |
||
| 33 | |||
| 34 | $this->runCommand('route:list', [], $output); |
||
| 35 | |||
| 36 | $className = CheckForPartialMaintenanceMode::class; |
||
| 37 | |||
| 38 | preg_match_all('/'.preg_quote($className).':(.*[a-z])/', $output->fetch(), $matches); |
||
| 39 | |||
| 40 | $parts = collect($matches[0])->unique()->map(function ($part) use ($className) { |
||
| 41 | return str_replace($className.':', '', $part); |
||
| 42 | }); |
||
| 43 | |||
| 44 | $this->line('Parts in use: '.$parts->join(', ', ' and ')); |
||
| 45 | } |
||
| 46 | } |
||
| 47 |