| Conditions | 4 |
| Paths | 4 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 20 |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 26 | } |
||
| 27 | |||
| 28 | public static function column(array $array, $index) |
||
| 29 | { |
||
| 30 | return array_map(function ($e) use ($index) { return $e[$index]; }, $array); |
||
| 31 | } |
||
| 32 | |||
| 33 | 1 | public static function find(array $array, callable $tester) |
|
| 34 | { |
||
| 35 | 1 | foreach ($array as $key => $value) { |
|
| 36 | 1 | if ($tester($key, $value)) { |
|
| 37 | 1 | return $key; |
|
| 43 | } |