We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Conditions | 3 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 3.7085 |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 26 | 8 | protected function checkRequirements($id, array $tag) |
|
| 27 | { |
||
| 28 | 8 | parent::checkRequirements($id, $tag); |
|
| 29 | |||
| 30 | 8 | if (!isset($tag['method']) || !is_string($tag['method'])) { |
|
| 31 | throw new \InvalidArgumentException( |
||
| 32 | sprintf('Service tagged "%s" must have valid "method" argument.', $id) |
||
| 33 | ); |
||
| 34 | } |
||
| 35 | 8 | } |
|
| 36 | } |
||
| 37 |