Completed
Push — master ( 597293...345e29 )
by Joao Gilberto
04:12 queued 02:23
created
src/Mapper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -190,14 +190,14 @@
 block discarded – undo
190 190
 
191 191
     public static function defaultClosure()
192 192
     {
193
-        return function ($value) {
193
+        return function($value) {
194 194
             return $value;
195 195
         };
196 196
     }
197 197
 
198 198
     public static function doNotUpdateClosure()
199 199
     {
200
-        return function () {
200
+        return function() {
201 201
             return false;
202 202
         };
203 203
     }
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
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
      */
101 101
     public function join($table, $filter)
102 102
     {
103
-        $this->join[] = [ 'table'=>$table, 'filter'=>$filter, 'type' => 'INNER'];
103
+        $this->join[] = ['table'=>$table, 'filter'=>$filter, 'type' => 'INNER'];
104 104
         return $this;
105 105
     }
106 106
 
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
      */
115 115
     public function leftJoin($table, $filter)
116 116
     {
117
-        $this->join[] = [ 'table'=>$table, 'filter'=>$filter, 'type' => 'LEFT'];
117
+        $this->join[] = ['table'=>$table, 'filter'=>$filter, 'type' => 'LEFT'];
118 118
         return $this;
119 119
     }
120 120
 
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
      */
129 129
     public function where($filter, array $params = [])
130 130
     {
131
-        $this->where[] = [ 'filter' => $filter, 'params' => $params  ];
131
+        $this->where[] = ['filter' => $filter, 'params' => $params];
132 132
         return $this;
133 133
     }
134 134
 
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
             return null;
219 219
         }
220 220
         
221
-        return [ implode(' AND ', $where), $params ];
221
+        return [implode(' AND ', $where), $params];
222 222
     }
223 223
 
224 224
     /**
@@ -250,7 +250,7 @@  discard block
 block discarded – undo
250 250
 
251 251
         $sql = ORMHelper::processLiteral($sql, $params);
252 252
 
253
-        return [ 'sql' => $sql, 'params' => $params ];
253
+        return ['sql' => $sql, 'params' => $params];
254 254
     }
255 255
 
256 256
     private function addOrderBy()
Please login to merge, or discard this patch.
src/Repository.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
                 $instance = $item->getEntity();
131 131
                 $data = $row->toArray();
132 132
 
133
-                foreach ((array)$item->getFieldAlias() as $fieldname => $fieldalias) {
133
+                foreach ((array) $item->getFieldAlias() as $fieldname => $fieldalias) {
134 134
                     if (isset($data[$fieldalias])) {
135 135
                         $data[$fieldname] = $data[$fieldalias];
136 136
                         unset($fieldalias);
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
                 }
139 139
                 BinderObject::bindObject($data, $instance);
140 140
 
141
-                foreach ((array)$item->getFieldMap() as $property => $fieldmap) {
141
+                foreach ((array) $item->getFieldMap() as $property => $fieldmap) {
142 142
                     $selectMask = $fieldmap[Mapper::FIELDMAP_SELECTMASK];
143 143
                     $value = "";
144 144
                     if (isset($data[$fieldmap[Mapper::FIELDMAP_FIELD]])) {
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
         $array = $this->getMapper()->prepareField($array);
169 169
 
170 170
         // Mapping the data
171
-        foreach ((array)$this->getMapper()->getFieldMap() as $property => $fieldmap) {
171
+        foreach ((array) $this->getMapper()->getFieldMap() as $property => $fieldmap) {
172 172
             $fieldname = $fieldmap[Mapper::FIELDMAP_FIELD];
173 173
             $updateMask = $fieldmap[Mapper::FIELDMAP_UPDATEMASK];
174 174
 
Please login to merge, or discard this patch.