Completed
Pull Request — master (#105)
by Aydin
01:53
created
src/MenuItem/AsciiArtItem.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
     {
42 42
         Assertion::inArray($position, [self::POSITION_CENTER, self::POSITION_RIGHT, self::POSITION_LEFT]);
43 43
         
44
-        $this->text = implode("\n", array_map(function (string $line) {
44
+        $this->text = implode("\n", array_map(function(string $line) {
45 45
             return rtrim($line, ' ');
46 46
         }, explode("\n", $text)));
47 47
         $this->position  = $position;
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
 
62 62
         $padding = $style->getContentWidth() - $this->artLength;
63 63
         
64
-        return array_map(function ($row) use ($style, $padding) {
64
+        return array_map(function($row) use ($style, $padding) {
65 65
             switch ($this->position) {
66 66
                 case self::POSITION_LEFT:
67 67
                     break;
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
                     break;
71 71
                 case self::POSITION_CENTER:
72 72
                 default:
73
-                    $left = ceil($padding / 2);
73
+                    $left = ceil($padding/2);
74 74
                     $row = sprintf('%s%s', str_repeat(' ', $left), $row);
75 75
                     break;
76 76
             }
Please login to merge, or discard this patch.