Completed
Push — master ( b8d4c9...17f495 )
by Nassif
02:53
created
src/Output/Output.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 
55 55
     public function advanceProgress($step = 1)
56 56
     {
57
-        if (! $this->progress) {
57
+        if (!$this->progress) {
58 58
             throw new \Exception('No progress was created.');
59 59
         }
60 60
 
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
      */
79 79
     public function info($string)
80 80
     {
81
-        if (! $this->output) {
81
+        if (!$this->output) {
82 82
             return;
83 83
         }
84 84
 
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
      */
93 93
     public function line($string)
94 94
     {
95
-        if (! $this->output) {
95
+        if (!$this->output) {
96 96
             return;
97 97
         }
98 98
 
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
      */
107 107
     public function comment($string)
108 108
     {
109
-        if (! $this->output) {
109
+        if (!$this->output) {
110 110
             return;
111 111
         }
112 112
 
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
      */
121 121
     public function error($string)
122 122
     {
123
-        if (! $this->output) {
123
+        if (!$this->output) {
124 124
             return;
125 125
         }
126 126
 
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
      */
135 135
     public function done($string)
136 136
     {
137
-        if (! $this->output) {
137
+        if (!$this->output) {
138 138
             return;
139 139
         }
140 140
 
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
         while ($remaining > $cycle) {
183 183
             $remaining -= $cycle;
184 184
 
185
-            $this->setSleepModeStateInProgressBar($state = 'Remaining : '.$this->formatRemainingSeconds($remaining));
185
+            $this->setSleepModeStateInProgressBar($state = 'Remaining : ' . $this->formatRemainingSeconds($remaining));
186 186
             $this->line($state);
187 187
 
188 188
             sleep($cycle);
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
      */
202 202
     protected function formatRemainingSeconds($seconds)
203 203
     {
204
-        return gmdate('i', $seconds).'m, '.gmdate('s', $seconds).'s';
204
+        return gmdate('i', $seconds) . 'm, ' . gmdate('s', $seconds) . 's';
205 205
     }
206 206
 
207 207
     /**
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
     /** @return Progress */
220 220
     protected function createProgressInstance($max, $uid)
221 221
     {
222
-        if (! class_exists($progressClass = config('consolify.progress.concrete_class'))) {
222
+        if (!class_exists($progressClass = config('consolify.progress.concrete_class'))) {
223 223
             throw new \LogicException("Cannot find progress class [$progressClass]");
224 224
         }
225 225
 
Please login to merge, or discard this patch.