Passed
Push — master ( 2884ce...e7b285 )
by noitran
02:37
created
src/Contracts/Repository/RepositoryInterface.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
      *
15 15
      * @return mixed
16 16
      */
17
-    public function all($columns = ['*']);
17
+    public function all($columns = [ '*' ]);
18 18
 
19 19
     /**
20 20
      * Get paginated collection
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
      *
25 25
      * @return mixed
26 26
      */
27
-    public function paginate($limit = null, $columns = ['*']);
27
+    public function paginate($limit = null, $columns = [ '*' ]);
28 28
 
29 29
     /**
30 30
      * Find by id
@@ -34,5 +34,5 @@  discard block
 block discarded – undo
34 34
      *
35 35
      * @return mixed
36 36
      */
37
-    public function find($id, $columns = ['*']);
37
+    public function find($id, $columns = [ '*' ]);
38 38
 }
Please login to merge, or discard this patch.
src/Repositories/AbstractRepository.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
     {
68 68
         $model = $this->app->make($this->getModelClassName());
69 69
 
70
-        if (! $model instanceof Model) {
70
+        if (!$model instanceof Model) {
71 71
             throw new RepositoryException("Class {$this->getModelClassName()} must be an instance of " . Model::class);
72 72
         }
73 73
 
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
      */
104 104
     public function getColumnNames(array $columns, $model = null): array
105 105
     {
106
-        return array_map(function ($column) use ($model) {
106
+        return array_map(function($column) use ($model) {
107 107
             return $this->getColumnName($column, $model);
108 108
         }, $columns);
109 109
     }
Please login to merge, or discard this patch.
src/ServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
         } else {
29 29
             $publishPath = base_path('config/repositories.php');
30 30
         }
31
-        $this->publishes([$configPath => $publishPath], 'config');
31
+        $this->publishes([ $configPath => $publishPath ], 'config');
32 32
     }
33 33
 
34 34
     /**
Please login to merge, or discard this patch.