| Conditions | 2 |
| Paths | 2 |
| Total Lines | 15 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 39 | public function configure(array $config) |
||
| 40 | {
|
||
| 41 | $this->setName($config[0] ?? 'unknown'); |
||
| 42 | |||
| 43 | if (count($config) < 4) {
|
||
| 44 | throw new \InvalidArgumentException("No matching minimum format: ['' expression operator");
|
||
| 45 | } |
||
| 46 | |||
| 47 | $this->assertIsExpression($config[1]); |
||
| 48 | $this->assertIsExpression($config[2]); |
||
| 49 | $this->assertIsExpression($config[3]); |
||
| 50 | |||
| 51 | $this->operandA = $this->parser->parse($config[1]); |
||
|
|
|||
| 52 | $this->operandB = $this->parser->parse($config[2]); |
||
| 53 | $this->operandC = $this->parser->parse($config[3]); |
||
| 54 | } |
||
| 67 | } |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.