Passed
Pull Request — master (#4)
by
unknown
03:14
created
src/Commands/Generator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
      */
62 62
     public function handle()
63 63
     {
64
-        $file = preg_split(' (/|\\\\) ', (string)$this->argument('name')) ?? [];
64
+        $file = preg_split(' (/|\\\\) ', (string) $this->argument('name')) ?? [];
65 65
 
66 66
         if (!$file) {
67 67
             return 'Something wrong with the inputs !';
@@ -279,7 +279,7 @@  discard block
 block discarded – undo
279 279
                 $content = $filePath . $repoName . '.php';
280 280
         }
281 281
 
282
-        if(is_dir($filePath) && file_exists($content)){
282
+        if (is_dir($filePath) && file_exists($content)) {
283 283
 
284 284
             // Ask to replace exiting file
285 285
             if ($this->confirm("This file, {$content} already exit, do you want to replace?")) {
Please login to merge, or discard this patch.