Conditions | 4 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 4 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
48 | 1 | public function check(InterceptedCommand $intercepted): bool |
|
49 | { |
||
50 | if ( |
||
51 | 1 | $intercepted->getInput()->hasOption($this->option) |
|
52 | // If the option has a value or does not accept a value |
||
53 | 1 | && ($intercepted->getInput()->getOption($this->option) |
|
54 | 1 | || !$intercepted->getArtisan()->getDefinition()->getOption($this->option)->acceptValue()) |
|
55 | ) { |
||
56 | 1 | return true; |
|
57 | } |
||
58 | 1 | return false; |
|
59 | |||
75 |