@@ -91,7 +91,7 @@ |
||
| 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 | } |
@@ -237,7 +237,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 | } |
@@ -359,7 +359,7 @@ |
||
| 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); |
@@ -116,7 +116,7 @@ |
||
| 116 | 116 | public function render(int $indentLevel = 0): string |
| 117 | 117 | { |
| 118 | 118 | $lines = $this->lines; |
| 119 | - array_walk($lines, function (&$line) use ($indentLevel) { |
|
| 119 | + array_walk($lines, function(&$line) use ($indentLevel) { |
|
| 120 | 120 | $line = $this->addIndent($line, $indentLevel); |
| 121 | 121 | }); |
| 122 | 122 | |
@@ -107,7 +107,7 @@ |
||
| 107 | 107 | { |
| 108 | 108 | $result = ''; |
| 109 | 109 | if (!$this->docComment->isEmpty()) { |
| 110 | - $result .= $this->docComment->render($indentLevel) . "\n"; |
|
| 110 | + $result .= $this->docComment->render($indentLevel)."\n"; |
|
| 111 | 111 | } |
| 112 | 112 | |
| 113 | 113 | $result .= $this->addIndent("{$this->access} \${$this->getName()}", $indentLevel); |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | */ |
| 32 | 32 | protected function addIndent(string $string, int $indent = 0): string |
| 33 | 33 | { |
| 34 | - return str_repeat(self::INDENT, max($indent, 0)) . $string; |
|
| 34 | + return str_repeat(self::INDENT, max($indent, 0)).$string; |
|
| 35 | 35 | } |
| 36 | 36 | |
| 37 | 37 | /** |
@@ -261,7 +261,7 @@ |
||
| 261 | 261 | protected function getPath(BucketInterface $bucket, string $name): string |
| 262 | 262 | { |
| 263 | 263 | return $this->files->normalizePath( |
| 264 | - $this->options['home'] . '/' . $bucket->getOption('directory') . $name |
|
| 264 | + $this->options['home'].'/'.$bucket->getOption('directory').$name |
|
| 265 | 265 | ); |
| 266 | 266 | } |
| 267 | 267 | |
@@ -206,11 +206,11 @@ |
||
| 206 | 206 | protected function getPath(BucketInterface $bucket, string $name): string |
| 207 | 207 | { |
| 208 | 208 | if (empty($this->options['home'])) { |
| 209 | - return $this->files->normalizePath($bucket->getOption('directory') . $name); |
|
| 209 | + return $this->files->normalizePath($bucket->getOption('directory').$name); |
|
| 210 | 210 | } |
| 211 | 211 | |
| 212 | 212 | return $this->files->normalizePath( |
| 213 | - $this->options['home'] . '/' . $bucket->getOption('directory') . $name |
|
| 213 | + $this->options['home'].'/'.$bucket->getOption('directory').$name |
|
| 214 | 214 | ); |
| 215 | 215 | } |
| 216 | 216 | } |
| 217 | 217 | \ No newline at end of file |
@@ -131,7 +131,7 @@ |
||
| 131 | 131 | */ |
| 132 | 132 | public function buildAddress(string $name): string |
| 133 | 133 | { |
| 134 | - return $this->prefix . $name; |
|
| 134 | + return $this->prefix.$name; |
|
| 135 | 135 | } |
| 136 | 136 | |
| 137 | 137 | /** |