Completed
Push — master ( af5595...060876 )
by Anton
03:44
created
source/Spiral/ODM/Schemas/DocumentSchema.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
                 $aggregationType = isset($type[Document::ONE]) ? Document::ONE : Document::MANY;
188 188
 
189 189
                 $result[$field] = new AggregationDefinition(
190
-                    $aggregationType,        //Aggregation type
190
+                    $aggregationType, //Aggregation type
191 191
                     $type[$aggregationType], //Class name
192 192
                     array_pop($type)         //Query template
193 193
                 );
@@ -240,7 +240,7 @@  discard block
 block discarded – undo
240 240
             if (
241 241
                 is_array($type)
242 242
                 && is_scalar($type[0])
243
-                && $filter = $this->mutatorsConfig->getMutators('array::' . $type[0])
243
+                && $filter = $this->mutatorsConfig->getMutators('array::'.$type[0])
244 244
             ) {
245 245
                 //Mutator associated to array with specified type
246 246
                 $resolved += $filter;
Please login to merge, or discard this patch.
source/Spiral/ODM/Schemas/SchemaLocator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
 
60 60
             $schemas[] = $this->container->get(FactoryInterface::class)->make(
61 61
                 DocumentSchema::class,
62
-                ['reflection' => new ReflectionEntity($class['name']),]
62
+                ['reflection' => new ReflectionEntity($class['name']), ]
63 63
             );
64 64
         }
65 65
 
Please login to merge, or discard this patch.
source/Spiral/ODM/DocumentEntity.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -237,7 +237,7 @@  discard block
 block discarded – undo
237 237
             return $helper->createAggregation($method);
238 238
         }
239 239
 
240
-        throw new DocumentException("Undefined method call '{$method}' in '" . get_called_class() . "'");
240
+        throw new DocumentException("Undefined method call '{$method}' in '".get_called_class()."'");
241 241
     }
242 242
 
243 243
     /**
@@ -303,7 +303,7 @@  discard block
 block discarded – undo
303 303
             if ($value instanceof CompositableInterface) {
304 304
                 $atomics = array_merge_recursive(
305 305
                     $atomics,
306
-                    $value->buildAtomics((!empty($container) ? $container . '.' : '') . $field)
306
+                    $value->buildAtomics((!empty($container) ? $container.'.' : '').$field)
307 307
                 );
308 308
 
309 309
                 continue;
@@ -318,7 +318,7 @@  discard block
 block discarded – undo
318 318
 
319 319
             if (array_key_exists($field, $this->changes)) {
320 320
                 //Generating set operation for changed field
321
-                $atomics['$set'][(!empty($container) ? $container . '.' : '') . $field] = $value;
321
+                $atomics['$set'][(!empty($container) ? $container.'.' : '').$field] = $value;
322 322
             }
323 323
         }
324 324
 
@@ -365,7 +365,7 @@  discard block
 block discarded – undo
365 365
     {
366 366
         $public = parent::publicValue();
367 367
 
368
-        array_walk_recursive($public, function (&$value) {
368
+        array_walk_recursive($public, function(&$value) {
369 369
             if ($value instanceof ObjectID) {
370 370
                 $value = (string)$value;
371 371
             }
Please login to merge, or discard this patch.
source/Spiral/ODM/Entities/DocumentCompositor.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -262,7 +262,7 @@  discard block
 block discarded – undo
262 262
      * @param bool $changedEntities Reference, will be set to true if any of entities changed
263 263
      *                              internally.
264 264
      */
265
-    public function hasChanges(bool &$changedEntities = null): bool
265
+    public function hasChanges(bool & $changedEntities = null): bool
266 266
     {
267 267
         foreach ($this->entities as $entity) {
268 268
             if ($entity->hasChanges()) {
@@ -329,7 +329,7 @@  discard block
 block discarded – undo
329 329
 
330 330
             $atomics = array_merge(
331 331
                 $atomics,
332
-                $entity->buildAtomics((!empty($container) ? $container . '.' : '') . $offset)
332
+                $entity->buildAtomics((!empty($container) ? $container.'.' : '').$offset)
333 333
             );
334 334
         }
335 335
 
Please login to merge, or discard this patch.
source/Spiral/ODM/Entities/DocumentSelector.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -359,7 +359,7 @@
 block discarded – undo
359 359
      */
360 360
     protected function normalizeDates(array $query): array
361 361
     {
362
-        array_walk_recursive($query, function (&$value) {
362
+        array_walk_recursive($query, function(&$value) {
363 363
             if ($value instanceof \DateTime) {
364 364
                 //MongoDate is always UTC, which is good :)
365 365
                 $value = new UTCDateTime($value);
Please login to merge, or discard this patch.
source/Spiral/ODM/Helpers/AggregationHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@
 block discarded – undo
91 91
         $query = $aggregation[2];
92 92
 
93 93
         //Mounting selection values
94
-        array_walk_recursive($query, function (&$value) {
94
+        array_walk_recursive($query, function(&$value) {
95 95
             if (strpos($value, 'self::') === 0) {
96 96
                 $value = $this->findValue(substr($value, 6));
97 97
             }
Please login to merge, or discard this patch.
source/Spiral/ODM/Accessors/AbstractArray.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -126,7 +126,7 @@
 block discarded – undo
126 126
         }
127 127
 
128 128
         //Removing values from array (non strict)
129
-        $this->values = array_filter($this->values, function ($item) use ($value) {
129
+        $this->values = array_filter($this->values, function($item) use ($value) {
130 130
             return $item != $value;
131 131
         });
132 132
 
Please login to merge, or discard this patch.