Completed
Branch great-split (478e04)
by Anton
03:56
created
source/Spiral/Stempler/Prototypes/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/Reactor/NamespaceDeclaration.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -83,22 +83,22 @@
 block discarded – undo
83 83
         $indentShift = 0;
84 84
 
85 85
         if (!$this->docComment->isEmpty()) {
86
-            $result .= $this->docComment->render($indentLevel) . "\n";
86
+            $result .= $this->docComment->render($indentLevel)."\n";
87 87
         }
88 88
 
89 89
         if (!empty($this->getName())) {
90
-            $result = $this->addIndent("namespace {$this->getName()} {", $indentLevel) . "\n";
90
+            $result = $this->addIndent("namespace {$this->getName()} {", $indentLevel)."\n";
91 91
             $indentShift = 1;
92 92
         }
93 93
 
94 94
         if (!empty($this->uses)) {
95
-            $result .= $this->renderUses($indentLevel + $indentShift) . "\n\n";
95
+            $result .= $this->renderUses($indentLevel + $indentShift)."\n\n";
96 96
         }
97 97
 
98 98
         $result .= $this->elements->render($indentLevel + $indentShift);
99 99
 
100 100
         if (!empty($this->getName())) {
101
-            $result .= "\n" . $this->addIndent("}", $indentLevel);
101
+            $result .= "\n".$this->addIndent("}", $indentLevel);
102 102
         }
103 103
 
104 104
         return $result;
Please login to merge, or discard this patch.
source/Spiral/Reactor/ClassDeclaration/ParameterDeclaration.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -143,15 +143,15 @@
 block discarded – undo
143 143
     {
144 144
         $type = '';
145 145
         if (!empty($this->type)) {
146
-            $type = $this->type . " ";
146
+            $type = $this->type." ";
147 147
         }
148 148
 
149
-        $result = $type . ($this->pdb ? '&' : '') . "$" . $this->getName();
149
+        $result = $type.($this->pdb ? '&' : '')."$".$this->getName();
150 150
 
151 151
         if (!$this->isOptional) {
152 152
             return $result;
153 153
         }
154 154
 
155
-        return $result . ' = ' . $this->getSerializer()->serialize($this->defaultValue);
155
+        return $result.' = '.$this->getSerializer()->serialize($this->defaultValue);
156 156
     }
157 157
 }
158 158
\ No newline at end of file
Please login to merge, or discard this patch.
source/Spiral/Reactor/ClassDeclaration/ConstantDeclaration.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -75,12 +75,12 @@
 block discarded – undo
75 75
     {
76 76
         $result = '';
77 77
         if (!$this->docComment->isEmpty()) {
78
-            $result .= $this->docComment->render($indentLevel) . "\n";
78
+            $result .= $this->docComment->render($indentLevel)."\n";
79 79
         }
80 80
 
81 81
         $result .= $this->addIndent("const {$this->getName()} = ", $indentLevel);
82 82
 
83 83
         //todo: make indent level work
84
-        return $result . $this->getSerializer()->serialize($this->value);
84
+        return $result.$this->getSerializer()->serialize($this->value);
85 85
     }
86 86
 }
87 87
\ 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
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
     {
135 135
         $result = '';
136 136
         if (!$this->docComment->isEmpty()) {
137
-            $result .= $this->docComment->render($indentLevel) . "\n";
137
+            $result .= $this->docComment->render($indentLevel)."\n";
138 138
         }
139 139
 
140 140
         $method = "{$this->getAccess()} function {$this->getName()}";
@@ -144,11 +144,11 @@  discard block
 block discarded – undo
144 144
             $method .= "()";
145 145
         }
146 146
 
147
-        $result .= $this->addIndent($method, $indentLevel) . "\n";
148
-        $result .= $this->addIndent('{', $indentLevel) . "\n";
147
+        $result .= $this->addIndent($method, $indentLevel)."\n";
148
+        $result .= $this->addIndent('{', $indentLevel)."\n";
149 149
 
150 150
         if (!$this->source->isEmpty()) {
151
-            $result .= $this->source->render($indentLevel + 1) . "\n";
151
+            $result .= $this->source->render($indentLevel + 1)."\n";
152 152
         }
153 153
 
154 154
         $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
@@ -293,7 +293,7 @@  discard block
 block discarded – undo
293 293
         $result = '';
294 294
 
295 295
         if (!$this->docComment->isEmpty()) {
296
-            $result .= $this->docComment->render($indentLevel) . "\n";
296
+            $result .= $this->docComment->render($indentLevel)."\n";
297 297
         }
298 298
 
299 299
         //Class header
@@ -309,27 +309,27 @@  discard block
 block discarded – undo
309 309
             $header .= " implements {$interfaces}";
310 310
         }
311 311
 
312
-        $result .= $this->addIndent($header, $indentLevel) . "\n";
313
-        $result .= $this->addIndent("{", $indentLevel) . "\n";
312
+        $result .= $this->addIndent($header, $indentLevel)."\n";
313
+        $result .= $this->addIndent("{", $indentLevel)."\n";
314 314
 
315 315
         //Rendering content
316 316
         if (!empty($this->traits)) {
317
-            $result .= $this->renderTraits($indentLevel + 1) . "\n\n";
317
+            $result .= $this->renderTraits($indentLevel + 1)."\n\n";
318 318
         }
319 319
 
320 320
         if (!$this->constants->isEmpty()) {
321
-            $result .= $this->constants->render($indentLevel + 1) . "\n\n";
321
+            $result .= $this->constants->render($indentLevel + 1)."\n\n";
322 322
         }
323 323
 
324 324
         if (!$this->properties->isEmpty()) {
325
-            $result .= $this->properties->render($indentLevel + 1) . "\n\n";
325
+            $result .= $this->properties->render($indentLevel + 1)."\n\n";
326 326
         }
327 327
 
328 328
         if (!$this->methods->isEmpty()) {
329
-            $result .= $this->methods->render($indentLevel + 1) . "\n\n";
329
+            $result .= $this->methods->render($indentLevel + 1)."\n\n";
330 330
         }
331 331
 
332
-        $result = rtrim($result, "\n") . "\n";
332
+        $result = rtrim($result, "\n")."\n";
333 333
         $result .= $this->addIndent("}", $indentLevel);
334 334
 
335 335
         return $result;
Please login to merge, or discard this patch.
source/Spiral/Tokenizer/Isolator.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
             if ($this->isCloseTag($token)) {
74 74
                 $blockID = $this->uniqueID();
75 75
 
76
-                $this->phpBlocks[$blockID] = $phpBlock . $token[1];
76
+                $this->phpBlocks[$blockID] = $phpBlock.$token[1];
77 77
                 $isolated .= $this->placeholder($blockID);
78 78
 
79 79
                 $phpBlock = '';
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
     {
139 139
         return preg_replace_callback(
140 140
             $this->blockRegex(),
141
-            function ($match) use ($partial, $blockIDs) {
141
+            function($match) use ($partial, $blockIDs) {
142 142
                 if ($partial && !in_array($match['id'], $blockIDs)) {
143 143
                     return $match[0];
144 144
                 }
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
      */
180 180
     private function blockRegex(): string
181 181
     {
182
-        return '/' .
182
+        return '/'.
183 183
             preg_quote($this->prefix)
184 184
             . '(?P<id>[0-9a-z]+)'
185 185
             . preg_quote($this->postfix)
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
      */
192 192
     private function uniqueID(): string
193 193
     {
194
-        return md5(count($this->phpBlocks) . uniqid(true));
194
+        return md5(count($this->phpBlocks).uniqid(true));
195 195
     }
196 196
 
197 197
     /**
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
      */
202 202
     private function placeholder(string $blockID): string
203 203
     {
204
-        return $this->prefix . $blockID . $this->postfix;
204
+        return $this->prefix.$blockID.$this->postfix;
205 205
     }
206 206
 
207 207
     /**
Please login to merge, or discard this patch.
source/Spiral/Security/Rule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@
 block discarded – undo
75 75
                 $this->resolver->resolveArguments($method, $parameters));
76 76
         } catch (\Throwable $e) {
77 77
             throw new RuleException(
78
-                '[' . get_class($this) . '] ' . $e->getMessage(),
78
+                '['.get_class($this).'] '.$e->getMessage(),
79 79
                 $e->getCode(),
80 80
                 $e
81 81
             );
Please login to merge, or discard this patch.
source/Spiral/Security/RuleManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@
 block discarded – undo
124 124
 
125 125
             if (!$rule instanceof RuleInterface) {
126 126
                 throw new RuleException(
127
-                    "Rule '{$name}' must point to RuleInterface, '" . get_class($rule) . "' given"
127
+                    "Rule '{$name}' must point to RuleInterface, '".get_class($rule)."' given"
128 128
                 );
129 129
             }
130 130
 
Please login to merge, or discard this patch.