Completed
Pull Request — master (#82)
by
unknown
05:12
created
src/Util/StringUtil.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
     public static function wordwrap(string $str, int $width, string $break = "\n") : string
15 15
     {
16 16
         $length = 0;
17
-        return implode(' ', array_map(function ($word) use (&$length, $width, $break) {
17
+        return implode(' ', array_map(function($word) use (&$length, $width, $break) {
18 18
             $length += (mb_strlen($word) + 1);
19 19
 
20 20
             if ($length > $width) {
Please login to merge, or discard this patch.
src/CliMenuBuilder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -283,7 +283,7 @@  discard block
 block discarded – undo
283 283
 
284 284
     private function itemsHaveExtra(array $items) : bool
285 285
     {
286
-        return !empty(array_filter($items, function (MenuItemInterface $item) {
286
+        return !empty(array_filter($items, function(MenuItemInterface $item) {
287 287
             return $item->showsItemExtra();
288 288
         }));
289 289
     }
@@ -348,7 +348,7 @@  discard block
 block discarded – undo
348 348
 
349 349
     private function buildSubMenus(array $items) : array
350 350
     {
351
-        return array_map(function ($item) {
351
+        return array_map(function($item) {
352 352
             if (!is_string($item)) {
353 353
                 return $item;
354 354
             }
Please login to merge, or discard this patch.
src/Terminal/TerminalInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
     /**
11 11
      * Get terminal details
12 12
      */
13
-    public function getDetails() : string ;
13
+    public function getDetails() : string;
14 14
 
15 15
     /**
16 16
      * Get the available width of the terminal
Please login to merge, or discard this patch.
src/MenuItem/AsciiArtItem.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
77 77
      */
78 78
     public function getRows(MenuStyle $style, bool $selected = false) : array
79 79
     {
80
-        $rows = array_map(function ($row) use ($style) {
80
+        $rows = array_map(function($row) use ($style) {
81 81
             $length = mb_strlen($row);
82 82
 
83 83
             $padding = $style->getContentWidth() - $length;
Please login to merge, or discard this patch.
src/MenuItem/SelectableTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
78 78
 
79 79
         $this->numberOfRows = count($rows);
80 80
 
81
-        return array_map(function ($row, $key) use ($style, $length) {
81
+        return array_map(function($row, $key) use ($style, $length) {
82 82
             $text = $this->disabled ? $style->getDisabledItemText($row) : $row;
83 83
 
84 84
             if ($key === 0) {
Please login to merge, or discard this patch.