Completed
Branch feature/split-orm (60a911)
by Anton
03:15
created
source/Spiral/ODM/Entities/DocumentSelector.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -150,7 +150,7 @@
 block discarded – undo
150 150
      */
151 151
     public function query(array $query = [])
152 152
     {
153
-        array_walk_recursive($query, function (&$value) {
153
+        array_walk_recursive($query, function(&$value) {
154 154
             if ($value instanceof \DateTime) {
155 155
                 //MongoDate is always UTC, which is good :)
156 156
                 $value = new \MongoDate($value->getTimestamp());
Please login to merge, or discard this patch.
source/Spiral/ODM/Schemas/DocumentSchema.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -241,7 +241,7 @@
 block discarded – undo
241 241
             if (
242 242
                 is_array($type)
243 243
                 && is_scalar($type[0])
244
-                && $filter = $this->mutators->getMutators('array::' . $type[0])
244
+                && $filter = $this->mutators->getMutators('array::'.$type[0])
245 245
             ) {
246 246
                 //Mutator associated to array with specified type
247 247
                 $resolved += $filter;
Please login to merge, or discard this patch.