Completed
Push — master ( 3fb487...2c5bb5 )
by Antonio Oertel
47s
created
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.