@@ -102,7 +102,7 @@ |
||
102 | 102 | $wrapper = new WordWrapper($options->get(FormatterOptions::TERMINAL_WIDTH)); |
103 | 103 | $wrapper->setPaddingFromStyle($tableStyle); |
104 | 104 | if (!empty($headers)) { |
105 | - $headerLengths = array_map(function ($item) { return strlen($item); }, $headers); |
|
105 | + $headerLengths = array_map(function($item) { return strlen($item); }, $headers); |
|
106 | 106 | $wrapper->setMinimumWidths($headerLengths); |
107 | 107 | } |
108 | 108 | return $wrapper->wrap($data); |
@@ -261,7 +261,7 @@ |
||
261 | 261 | protected static function longestWordLength($str) |
262 | 262 | { |
263 | 263 | $words = preg_split('/[ -]/', $str); |
264 | - $lengths = array_map(function ($s) { return strlen($s); }, $words); |
|
264 | + $lengths = array_map(function($s) { return strlen($s); }, $words); |
|
265 | 265 | return max($lengths); |
266 | 266 | } |
267 | 267 | } |