Completed
Pull Request — master (#1313)
by
unknown
06:39
created
src/Migrations/Migrator.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
      */
89 89
     public function getMigrations($reverse = false)
90 90
     {
91
-        $files = $this->laravel['files']->glob($this->getPath() . '/*_*.php');
91
+        $files = $this->laravel['files']->glob($this->getPath().'/*_*.php');
92 92
 
93 93
         // Once we have the array of files in the directory we will just remove the
94 94
         // extension and take the basename of the file which is all we need when
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
             return [];
98 98
         }
99 99
 
100
-        $files = array_map(function ($file) {
100
+        $files = array_map(function($file) {
101 101
             return str_replace('.php', '', basename($file));
102 102
         }, $files);
103 103
 
@@ -202,8 +202,8 @@  discard block
 block discarded – undo
202 202
 
203 203
         $class = Str::studly($name);
204 204
 
205
-        if (!class_exists($class) && file_exists($this->getPath() . '/' . $file . '.php') ) {
206
-            return include $this->getPath() . '/' . $file . '.php';
205
+        if (!class_exists($class) && file_exists($this->getPath().'/'.$file.'.php')) {
206
+            return include $this->getPath().'/'.$file.'.php';
207 207
         }
208 208
 
209 209
         return new $class();
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
     {
219 219
         $path = $this->getPath();
220 220
         foreach ($files as $file) {
221
-            $this->laravel['files']->requireOnce($path . '/' . $file . '.php');
221
+            $this->laravel['files']->requireOnce($path.'/'.$file.'.php');
222 222
         }
223 223
     }
224 224
 
@@ -301,7 +301,7 @@  discard block
 block discarded – undo
301 301
 
302 302
         $result = $query->orderBy('migration', 'desc')->get();
303 303
 
304
-        return collect($result)->map(function ($item) {
304
+        return collect($result)->map(function($item) {
305 305
             return (array) $item;
306 306
         })->pluck('migration');
307 307
     }
Please login to merge, or discard this patch.