@@ -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); |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | } |
51 | 51 | $symbols = str_split($resultString); |
52 | 52 | |
53 | - $this->renderMap = $this->getWidth() ? array_chunk(array_map(function ($value) { |
|
53 | + $this->renderMap = $this->getWidth() ? array_chunk(array_map(function($value) { |
|
54 | 54 | return new Symbol($value); |
55 | 55 | }, $symbols), $this->getWidth()) : []; |
56 | 56 | $this->height = count($this->renderMap); |