Passed
Pull Request — master (#241)
by Arman
03:20
created
src/Libraries/Database/Adapters/Idiorm/Statements/Result.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
      */
31 31
     public function get(): array
32 32
     {
33
-        return array_map(function ($element) {
33
+        return array_map(function($element) {
34 34
             $item = clone $this;
35 35
             $item->updateOrmModel($element);
36 36
             return $item;
Please login to merge, or discard this patch.
src/Model/ModelCollection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@
 block discarded – undo
82 82
     {
83 83
         $this->processModels();
84 84
 
85
-        $this->models = array_filter($this->models, function ($m) use ($model) {
85
+        $this->models = array_filter($this->models, function($m) use ($model) {
86 86
             return $m !== $model;
87 87
         });
88 88
 
Please login to merge, or discard this patch.
src/Model/QtModel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@
 block discarded – undo
92 92
      */
93 93
     public function get(): ModelCollection
94 94
     {
95
-        $models = array_map(function ($item) {
95
+        $models = array_map(function($item) {
96 96
             return wrapToModel($item, static::class);
97 97
         }, $this->ormInstance->get());
98 98
 
Please login to merge, or discard this patch.
src/Paginator/Paginator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
             ->offset($this->perPage * ($this->page - 1))
90 90
             ->get();
91 91
 
92
-            $models = array_map(function ($item) {
92
+            $models = array_map(function($item) {
93 93
                 return wrapToModel($item, $this->modelClass);
94 94
             }, $ormInstances);
95 95
 
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
      */
170 170
     public function lastPageNumber(): int
171 171
     {
172
-        return (int)ceil($this->total() / $this->perPage);
172
+        return (int) ceil($this->total() / $this->perPage);
173 173
     }
174 174
 
175 175
     /**
Please login to merge, or discard this patch.