| 1 | <?php |
||
| 10 | class TailCommand extends Command |
||
| 11 | { |
||
| 12 | protected $signature = 'tail {--lines=0} {--clear}'; |
||
| 13 | |||
| 14 | protected $description = 'Tail the latest logfile'; |
||
| 15 | |||
| 16 | public function handle() |
||
| 40 | |||
| 41 | protected function findLatestLogFile(string $directory) |
||
| 53 | |||
| 54 | protected function handleClearOption() |
||
| 55 | { |
||
| 56 | if (! $this->option('clear')) { |
||
| 57 | return; |
||
| 58 | } |
||
| 59 | |||
| 60 | $this->output->write(sprintf("\033\143\e[3J")); |
||
| 61 | } |
||
| 62 | |||
| 63 | protected function executeCommand($command) |
||
| 67 | } |
||
| 68 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.