Conditions | 2 |
Paths | 2 |
Total Lines | 16 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php namespace Indatus\Dispatcher; |
||
35 | 2 | public function run( |
|
36 | ScheduledCommandInterface $scheduledCommand, |
||
37 | array $arguments = [], |
||
38 | array $options = [], |
||
39 | Debugger $debugger = null |
||
40 | ) { |
||
41 | 2 | $runCommand = $this->commandService->getRunCommand($scheduledCommand, $arguments, $options); |
|
42 | |||
43 | 2 | if (!is_null($debugger)) { |
|
44 | 1 | $debugger->commandRun($scheduledCommand, $runCommand); |
|
45 | 1 | } |
|
46 | |||
47 | 2 | exec($runCommand); |
|
48 | |||
49 | 2 | return true; |
|
50 | } |
||
51 | } |
||
52 |