Passed
Push — develop ( b37e90...aa265d )
by Alec
02:38
created
src/Tools/Spinner/Core/AbstractSpinner.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -32,8 +32,8 @@  discard block
 block discarded – undo
32 32
         $this->styles = $this->getStyles();
33 33
 
34 34
         $this->message = $this->refineStr($message, $prefix, $suffix);
35
-        $strLen = strlen($this->message . static::PADDING_STR) + 2;
36
-        $this->resetStr = Strings::ESC . "[{$strLen}D";
35
+        $strLen = strlen($this->message.static::PADDING_STR) + 2;
36
+        $this->resetStr = Strings::ESC."[{$strLen}D";
37 37
         $this->style = $this->getStyle();
38 38
     }
39 39
 
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
      */
77 77
     protected function refineStr(string $str, string $prefix, string $suffix): string
78 78
     {
79
-        return $prefix . $str . $suffix;
79
+        return $prefix.$str.$suffix;
80 80
     }
81 81
 
82 82
     /**
@@ -86,43 +86,43 @@  discard block
 block discarded – undo
86 86
     {
87 87
         if (null === $this->styles) {
88 88
             return
89
-                function (): string {
89
+                function(): string {
90 90
                     $value = (string)$this->spinnerSymbols->value();
91
-                    return static::PADDING_STR . $value;
91
+                    return static::PADDING_STR.$value;
92 92
                 };
93 93
         }
94 94
         return
95
-            function (): string {
95
+            function(): string {
96 96
                 $symbol = (string)$this->spinnerSymbols->value();
97 97
                 $style = $this->styles ? (string)$this->styles->value() : '';
98 98
                 return
99
-                    static::PADDING_STR .
100
-                    Strings::ESC .
101
-                    "[{$style}m{$symbol}" .
102
-                    Strings::ESC . '[0m';
99
+                    static::PADDING_STR.
100
+                    Strings::ESC.
101
+                    "[{$style}m{$symbol}".
102
+                    Strings::ESC.'[0m';
103 103
             };
104 104
     }
105 105
 
106 106
     /** {@inheritDoc} */
107 107
     public function begin(): string
108 108
     {
109
-        return $this->work() . $this->resetStr;
109
+        return $this->work().$this->resetStr;
110 110
     }
111 111
 
112 112
     protected function work(): string
113 113
     {
114
-        return ($this->style)() . $this->message;
114
+        return ($this->style)().$this->message;
115 115
     }
116 116
 
117 117
     /** {@inheritDoc} */
118 118
     public function spin(): string
119 119
     {
120
-        return $this->work() . $this->resetStr;
120
+        return $this->work().$this->resetStr;
121 121
     }
122 122
 
123 123
     /** {@inheritDoc} */
124 124
     public function end(): string
125 125
     {
126
-        return $this->resetStr . Strings::ESC . '[K';
126
+        return $this->resetStr.Strings::ESC.'[K';
127 127
     }
128 128
 }
Please login to merge, or discard this patch.