Completed
Push — master ( a9f872...9c4119 )
by Anton
08:22 queued 05:54
created
source/Spiral/Reactor/ClassDeclaration/ConstantDeclaration.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -79,12 +79,12 @@
 block discarded – undo
79 79
     {
80 80
         $result = '';
81 81
         if (!$this->docComment->isEmpty()) {
82
-            $result .= $this->docComment->render($indentLevel) . "\n";
82
+            $result .= $this->docComment->render($indentLevel)."\n";
83 83
         }
84 84
 
85 85
         $result .= $this->addIndent("const {$this->getName()} = ", $indentLevel);
86 86
 
87 87
         //todo: make indent level work
88
-        return $result . $this->getSerializer()->serialize($this->value);
88
+        return $result.$this->getSerializer()->serialize($this->value);
89 89
     }
90 90
 }
91 91
\ No newline at end of file
Please login to merge, or discard this patch.
source/Spiral/Reactor/ClassDeclaration/MethodDeclaration.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
     {
142 142
         $result = '';
143 143
         if (!$this->docComment->isEmpty()) {
144
-            $result .= $this->docComment->render($indentLevel) . "\n";
144
+            $result .= $this->docComment->render($indentLevel)."\n";
145 145
         }
146 146
 
147 147
         $method = "{$this->getAccess()} function {$this->getName()}";
@@ -151,11 +151,11 @@  discard block
 block discarded – undo
151 151
             $method .= "()";
152 152
         }
153 153
 
154
-        $result .= $this->addIndent($method, $indentLevel) . "\n";
155
-        $result .= $this->addIndent('{', $indentLevel) . "\n";
154
+        $result .= $this->addIndent($method, $indentLevel)."\n";
155
+        $result .= $this->addIndent('{', $indentLevel)."\n";
156 156
 
157 157
         if (!$this->source->isEmpty()) {
158
-            $result .= $this->source->render($indentLevel + 1) . "\n";
158
+            $result .= $this->source->render($indentLevel + 1)."\n";
159 159
         }
160 160
 
161 161
         $result .= $this->addIndent("}", $indentLevel);
Please login to merge, or discard this patch.
source/Spiral/Reactor/ClassDeclaration.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -318,7 +318,7 @@  discard block
 block discarded – undo
318 318
         $result = '';
319 319
 
320 320
         if (!$this->docComment->isEmpty()) {
321
-            $result .= $this->docComment->render($indentLevel) . "\n";
321
+            $result .= $this->docComment->render($indentLevel)."\n";
322 322
         }
323 323
 
324 324
         //Class header
@@ -334,13 +334,13 @@  discard block
 block discarded – undo
334 334
             $header .= " implements {$interfaces}";
335 335
         }
336 336
 
337
-        $result .= $this->addIndent($header, $indentLevel) . "\n";
338
-        $result .= $this->addIndent("{", $indentLevel) . "\n";
337
+        $result .= $this->addIndent($header, $indentLevel)."\n";
338
+        $result .= $this->addIndent("{", $indentLevel)."\n";
339 339
 
340 340
         //Rendering class body
341 341
         $result .= $this->renderBody($indentLevel);
342 342
 
343
-        $result = rtrim($result, "\n") . "\n";
343
+        $result = rtrim($result, "\n")."\n";
344 344
         $result .= $this->addIndent("}", $indentLevel);
345 345
 
346 346
         return $result;
@@ -370,19 +370,19 @@  discard block
 block discarded – undo
370 370
     {
371 371
         $result = '';
372 372
         if (!empty($this->traits)) {
373
-            $result .= $this->renderTraits($indentLevel + 1) . "\n\n";
373
+            $result .= $this->renderTraits($indentLevel + 1)."\n\n";
374 374
         }
375 375
 
376 376
         if (!$this->constants->isEmpty()) {
377
-            $result .= $this->constants->render($indentLevel + 1) . "\n\n";
377
+            $result .= $this->constants->render($indentLevel + 1)."\n\n";
378 378
         }
379 379
 
380 380
         if (!$this->properties->isEmpty()) {
381
-            $result .= $this->properties->render($indentLevel + 1) . "\n\n";
381
+            $result .= $this->properties->render($indentLevel + 1)."\n\n";
382 382
         }
383 383
 
384 384
         if (!$this->methods->isEmpty()) {
385
-            $result .= $this->methods->render($indentLevel + 1) . "\n\n";
385
+            $result .= $this->methods->render($indentLevel + 1)."\n\n";
386 386
         }
387 387
 
388 388
         return $result;
Please login to merge, or discard this patch.
source/Spiral/Reactor/FileDeclaration.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
         $result = "<?php\n";
112 112
 
113 113
         if (!$this->docComment->isEmpty()) {
114
-            $result .= $this->docComment->render($indentLevel) . "\n";
114
+            $result .= $this->docComment->render($indentLevel)."\n";
115 115
         }
116 116
 
117 117
         if (!empty($this->namespace)) {
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
         }
120 120
 
121 121
         if (!empty($this->uses)) {
122
-            $result .= $this->renderUses($indentLevel) . "\n\n";
122
+            $result .= $this->renderUses($indentLevel)."\n\n";
123 123
         }
124 124
 
125 125
         $result .= $this->elements->render($indentLevel);
Please login to merge, or discard this patch.
source/Spiral/Reactor/DeclarationAggregator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -211,7 +211,7 @@
 block discarded – undo
211 211
         $result = '';
212 212
 
213 213
         foreach ($this->elements as $element) {
214
-            $result .= $element->render($indentLevel) . "\n\n";
214
+            $result .= $element->render($indentLevel)."\n\n";
215 215
         }
216 216
 
217 217
         return rtrim($result, "\n");
Please login to merge, or discard this patch.
source/Spiral/Reactor/Body/Source.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
source/Spiral/Reactor/Body/DocComment.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
     {
25 25
         $lines = $this->getLines();
26 26
 
27
-        array_walk($lines, function (&$line) use ($search, $replace) {
27
+        array_walk($lines, function(&$line) use ($search, $replace) {
28 28
             $line = str_replace($search, $replace, $line);
29 29
         });
30 30
 
Please login to merge, or discard this patch.
source/functions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
             $value = '';
39 39
         }
40 40
 
41
-        $replaces[$prefix . $key . $postfix] = $value;
41
+        $replaces[$prefix.$key.$postfix] = $value;
42 42
     }
43 43
 
44 44
     return strtr($string, $replaces);
Please login to merge, or discard this patch.