Test Failed
Push — master ( d10144...825b67 )
by Joao
03:32
created
src/Mapper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
 
191 191
     public static function defaultClosure()
192 192
     {
193
-        return function ($value) {
193
+        return function($value) {
194 194
             if (empty($value)) {
195 195
                 return null;
196 196
             }
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
 
201 201
     public static function doNotUpdateClosure()
202 202
     {
203
-        return function () {
203
+        return function() {
204 204
             return false;
205 205
         };
206 206
     }
Please login to merge, or discard this patch.
src/Repository.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -38,10 +38,10 @@  discard block
 block discarded – undo
38 38
     {
39 39
         $this->dbDriver = $dbDataset;
40 40
         $this->mapper = $mapper;
41
-        $this->beforeInsert = function ($instance) {
41
+        $this->beforeInsert = function($instance) {
42 42
             return $instance;
43 43
         };
44
-        $this->beforeUpdate = function ($instance) {
44
+        $this->beforeUpdate = function($instance) {
45 45
             return $instance;
46 46
         };
47 47
     }
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
                 $instance = $item->getEntity();
156 156
                 $data = $row->toArray();
157 157
 
158
-                foreach ((array)$item->getFieldAlias() as $fieldname => $fieldalias) {
158
+                foreach ((array) $item->getFieldAlias() as $fieldname => $fieldalias) {
159 159
                     if (isset($data[$fieldalias])) {
160 160
                         $data[$fieldname] = $data[$fieldalias];
161 161
                         unset($fieldalias);
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
                 }
164 164
                 BinderObject::bindObject($data, $instance);
165 165
 
166
-                foreach ((array)$item->getFieldMap() as $property => $fieldmap) {
166
+                foreach ((array) $item->getFieldMap() as $property => $fieldmap) {
167 167
                     $selectMask = $fieldmap[Mapper::FIELDMAP_SELECTMASK];
168 168
                     $value = "";
169 169
                     if (isset($data[$fieldmap[Mapper::FIELDMAP_FIELD]])) {
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
         $array = $this->getMapper()->prepareField($array);
197 197
 
198 198
         // Mapping the data
199
-        foreach ((array)$this->getMapper()->getFieldMap() as $property => $fieldmap) {
199
+        foreach ((array) $this->getMapper()->getFieldMap() as $property => $fieldmap) {
200 200
             $fieldname = $fieldmap[Mapper::FIELDMAP_FIELD];
201 201
             $updateMask = $fieldmap[Mapper::FIELDMAP_UPDATEMASK];
202 202
 
Please login to merge, or discard this patch.
src/Updatable.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
      */
27 27
     public function fields(array $fields)
28 28
     {
29
-        $this->fields = array_merge($this->fields, (array)$fields);
29
+        $this->fields = array_merge($this->fields, (array) $fields);
30 30
         
31 31
         return $this;
32 32
     }
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
      */
56 56
     public function where($filter, array $params = [])
57 57
     {
58
-        $this->where[] = [ 'filter' => $filter, 'params' => $params  ];
58
+        $this->where[] = ['filter' => $filter, 'params' => $params];
59 59
         return $this;
60 60
     }
61 61
 
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
             return null;
83 83
         }
84 84
         
85
-        return [ implode(' AND ', $whereStr), $params ];
85
+        return [implode(' AND ', $whereStr), $params];
86 86
     }
87 87
 
88 88
 
Please login to merge, or discard this patch.
src/Query.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
      */
96 96
     public function join($table, $filter)
97 97
     {
98
-        $this->join[] = [ 'table'=>$table, 'filter'=>$filter, 'type' => 'INNER'];
98
+        $this->join[] = ['table'=>$table, 'filter'=>$filter, 'type' => 'INNER'];
99 99
         return $this;
100 100
     }
101 101
 
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
      */
110 110
     public function leftJoin($table, $filter)
111 111
     {
112
-        $this->join[] = [ 'table'=>$table, 'filter'=>$filter, 'type' => 'LEFT'];
112
+        $this->join[] = ['table'=>$table, 'filter'=>$filter, 'type' => 'LEFT'];
113 113
         return $this;
114 114
     }
115 115
 
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
      */
124 124
     public function where($filter, array $params = [])
125 125
     {
126
-        $this->where[] = [ 'filter' => $filter, 'params' => $params  ];
126
+        $this->where[] = ['filter' => $filter, 'params' => $params];
127 127
         return $this;
128 128
     }
129 129
 
@@ -224,7 +224,7 @@  discard block
 block discarded – undo
224 224
             return null;
225 225
         }
226 226
         
227
-        return [ implode(' AND ', $whereStr), $params ];
227
+        return [implode(' AND ', $whereStr), $params];
228 228
     }
229 229
 
230 230
     /**
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
 
258 258
         $sql = ORMHelper::processLiteral($sql, $params);
259 259
 
260
-        return [ 'sql' => $sql, 'params' => $params ];
260
+        return ['sql' => $sql, 'params' => $params];
261 261
     }
262 262
 
263 263
     private function addOrderBy()
Please login to merge, or discard this patch.