Conditions | 3 |
Paths | 2 |
Total Lines | 17 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 11 |
CRAP Score | 3 |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
23 | 6 | public function createService(ServiceLocatorInterface $serviceLocator) |
|
24 | { |
||
25 | 6 | $command = $serviceLocator->get($this->getCommandServiceName()); |
|
26 | 6 | if (!$command instanceof Command) { |
|
27 | 1 | throw new \UnexpectedValueException(sprintf( |
|
28 | 1 | 'Expected type [%s]. Actual type [%s].', |
|
29 | 1 | Command::class, |
|
30 | 1 | is_object($command) ? get_class($command) : gettype($command) |
|
31 | 1 | )); |
|
32 | } |
||
33 | |||
34 | 5 | $input = new RequestInput(new Request(array())); |
|
35 | |||
36 | 5 | $output = new PropertyOutput(); |
|
37 | |||
38 | 5 | return new CheckCommand($command, $input, $output); |
|
39 | } |
||
40 | |||
46 |