| Conditions | 4 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 45 | private function checkEnumeration($v) |
||
|
|
|||
| 46 | { |
||
| 47 | if (is_array($this->enumeration) && 0 != count($this->enumeration) && !in_array($v, $this->enumeration)) { |
||
| 48 | throw new \InvalidArgumentException( |
||
| 49 | 'The provided value for ' . get_class($this) . ' is not ' . |
||
| 50 | implode(' || ', $this->enumeration) |
||
| 51 | ); |
||
| 52 | } |
||
| 53 | } |
||
| 54 | } |
||
| 55 |
Short variable names may make your code harder to understand. Variable names should be self-descriptive. This check looks for variable names who are shorter than a configured minimum.