| 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 |
||
| 41 | public static function getMaxValueLength(array $array) |
||
| 42 | { |
||
| 43 | 1 | $maxValueLength = '0'; |
|
| 44 | 1 | foreach ($array as $value) { |
|
| 45 | 1 | $currentLength = static::getVisibleStringLength($value); |
|
| 46 | |||
| 47 | 1 | if ($currentLength > $maxValueLength) { |
|
| 48 | 1 | $maxValueLength = $currentLength; |
|
| 49 | 1 | } |
|
| 50 | 1 | } |
|
| 51 | |||
| 52 | 1 | return $maxValueLength; |
|
| 53 | } |
||
| 54 | |||
| 89 |