@@ -33,7 +33,7 @@ |
||
| 33 | 33 | |
| 34 | 34 | /** |
| 35 | 35 | * @param string $command Sprintf formatted string @see http://php.net/manual/en/function.sprintf.php |
| 36 | - * @param array $params |
|
| 36 | + * @param string[] $params |
|
| 37 | 37 | * @return ExecutionResult |
| 38 | 38 | */ |
| 39 | 39 | public function exec($command, $params) |
@@ -4,7 +4,6 @@ |
||
| 4 | 4 | use ivol\Config\ConfigurationFactory; |
| 5 | 5 | use ivol\EventDispatcher\AfterExecuteEvent; |
| 6 | 6 | use ivol\EventDispatcher\BeforeExecuteEvent; |
| 7 | -use ivol\EventDispatcher\EscapeArgsSubscriber; |
|
| 8 | 7 | use Symfony\Component\EventDispatcher\EventDispatcher; |
| 9 | 8 | |
| 10 | 9 | class ExecutionWrapper |
@@ -3,7 +3,6 @@ |
||
| 3 | 3 | |
| 4 | 4 | use ivol\EventDispatcher\AfterExecuteEvent; |
| 5 | 5 | use ivol\EventDispatcher\BeforeExecuteEvent; |
| 6 | -use ivol\ExecutionContext; |
|
| 7 | 6 | use ivol\ExecutionWrapper; |
| 8 | 7 | use Symfony\Component\EventDispatcher\EventSubscriberInterface; |
| 9 | 8 | |
@@ -2,7 +2,6 @@ |
||
| 2 | 2 | namespace ivol\tests; |
| 3 | 3 | |
| 4 | 4 | use Composer\EventDispatcher\Event; |
| 5 | -use ivol\Config\ConfigurationFactory; |
|
| 6 | 5 | use ivol\EventDispatcher\AfterExecuteEvent; |
| 7 | 6 | use ivol\EventDispatcher\BeforeExecuteEvent; |
| 8 | 7 | use ivol\ExecutionContext; |
@@ -58,7 +58,7 @@ |
||
| 58 | 58 | $this->assertInstanceOf('ivol\EventDispatcher\BeforeExecuteEvent', $actualEvents[0]); |
| 59 | 59 | $this->assertEquals(new ExecutionContext('echo %s', array('123')), $actualEvents[0]->getParams()); |
| 60 | 60 | $this->assertInstanceOf('ivol\EventDispatcher\AfterExecuteEvent', $actualEvents[1]); |
| 61 | - $this->assertEquals(new ExecutionResult(0 , array('123')), $actualEvents[1]->getResult()); |
|
| 61 | + $this->assertEquals(new ExecutionResult(0, array('123')), $actualEvents[1]->getResult()); |
|
| 62 | 62 | } |
| 63 | 63 | } |
| 64 | 64 | |