| Conditions | 3 |
| Paths | 3 |
| Total Lines | 18 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 3.009 |
| Changes | 0 | ||
| 1 | <?php |
||
| 49 | { |
||
| 50 | 7 | return isset($property['type']) === true && (string) $property['type'] === 'array'; |
|
| 51 | } |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @return mixed |
||
| 55 | */ |
||
| 56 | 6 | private function normalizeBoolValue(string $value) |
|
| 57 | { |
||
| 58 | 6 | if ($value === 'true' || $value === 'TRUE') { |
|
| 59 | 4 | return true; |
|
| 60 | } |
||
| 61 | |||
| 62 | 6 | if ($value === 'false' || $value === 'FALSE') { |
|
| 63 | 1 | return false; |
|
| 64 | } |
||
| 65 | |||
| 66 | 6 | return $value; |
|
| 67 | } |
||
| 86 |