| Conditions | 2 |
| Paths | 2 |
| Total Lines | 17 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php namespace Comodojo\Foundation\Console; |
||
| 23 | static public function listen(ConsoleTerminateEvent $event) { |
||
|
|
|||
| 24 | |||
| 25 | $command = $event->getCommand(); |
||
| 26 | $name = $command->getName(); |
||
| 27 | $output = $event->getOutput(); |
||
| 28 | $output->writeln(""); |
||
| 29 | |||
| 30 | if ( $command instanceof AbstractCommand ) { |
||
| 31 | |||
| 32 | $logger = $command->getLogger(); |
||
| 33 | $time = number_format($command->getEndTime(), 2); |
||
| 34 | |||
| 35 | $logger->notice("Command $name tooks $time secs"); |
||
| 36 | |||
| 37 | } |
||
| 38 | |||
| 39 | } |
||
| 40 | |||
| 42 |