@@ -64,10 +64,10 @@ |
||
64 | 64 | default => 0, |
65 | 65 | }; |
66 | 66 | if ($columns == 0) { |
67 | - $valueWidth = max(array_map(function ($it) { |
|
67 | + $valueWidth = max(array_map(function($it) { |
|
68 | 68 | return strlen($it); |
69 | 69 | }, $this->data)); |
70 | - $keyWidth = max(array_map(function ($it) { |
|
70 | + $keyWidth = max(array_map(function($it) { |
|
71 | 71 | return strlen($it); |
72 | 72 | }, array_keys($this->data))); |
73 | 73 | $keyRealWidth = min([$keyWidth, $this->firstWidth, $this->firstMaxWidth]); |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | { |
14 | 14 | $this->text = $text; |
15 | 15 | $batches = $this->splitText(); |
16 | - $lengths = array_map(function ($it) { |
|
16 | + $lengths = array_map(function($it) { |
|
17 | 17 | return strlen($it); |
18 | 18 | }, $batches); |
19 | 19 | $this->width = max($lengths); |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | public function render(): GlyphInline |
31 | 31 | { |
32 | 32 | $batches = $this->splitText(); |
33 | - $lengths = array_map(function ($it) { |
|
33 | + $lengths = array_map(function($it) { |
|
34 | 34 | return strlen($it); |
35 | 35 | }, $batches); |
36 | 36 | $this->height = count($batches); |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | 'color' => $this->__get('color'), |
55 | 55 | 'backgroundColor' => $this->__get('backgroundColor'), |
56 | 56 | ]; |
57 | - $this->renderMap = $this->getWidth() ? array_chunk(array_map(function ($value) use ($symbolConfig) { |
|
57 | + $this->renderMap = $this->getWidth() ? array_chunk(array_map(function($value) use ($symbolConfig) { |
|
58 | 58 | return (new Symbol($value))->setConfig($symbolConfig); |
59 | 59 | }, $symbols), $this->getWidth()) : []; |
60 | 60 | $this->height = count($this->renderMap); |