@@ -123,6 +123,7 @@ |
||
123 | 123 | |
124 | 124 | /** |
125 | 125 | * Add our custom table style(s) to the table. |
126 | + * @param Table $table |
|
126 | 127 | */ |
127 | 128 | protected static function addCustomTableStyles($table) |
128 | 129 | { |
@@ -4,12 +4,10 @@ |
||
4 | 4 | use Symfony\Component\Console\Output\OutputInterface; |
5 | 5 | use Symfony\Component\Console\Helper\Table; |
6 | 6 | use Symfony\Component\Console\Helper\TableStyle; |
7 | - |
|
8 | 7 | use Consolidation\OutputFormatters\Validate\ValidDataTypesInterface; |
9 | 8 | use Consolidation\OutputFormatters\Options\FormatterOptions; |
10 | 9 | use Consolidation\OutputFormatters\Validate\ValidDataTypesTrait; |
11 | 10 | use Consolidation\OutputFormatters\StructuredData\TableDataInterface; |
12 | -use Consolidation\OutputFormatters\Transformations\ReorderFields; |
|
13 | 11 | use Consolidation\OutputFormatters\Exception\IncompatibleDataException; |
14 | 12 | use Consolidation\OutputFormatters\Transformations\WordWrapper; |
15 | 13 |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | if (!empty($headers)) { |
90 | 90 | array_splice($headers, 1, 0, ':'); |
91 | 91 | } |
92 | - $data = array_map(function ($item) { array_splice($item, 1, 0, ':'); return $item; }, $data); |
|
92 | + $data = array_map(function($item) { array_splice($item, 1, 0, ':'); return $item; }, $data); |
|
93 | 93 | } |
94 | 94 | |
95 | 95 | if ($includeHeaders && !$isList) { |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | $wrapper = new WordWrapper($options->get(FormatterOptions::TERMINAL_WIDTH)); |
114 | 114 | $wrapper->setPaddingFromStyle($tableStyle); |
115 | 115 | if (!empty($headers)) { |
116 | - $headerLengths = array_map(function ($item) { |
|
116 | + $headerLengths = array_map(function($item) { |
|
117 | 117 | return strlen($item); |
118 | 118 | }, $headers); |
119 | 119 | $wrapper->setMinimumWidths($headerLengths); |