| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 1 | Features | 1 |
| 1 | <?php |
||
| 51 | 3 | public function execute(InputInterface $input, OutputInterface $output) |
|
| 52 | { |
||
| 53 | 3 | $files = $this->files->toArray(); |
|
| 54 | |||
| 55 | 3 | if (count($files)) { |
|
| 56 | 2 | $bull = PHP_EOL . '- '; |
|
| 57 | 2 | throw new RuntimeException( |
|
| 58 | sprintf( |
||
| 59 | 2 | 'The following files are not allowed:%s', |
|
| 60 | 2 | rtrim($bull . implode($bull, $files) . PHP_EOL . $this->reason) |
|
| 61 | ) |
||
| 62 | ); |
||
| 63 | } |
||
| 64 | 1 | } |
|
| 65 | } |
||
| 66 |