Passed
Push — main ( d1dc7e...8af210 )
by ANDREY
11:09
created
src/VPA/Console/Components/Table1D.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -64,10 +64,10 @@
 block discarded – undo
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]);
Please login to merge, or discard this patch.
src/VPA/Console/Glyphs/Text.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.