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 |
||
42 | 3 | public function execute(InputInterface $input, OutputInterface $output) |
|
43 | { |
||
44 | 3 | $files = $this->files->toArray(); |
|
45 | |||
46 | 3 | if (count($files)) { |
|
47 | 2 | $bull = PHP_EOL . '- '; |
|
48 | 2 | throw new RuntimeException( |
|
49 | sprintf( |
||
50 | 2 | 'The following files are not allowed:%s', |
|
51 | 2 | rtrim($bull . implode($bull, $files) . PHP_EOL . $this->reason) |
|
52 | ) |
||
53 | ); |
||
54 | } |
||
55 | 1 | } |
|
56 | } |
||
57 |