@@ -42,7 +42,7 @@ |
||
42 | 42 | { |
43 | 43 | $flattenedRendererList = array_reduce( |
44 | 44 | $this->rendererList, |
45 | - function ($carry, $item) { |
|
45 | + function($carry, $item) { |
|
46 | 46 | return array_merge($carry, $item); |
47 | 47 | }, |
48 | 48 | [] |
@@ -19,7 +19,7 @@ |
||
19 | 19 | * transformation object. |
20 | 20 | * |
21 | 21 | * @param FormatterOptions $options Options that affect output formatting. |
22 | - * @return Consolidation\OutputFormatters\Transformations\TableTransformation |
|
22 | + * @return TableTransformation |
|
23 | 23 | */ |
24 | 24 | public function restructure(FormatterOptions $options) |
25 | 25 | { |
@@ -2,9 +2,6 @@ |
||
2 | 2 | namespace Consolidation\OutputFormatters\StructuredData; |
3 | 3 | |
4 | 4 | use Consolidation\OutputFormatters\FormatterOptions; |
5 | -use Consolidation\OutputFormatters\StructuredData\ListDataInterface; |
|
6 | -use Consolidation\OutputFormatters\Transformations\PropertyParser; |
|
7 | -use Consolidation\OutputFormatters\Transformations\ReorderFields; |
|
8 | 5 | use Consolidation\OutputFormatters\Transformations\TableTransformation; |
9 | 6 | |
10 | 7 | /** |
@@ -260,7 +260,7 @@ |
||
260 | 260 | protected static function longestWordLength($str) |
261 | 261 | { |
262 | 262 | $words = preg_split('/[ -]/', $str); |
263 | - $lengths = array_map(function ($s) { |
|
263 | + $lengths = array_map(function($s) { |
|
264 | 264 | return strlen($s); |
265 | 265 | }, $words); |
266 | 266 | return max($lengths); |
@@ -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) { |
|
105 | + $headerLengths = array_map(function($item) { |
|
106 | 106 | return strlen($item); |
107 | 107 | }, $headers); |
108 | 108 | $wrapper->setMinimumWidths($headerLengths); |