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 | 0 |
1 | <?php |
||
26 | 9 | protected function checkRequirements($id, array $tag) |
|
27 | { |
||
28 | 9 | parent::checkRequirements($id, $tag); |
|
29 | |||
30 | 9 | 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 | 9 | } |
|
36 | |||
42 |