Completed
Pull Request — master (#3)
by Antonio Oertel
04:28 queued 01:38
created
src/Mapper.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -335,6 +335,9 @@
 block discarded – undo
335 335
         }
336 336
     }
337 337
 
338
+    /**
339
+     * @param SplObjectStorage $entities
340
+     */
338 341
     protected function tryHydration($entities, $sub, $field, &$v)
339 342
     {
340 343
         $tableName = $entities[$sub]->getName();
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -176,7 +176,7 @@
 block discarded – undo
176 176
     {
177 177
         $query = $this->generateQuery($collection);
178 178
 
179
-        $withExtraList = (array)$withExtra;
179
+        $withExtraList = (array) $withExtra;
180 180
 
181 181
         $withExtraList = array_merge($withExtraList, $query);
182 182
 
Please login to merge, or discard this patch.
src/Driver/Mongo/Driver.php 1 patch
Braces   +9 added lines, -6 removed lines patch added patch discarded remove patch
@@ -83,8 +83,9 @@  discard block
 block discarded – undo
83 83
 
84 84
         $condition = $this->getConditionArray($collection);
85 85
 
86
-        foreach ($allCollections as $name => $coll)
87
-            $condition += $this->getConditionArray($coll, true);
86
+        foreach ($allCollections as $name => $coll) {
87
+                    $condition += $this->getConditionArray($coll, true);
88
+        }
88 89
 
89 90
         return $condition;
90 91
     }
@@ -102,8 +103,9 @@  discard block
 block discarded – undo
102 103
             $condition = array('_id' => $this->createMongoId($condition));
103 104
         }
104 105
 
105
-        if ($prefix)
106
-            $condition = static::prefixArrayKeys($condition, $collection->getName() . ".");
106
+        if ($prefix) {
107
+                    $condition = static::prefixArrayKeys($condition, $collection->getName() . ".");
108
+        }
107 109
 
108 110
         return $condition;
109 111
     }
@@ -117,8 +119,9 @@  discard block
 block discarded – undo
117 119
     {
118 120
         $new = array();
119 121
 
120
-        foreach ($array as $key => $value)
121
-            $new["{$prefix}{$key}"] = $value;
122
+        foreach ($array as $key => $value) {
123
+                    $new["{$prefix}{$key}"] = $value;
124
+        }
122 125
 
123 126
         return $new;
124 127
     }
Please login to merge, or discard this patch.