Passed
Branch master (af98ab)
by Hamzah
20:42
created
src/Forms/Forms.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,6 +72,6 @@
 block discarded – undo
72 72
 
73 73
     public function getFormStub($type)
74 74
     {
75
-        return file_get_contents(Config::get('repository.stubs_path').'/fields-'.$type.'.stub');
75
+        return file_get_contents(Config::get('repository.stubs_path') . '/fields-' . $type . '.stub');
76 76
     }
77 77
 }
Please login to merge, or discard this patch.
src/config/repository.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -6,11 +6,11 @@
 block discarded – undo
6 6
  * Time: 09:58 am.
7 7
  */
8 8
 return [
9
-    'app_path' => realpath(__DIR__.'/../app/'),
9
+    'app_path' => realpath(__DIR__ . '/../app/'),
10 10
     'route_path' => realpath('routes/'),
11 11
     'resources_path' => realpath('resources'),
12
-    'stubs_path' => realpath('resources').'/stubs/',
13
-    'lang_path' => realpath('resources').'/lang/',
12
+    'stubs_path' => realpath('resources') . '/stubs/',
13
+    'lang_path' => realpath('resources') . '/lang/',
14 14
     'config_path' => realpath('config'),
15 15
 
16 16
     //relative to app path
Please login to merge, or discard this patch.
src/Utility/AbstractRepository.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -115,11 +115,11 @@
 block discarded – undo
115 115
         if (isset($criteria['search'])) {
116 116
             foreach ($this->model->searchable as $method => $columns) {
117 117
                 if (method_exists($this->model, $method)) {
118
-                    $latest->orWhereHas($method, function ($query) use ($criteria, $columns) {
118
+                    $latest->orWhereHas($method, function($query) use ($criteria, $columns) {
119 119
                         /* @var $query Builder */
120
-                        $query->where(function ($query2) use ($criteria, $columns) {
120
+                        $query->where(function($query2) use ($criteria, $columns) {
121 121
                             /* @var $query2 Builder */
122
-                            foreach ((array)$columns as $column) {
122
+                            foreach ((array) $columns as $column) {
123 123
                                 $query2->orWhere($column, 'like', '%' . $criteria['search'] . '%');
124 124
                             }
125 125
                         });
Please login to merge, or discard this patch.
src/Commands/Remover.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
      */
52 52
     public function handle()
53 53
     {
54
-        $file = preg_split(' (/|\\\\) ', (string)$this->argument('name')) ?? [];
54
+        $file = preg_split(' (/|\\\\) ', (string) $this->argument('name')) ?? [];
55 55
 
56 56
         if (!$file) {
57 57
             return 'Something wrong with the inputs !';
Please login to merge, or discard this patch.
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.