@@ -178,7 +178,7 @@ discard block |
||
178 | 178 | { |
179 | 179 | if (!$this->hasField($name)) { |
180 | 180 | //We are only allowing to modify existed fields, this is strict schema |
181 | - throw new FieldException("Undefined field '{$name}' in '" . static::class . "'"); |
|
181 | + throw new FieldException("Undefined field '{$name}' in '".static::class."'"); |
|
182 | 182 | } |
183 | 183 | |
184 | 184 | //Original field value |
@@ -294,7 +294,7 @@ discard block |
||
294 | 294 | if ($value instanceof CompositableInterface) { |
295 | 295 | $atomics = array_merge_recursive( |
296 | 296 | $atomics, |
297 | - $value->buildAtomics((!empty($container) ? $container . '.' : '') . $field) |
|
297 | + $value->buildAtomics((!empty($container) ? $container.'.' : '').$field) |
|
298 | 298 | ); |
299 | 299 | |
300 | 300 | continue; |
@@ -309,7 +309,7 @@ discard block |
||
309 | 309 | |
310 | 310 | if (array_key_exists($field, $this->updates)) { |
311 | 311 | //Generating set operation for changed field |
312 | - $atomics['$set'][(!empty($container) ? $container . '.' : '') . $field] = $value; |
|
312 | + $atomics['$set'][(!empty($container) ? $container.'.' : '').$field] = $value; |
|
313 | 313 | } |
314 | 314 | } |
315 | 315 | |
@@ -356,7 +356,7 @@ discard block |
||
356 | 356 | { |
357 | 357 | $public = parent::publicFields(); |
358 | 358 | |
359 | - array_walk_recursive($public, function (&$value) { |
|
359 | + array_walk_recursive($public, function(&$value) { |
|
360 | 360 | if ($value instanceof ObjectID) { |
361 | 361 | $value = (string)$value; |
362 | 362 | } |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | { |
65 | 65 | if (!isset($this->schema[DocumentEntity::SH_AGGREGATIONS][$aggregation])) { |
66 | 66 | throw new AggregationException( |
67 | - "Undefined aggregation '{$aggregation}' in '" . get_class($this->source) . "'" |
|
67 | + "Undefined aggregation '{$aggregation}' in '".get_class($this->source)."'" |
|
68 | 68 | ); |
69 | 69 | } |
70 | 70 | |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | $query = $aggregation[2]; |
104 | 104 | |
105 | 105 | //Mounting selection values |
106 | - array_walk_recursive($query, function (&$value) { |
|
106 | + array_walk_recursive($query, function(&$value) { |
|
107 | 107 | if (strpos($value, 'self::') === 0) { |
108 | 108 | $value = $this->findValue(substr($value, 6)); |
109 | 109 | } |