Completed
Pull Request — master (#45)
by Greg
02:00
created
src/Formatters/TableFormatter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Transformations/WordWrapper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -261,7 +261,7 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.