Completed
Pull Request — master (#105)
by Aydin
01:46
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;
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
             return $alternate->getRows($style, false);
60 60
         }
61 61
 
62
-        return array_map(function ($row) use ($style) {
62
+        return array_map(function($row) use ($style) {
63 63
             $length = mb_strlen($row);
64 64
 
65 65
             $padding = $style->getContentWidth() - $length;
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
                 case self::POSITION_CENTER:
75 75
                 default:
76 76
                     $padding -= ($this->artLength - $length);
77
-                    $left = ceil($padding / 2);
77
+                    $left = ceil($padding/2);
78 78
                     $row = sprintf('%s%s', str_repeat(' ', $left), $row);
79 79
                     break;
80 80
             }
Please login to merge, or discard this patch.