Completed
Pull Request — master (#1)
by Nassif
03:18 queued 01:08
created
src/ConsolifyServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
     public function boot()
13 13
     {
14 14
         $this->publishes([
15
-            __DIR__.'/../config/consolify.php' => config_path('consolify.php'),
15
+            __DIR__ . '/../config/consolify.php' => config_path('consolify.php'),
16 16
         ]);
17 17
     }
18 18
 
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
      */
22 22
     public function register()
23 23
     {
24
-        $this->mergeConfigFrom(__DIR__.'/../config/consolify.php', 'consolify');
24
+        $this->mergeConfigFrom(__DIR__ . '/../config/consolify.php', 'consolify');
25 25
 
26 26
         // ...
27 27
     }
Please login to merge, or discard this patch.
src/Trace/Trace.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
 
123 123
     public function addCommandLine($command)
124 124
     {
125
-        file_put_contents($this->getFile(), "[{$command}]".PHP_EOL, FILE_APPEND);
125
+        file_put_contents($this->getFile(), "[{$command}]" . PHP_EOL, FILE_APPEND);
126 126
     }
127 127
 
128 128
     /**
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
     public function fileToUid($fullPath)
158 158
     {
159 159
         return $this->relativeFileToUid(
160
-            str_replace($this->basePath.'/', '', $fullPath)
160
+            str_replace($this->basePath . '/', '', $fullPath)
161 161
         );
162 162
     }
163 163
 
Please login to merge, or discard this patch.
src/Progress/RedisProgress.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
 
83 83
     public function deletePersisted()
84 84
     {
85
-        $pattern = static::prefixedKey($this->uid).'*';
85
+        $pattern = static::prefixedKey($this->uid) . '*';
86 86
 
87 87
         if (!empty($keys = static::redis()->keys($pattern))) {
88 88
             static::redis()->del(static::redis()->keys($pattern));
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
 
102 102
     protected static function prefixedKey($key)
103 103
     {
104
-        return config('consolify.progress.redis_prefix').$key;
104
+        return config('consolify.progress.redis_prefix') . $key;
105 105
     }
106 106
 
107 107
     protected function elapsed()
Please login to merge, or discard this patch.
src/Output/Output.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -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->formatSeconds($remaining));
185
+            $this->setSleepModeStateInProgressBar($state = 'Remaining : ' . $this->formatSeconds($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
     /**
Please login to merge, or discard this patch.
src/Output/DualOutputCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
      */
82 82
     protected function handeException(Exception $e)
83 83
     {
84
-        $this->error(TraceReserved::FAILED." {$e->getMessage()}");
84
+        $this->error(TraceReserved::FAILED . " {$e->getMessage()}");
85 85
 
86 86
         app()->log->error($e);
87 87
     }
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
      */
99 99
     protected function getNotParsedArgument(InputInterface $input, $index)
100 100
     {
101
-        return explode(' ', (string) $input)[$index];
101
+        return explode(' ', (string)$input)[$index];
102 102
     }
103 103
 
104 104
     /**
@@ -110,6 +110,6 @@  discard block
 block discarded – undo
110 110
      */
111 111
     protected function isVerbose(InputInterface $input)
112 112
     {
113
-        return (bool) substr_count((string) $input, '-vvv');
113
+        return (bool)substr_count((string)$input, '-vvv');
114 114
     }
115 115
 }
Please login to merge, or discard this patch.