Conditions | 3 |
Paths | 3 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 3 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | public static function getMaxKeyLength(array $array) |
||
19 | { |
||
20 | 1 | $maxKeyLength = '0'; |
|
21 | 1 | foreach ($array as $key => $value) { |
|
22 | 1 | $currentLength = static::getVisibleStringLength($key); |
|
23 | |||
24 | 1 | if ($currentLength > $maxKeyLength) { |
|
25 | 1 | $maxKeyLength = $currentLength; |
|
26 | 1 | } |
|
27 | 1 | } |
|
28 | |||
29 | 1 | return $maxKeyLength; |
|
30 | } |
||
31 | |||
89 |