Conditions | 3 |
Paths | 3 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
29 | public function runRunCommand(ConsoleTerminateEvent $event) |
||
30 | { |
||
31 | if (!in_array($event->getCommand()->getName(), $this->commands)) { |
||
32 | return; |
||
33 | } |
||
34 | |||
35 | $this->io->writeln(); |
||
36 | if ($this->io->askConfirmation('Do you want to run the phpspec run command now? (Y/n)')) { |
||
37 | $this->io->writeln(); |
||
38 | $this->runRunner->runRunCommand(); |
||
39 | } |
||
40 | } |
||
41 | } |
||
42 |
Adding explicit visibility (
private
,protected
, orpublic
) is generally recommend to communicate to other developers how, and from where this method is intended to be used.