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