| Conditions | 5 | 
| Paths | 4 | 
| Total Lines | 12 | 
| Code Lines | 4 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 5 | 
| CRAP Score | 5 | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 28 | 9 | public function __invoke($searchable, array $array): array  | 
            |
| 29 |     { | 
            ||
| 30 | 9 |         foreach ($array as $key => $value) { | 
            |
| 31 | /*  | 
            ||
| 32 | * Casts numeric strings to integers/floats.  | 
            ||
| 33 | */  | 
            ||
| 34 | 9 |             if (is_string($value) && is_numeric($value)) { | 
            |
| 35 | 9 | $array[$key] = ctype_digit($value) ? (int) $value : (float) $value;  | 
            |
| 36 | }  | 
            ||
| 37 | }  | 
            ||
| 38 | |||
| 39 | 9 | return $array;  | 
            |
| 40 | }  | 
            ||
| 42 |