Completed
Push — master ( da1891...eebb53 )
by Anton
03:32
created
source/Spiral/Stempler/Exporters/AttributesExporter.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
     {
24 24
         if (preg_match_all('/ node:attributes(?:=\"([^\'"]+)\")?/i', $content, $matches)) {
25 25
             //We have to sort from longest to shortest
26
-            uasort($matches[0], function ($replaceA, $replaceB) {
26
+            uasort($matches[0], function($replaceA, $replaceB) {
27 27
                 return strlen($replaceB) - strlen($replaceA);
28 28
             });
29 29
 
@@ -37,11 +37,11 @@  discard block
 block discarded – undo
37 37
                         continue;
38 38
                     }
39 39
 
40
-                    $inject[$name] = $name . '="' . $value . '"';
40
+                    $inject[$name] = $name.'="'.$value.'"';
41 41
                 }
42 42
 
43 43
                 //Injecting
44
-                $content = str_replace($replace, $inject ? ' ' . join(' ', $inject) : '', $content);
44
+                $content = str_replace($replace, $inject ? ' '.join(' ', $inject) : '', $content);
45 45
             }
46 46
         }
47 47
 
Please login to merge, or discard this patch.
source/Spiral/Stempler/Behaviours/IncludeBehaviour.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -136,9 +136,9 @@
 block discarded – undo
136 136
      */
137 137
     protected function createPlaceholder($name, &$blockID)
138 138
     {
139
-        $blockID = $name . '-' . $this->supervisor->uniquePlaceholder();
139
+        $blockID = $name.'-'.$this->supervisor->uniquePlaceholder();
140 140
 
141 141
         //Short block declaration syntax
142
-        return '${' . $blockID . '}';
142
+        return '${'.$blockID.'}';
143 143
     }
144 144
 }
145 145
\ No newline at end of file
Please login to merge, or discard this patch.
source/Spiral/Stempler/Syntaxes/DarkSyntax.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -148,7 +148,7 @@
 block discarded – undo
148 148
             }
149 149
 
150 150
             $prefix = isset($attributes['namespace'])
151
-                ? $attributes['namespace'] . ':'
151
+                ? $attributes['namespace'].':'
152 152
                 : $attributes['prefix'];
153 153
 
154 154
             return new Prefixer($prefix, $path);
Please login to merge, or discard this patch.
source/Spiral/Stempler/ConditionalExporter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
80 80
                         continue;
81 81
                     }
82 82
 
83
-                    $pattern = '/^' . str_replace('*', '.+', $pattern) . '/i';
83
+                    $pattern = '/^'.str_replace('*', '.+', $pattern).'/i';
84 84
 
85 85
                     if (preg_match($pattern, $name)) {
86 86
                         unset($result[$name]);
Please login to merge, or discard this patch.
source/Spiral/Stempler/HtmlTokenizer.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
                     }
130 130
 
131 131
                     if ($position == self::POSITION_IN_TAG) {
132
-                        $buffer = '<' . $buffer;
132
+                        $buffer = '<'.$buffer;
133 133
                     }
134 134
 
135 135
                     //Handling previous token
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
                     //Checking for invalid characters in tag name or arguments
169 169
                     if ($position == self::POSITION_IN_TAG) {
170 170
                         if (!preg_match('/[a-z0-9 \._\-="\':\/\r\n\t]/i', $char)) {
171
-                            $buffer = '<' . $buffer;
171
+                            $buffer = '<'.$buffer;
172 172
                             $position = self::POSITION_PLAIN_TEXT;
173 173
                         }
174 174
                     }
@@ -202,18 +202,18 @@  discard block
 block discarded – undo
202 202
                 continue;
203 203
             }
204 204
 
205
-            $attributes[] = $attribute . '="' . $value . '"';
205
+            $attributes[] = $attribute.'="'.$value.'"';
206 206
         }
207 207
 
208 208
         if (!empty($attributes)) {
209
-            $result .= ' ' . join(' ', $attributes);
209
+            $result .= ' '.join(' ', $attributes);
210 210
         }
211 211
 
212 212
         if ($token[HtmlTokenizer::TOKEN_TYPE] == HtmlTokenizer::TAG_SHORT) {
213 213
             $result .= '/';
214 214
         }
215 215
 
216
-        return '<' . $result . '>';
216
+        return '<'.$result.'>';
217 217
     }
218 218
 
219 219
     /**
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
         $token = [
228 228
             self::TOKEN_NAME       => '',
229 229
             self::TOKEN_TYPE       => self::TAG_OPEN,
230
-            self::TOKEN_CONTENT    => '<' . ($content = $this->repairPHP($content)) . '>',
230
+            self::TOKEN_CONTENT    => '<'.($content = $this->repairPHP($content)).'>',
231 231
             self::TOKEN_ATTRIBUTES => []
232 232
         ];
233 233
 
Please login to merge, or discard this patch.
source/Spiral/ODM/DocumentEntity.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -304,7 +304,7 @@  discard block
 block discarded – undo
304 304
     public function setField($name, $value, $filter = true)
305 305
     {
306 306
         if (!array_key_exists($name, $this->fields)) {
307
-            throw new FieldException("Undefined field '{$name}' in '" . static::class . "'.");
307
+            throw new FieldException("Undefined field '{$name}' in '".static::class."'.");
308 308
         }
309 309
 
310 310
         $original = isset($this->fields[$name]) ? $this->fields[$name] : null;
@@ -418,7 +418,7 @@  discard block
 block discarded – undo
418 418
             }
419 419
 
420 420
             if (is_array($value)) {
421
-                array_walk_recursive($value, function (&$value) {
421
+                array_walk_recursive($value, function(&$value) {
422 422
                     if ($value instanceof \MongoId) {
423 423
                         $value = (string)$value;
424 424
                     }
@@ -523,7 +523,7 @@  discard block
 block discarded – undo
523 523
 
524 524
             foreach ($this->atomics as $atomic => $fields) {
525 525
                 foreach ($fields as $field => $value) {
526
-                    $atomics[$atomic][$container . '.' . $field] = $value;
526
+                    $atomics[$atomic][$container.'.'.$field] = $value;
527 527
                 }
528 528
             }
529 529
         }
@@ -536,7 +536,7 @@  discard block
 block discarded – undo
536 536
             if ($value instanceof DocumentAccessorInterface) {
537 537
                 $atomics = array_merge_recursive(
538 538
                     $atomics,
539
-                    $value->buildAtomics(($container ? $container . '.' : '') . $field)
539
+                    $value->buildAtomics(($container ? $container.'.' : '').$field)
540 540
                 );
541 541
 
542 542
                 continue;
@@ -551,7 +551,7 @@  discard block
 block discarded – undo
551 551
 
552 552
             if (array_key_exists($field, $this->updates)) {
553 553
                 //Generating set operation for changed field
554
-                $atomics[self::ATOMIC_SET][($container ? $container . '.' : '') . $field] = $value;
554
+                $atomics[self::ATOMIC_SET][($container ? $container.'.' : '').$field] = $value;
555 555
             }
556 556
         }
557 557
 
Please login to merge, or discard this patch.
source/Spiral/ODM/Entities/SchemaBuilder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
 
176 176
         //Pre-packing collections
177 177
         foreach ($this->getCollections() as $collection) {
178
-            $name = $collection->getDatabase() . '/' . $collection->getName();
178
+            $name = $collection->getDatabase().'/'.$collection->getName();
179 179
             $result[$name] = $collection->getParent()->getName();
180 180
         }
181 181
 
@@ -291,7 +291,7 @@  discard block
 block discarded – undo
291 291
             }
292 292
 
293 293
             //Getting fully specified collection name (with specified db)
294
-            $collection = $document->getDatabase() . '/' . $document->getCollection();
294
+            $collection = $document->getDatabase().'/'.$document->getCollection();
295 295
             if (isset($this->collections[$collection])) {
296 296
                 //Already described by parent
297 297
                 continue;
Please login to merge, or discard this patch.
source/Spiral/ODM/Entities/DocumentSelector.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
      */
152 152
     public function query(array $query = [])
153 153
     {
154
-        array_walk_recursive($query, function (&$value) {
154
+        array_walk_recursive($query, function(&$value) {
155 155
             if ($value instanceof \DateTime) {
156 156
                 //MongoDate is always UTC, which is good :)
157 157
                 $value = new \MongoDate($value->getTimestamp());
@@ -334,7 +334,7 @@  discard block
 block discarded – undo
334 334
     public function __debugInfo()
335 335
     {
336 336
         return [
337
-            'collection' => $this->database . '/' . $this->name,
337
+            'collection' => $this->database.'/'.$this->name,
338 338
             'query'      => $this->query,
339 339
             'limit'      => $this->limit,
340 340
             'offset'     => $this->offset,
@@ -392,7 +392,7 @@  discard block
 block discarded – undo
392 392
         }
393 393
 
394 394
         $this->logger()->debug(
395
-            "{database}/{collection}: " . json_encode($queryInfo, JSON_PRETTY_PRINT),
395
+            "{database}/{collection}: ".json_encode($queryInfo, JSON_PRETTY_PRINT),
396 396
             [
397 397
                 'collection' => $this->name,
398 398
                 'database'   => $this->database,
Please login to merge, or discard this patch.
source/Spiral/ODM/Entities/Schemas/DocumentSchema.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -317,7 +317,7 @@
 block discarded – undo
317 317
             if (
318 318
                 is_array($type)
319 319
                 && is_scalar($type[0])
320
-                && $filter = $this->builder->getMutators('array::' . $type[0])
320
+                && $filter = $this->builder->getMutators('array::'.$type[0])
321 321
             ) {
322 322
                 //Mutator associated to array with specified type
323 323
                 $resolved += $filter;
Please login to merge, or discard this patch.