| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | 9 | public static function getJobNames(InputInterface $input, Command $command) |
|
| 29 | { |
||
| 30 | 9 | $jobNames = $input->getArgument(self::ARGUMENT_JOBNAMES); |
|
| 31 | |||
| 32 | 9 | if (empty($jobNames)) { |
|
| 33 | 1 | throw new \InvalidArgumentException(sprintf('Nothing specified, nothing %sed. Maybe you wanted to say "%s ."?', $command->getName(), $command->getName())); |
|
| 34 | } |
||
| 35 | |||
| 36 | 8 | return $jobNames; |
|
| 37 | } |
||
| 38 | |||
| 47 |