Passed
Push — master ( b1ba0a...f347cc )
by Hamzah
09:20
created
src/Commands/RepositoryGenerator.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
      */
44 44
     public function handle()
45 45
     {
46
-        $file = explode("/", (string)$this->argument('name'));
46
+        $file = explode("/", (string) $this->argument('name'));
47 47
 
48 48
         $name = $file[count($file) - 1];
49 49
         unset($file[count($file) - 1]);
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
         $this->creator($name, $path, "Interfaces/", 'Interface');
56 56
         $this->creator($name, $path, "Repositories/", 'Repository');
57 57
 
58
-        File::append(__DIR__.'../../../../routes/web.php', "\n" . 'Route::resource(\'' . str_plural($name) . "', '{$name}Controller');");
58
+        File::append(__DIR__ . '../../../../routes/web.php', "\n" . 'Route::resource(\'' . str_plural($name) . "', '{$name}Controller');");
59 59
 
60 60
     }
61 61
 
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
             $this->getStub($type)
92 92
         );
93 93
 
94
-        $path = $this->checkFolder(__DIR__."../../../../app/{$folder}{$path}/");
94
+        $path = $this->checkFolder(__DIR__ . "../../../../app/{$folder}{$path}/");
95 95
         file_put_contents($path . "{$name}{$type}.php", $template);
96 96
 
97 97
     }
Please login to merge, or discard this patch.
src/RepositoryServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
     public function __construct($app)
32 32
     {
33 33
         parent::__construct($app);
34
-        $contractsFolder = realpath(__DIR__.'../../../../app/Contracts');
34
+        $contractsFolder = realpath(__DIR__ . '../../../../app/Contracts');
35 35
         $Directory = new \RecursiveDirectoryIterator($contractsFolder);
36 36
         $Iterator = new \RecursiveIteratorIterator($Directory);
37 37
         $Regex = new \RegexIterator($Iterator, '/^.+\.php$/i', \RecursiveRegexIterator::GET_MATCH);
Please login to merge, or discard this patch.