| Conditions | 3 |
| Paths | 3 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 42 | public function handle(ConsoleTerminateEvent $event) |
||
| 43 | { |
||
| 44 | if ($event->getExitCode() !== 0) { |
||
| 45 | //do not try to provision failling commands |
||
| 46 | return; |
||
| 47 | } |
||
| 48 | |||
| 49 | $command = $event->getCommand()->getName(); |
||
| 50 | $input = $event->getInput(); |
||
| 51 | |||
| 52 | if ($this->trigger->decide($command, $input)) { |
||
| 53 | $this->decision->provision($command, $input); |
||
| 54 | } |
||
| 55 | } |
||
| 56 | } |
||
| 57 |