Completed
Pull Request — master (#27)
by
unknown
02:22
created
src/MenuItem/AsciiArtItem.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
             $style->getContentWidth(),
64 64
             $this->artLength);
65 65
 
66
-        return array_map(function ($row) use ($justificationHelper) {
66
+        return array_map(function($row) use ($justificationHelper) {
67 67
             return $justificationHelper->justifyRow($row);
68 68
         }, explode("\n", $this->text));
69 69
     }
Please login to merge, or discard this patch.
src/MenuItem/Helper/AsciiArtItemJustificationHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
         $padding = $this->_getPadding($row);
60 60
         $row = rtrim($row);
61 61
         $padding = $padding - ($this->artLength - mb_strlen($row));
62
-        $left = ceil($padding / 2);
62
+        $left = ceil($padding/2);
63 63
         $right = $padding - $left;
64 64
         return sprintf('%s%s%s', str_repeat(' ', $left), $row, str_repeat(' ', $right));
65 65
     }
Please login to merge, or discard this patch.