Completed
Pull Request — master (#55)
by Greg
02:17
created
src/Transformations/Wrap/CalculateWidths.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
     {
53 53
         return $this->calculateColumnWidths(
54 54
             $rows,
55
-            function ($cell) {
55
+            function($cell) {
56 56
                 return strlen($cell);
57 57
             }
58 58
         );
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
     {
66 66
         return $this->calculateColumnWidths(
67 67
             $rows,
68
-            function ($cell) {
68
+            function($cell) {
69 69
                 return static::longestWordLength($cell);
70 70
             }
71 71
         );
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
     protected static function longestWordLength($str)
134 134
     {
135 135
         $words = preg_split('#[ /-]#', $str);
136
-        $lengths = array_map(function ($s) {
136
+        $lengths = array_map(function($s) {
137 137
             return strlen($s);
138 138
         }, $words);
139 139
         return max($lengths);
Please login to merge, or discard this patch.
src/Transformations/Wrap/ColumnWidths.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -188,7 +188,7 @@
 block discarded – undo
188 188
     {
189 189
         return array_reduce(
190 190
             $widths,
191
-            function ($carry, $item) {
191
+            function($carry, $item) {
192 192
                 return $carry + $item;
193 193
             }
194 194
         );
Please login to merge, or discard this patch.