Passed
Branch master (af98ab)
by Hamzah
20:42
created
src/Commands/Generator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 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 !';
Please login to merge, or discard this patch.
src/GeneratorServiceProvider.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -25,16 +25,16 @@  discard block
 block discarded – undo
25 25
         }
26 26
 
27 27
         $this->publishes([
28
-            __DIR__.'/config' => realpath('config'),
28
+            __DIR__ . '/config' => realpath('config'),
29 29
         ], 'repository-generator');
30 30
 
31 31
         if (null === $this->app['config']->get('repository')) {
32
-            $this->app['config']->set('repository', require __DIR__.'/config/repository.php');
32
+            $this->app['config']->set('repository', require __DIR__ . '/config/repository.php');
33 33
         }
34
-        $this->mergeConfigFrom(__DIR__.'/config/repository.php', 'repository-config');
34
+        $this->mergeConfigFrom(__DIR__ . '/config/repository.php', 'repository-config');
35 35
         $resourcesPathStub = resource_path('/stubs');
36
-        $stubPath = realpath(__DIR__.'/../stubs');
37
-        $langPath = Config::get('repository.lang_path').'/en';
36
+        $stubPath = realpath(__DIR__ . '/../stubs');
37
+        $langPath = Config::get('repository.lang_path') . '/en';
38 38
 
39 39
         if (!is_dir($resourcesPathStub)) {
40 40
             mkdir($resourcesPathStub, 0777, true);
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
 
43 43
         $this->publishes([
44 44
             $stubPath => Config::get('repository.stubs_path', $resourcesPathStub),
45
-            __DIR__.'/lang' => $langPath,
45
+            __DIR__ . '/lang' => $langPath,
46 46
         ], 'repository-stub');
47 47
     }
48 48
 
Please login to merge, or discard this patch.