Completed
Pull Request — master (#13)
by Andrea Marco
05:42
created
src/Console/ModelsFinder.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
      */
21 21
     public function findInDirectory(string $directory) : array
22 22
     {
23
-        $models = [];
23
+        $models = [ ];
24 24
         $iterator = Finder::create()->files()->name('*.php')->in($directory)->depth(0)->sortByName();
25 25
 
26 26
         foreach ($iterator as $file) {
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
             $isModel = is_subclass_of($class, 'Illuminate\Database\Eloquent\Model');
33 33
 
34 34
             if ($isModel && !$isAbstract) {
35
-                $models[] = new $class;
35
+                $models[ ] = new $class;
36 36
             }
37 37
         }
38 38
 
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
     {
50 50
         preg_match('/namespace (.*);/', $file->getContents(), $matches);
51 51
 
52
-        if (is_null($namespace = $matches[1] ?? null)) {
52
+        if (is_null($namespace = $matches[ 1 ] ?? null)) {
53 53
             return null;
54 54
         }
55 55
 
Please login to merge, or discard this patch.