Completed
Branch feature/pre-split (d27030)
by Anton
04:29
created
source/Spiral/Storage/Servers/AmazonServer.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
     public function exists(
75 75
         BucketInterface $bucket,
76 76
         string $name,
77
-        ResponseInterface &$response = null
77
+        ResponseInterface & $response = null
78 78
     ): bool {
79 79
         try {
80 80
             $response = $this->client->send($this->buildRequest('HEAD', $bucket, $name));
@@ -224,7 +224,7 @@  discard block
 block discarded – undo
224 224
     protected function buildUri(BucketInterface $bucket, string $name): UriInterface
225 225
     {
226 226
         return new Uri(
227
-            $this->options['server'] . '/' . $bucket->getOption('bucket') . '/' . rawurlencode($name)
227
+            $this->options['server'].'/'.$bucket->getOption('bucket').'/'.rawurlencode($name)
228 228
         );
229 229
     }
230 230
 
@@ -269,7 +269,7 @@  discard block
 block discarded – undo
269 269
     {
270 270
         $headers = [];
271 271
         foreach ($commands as $command => $value) {
272
-            $headers['X-Amz-' . $command] = $value;
272
+            $headers['X-Amz-'.$command] = $value;
273 273
         }
274 274
 
275 275
         return $headers;
@@ -297,7 +297,7 @@  discard block
 block discarded – undo
297 297
         $normalizedCommands = [];
298 298
         foreach ($packedCommands as $command => $value) {
299 299
             if (!empty($value)) {
300
-                $normalizedCommands[] = strtolower($command) . ':' . $value;
300
+                $normalizedCommands[] = strtolower($command).':'.$value;
301 301
             }
302 302
         }
303 303
 
@@ -310,7 +310,7 @@  discard block
 block discarded – undo
310 310
 
311 311
         return $request->withAddedHeader(
312 312
             'Authorization',
313
-            'AWS ' . $this->options['accessKey'] . ':' . base64_encode(
313
+            'AWS '.$this->options['accessKey'].':'.base64_encode(
314 314
                 hash_hmac('sha1', join("\n", $signature), $this->options['secretKey'], true)
315 315
             )
316 316
         );
@@ -334,7 +334,7 @@  discard block
 block discarded – undo
334 334
 
335 335
         if (!empty($maxAge = $bucket->getOption('maxAge', 0))) {
336 336
             //Shortcut
337
-            $headers['Cache-control'] = 'max-age=' . $bucket->getOption('maxAge', 0) . ', public';
337
+            $headers['Cache-control'] = 'max-age='.$bucket->getOption('maxAge', 0).', public';
338 338
             $headers['Expires'] = gmdate(
339 339
                 'D, d M Y H:i:s T',
340 340
                 time() + $bucket->getOption('maxAge', 0)
Please login to merge, or discard this patch.
source/Spiral/Storage/Servers/RackspaceServer.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -81,11 +81,11 @@  discard block
 block discarded – undo
81 81
 
82 82
         if ($this->options['cache']) {
83 83
             $this->authToken = $this->store->get(
84
-                $this->options['username'] . '@rackspace-token'
84
+                $this->options['username'].'@rackspace-token'
85 85
             );
86 86
 
87 87
             $this->regions = (array)$this->store->get(
88
-                $this->options['username'] . '@rackspace-regions'
88
+                $this->options['username'].'@rackspace-regions'
89 89
             );
90 90
         }
91 91
 
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
     public function exists(
115 115
         BucketInterface $bucket,
116 116
         string $name,
117
-        ResponseInterface &$response = null
117
+        ResponseInterface & $response = null
118 118
     ): bool {
119 119
         try {
120 120
             $response = $this->client->send($this->buildRequest('HEAD', $bucket, $name));
@@ -229,7 +229,7 @@  discard block
 block discarded – undo
229 229
     {
230 230
         try {
231 231
             $request = $this->buildRequest('PUT', $bucket, $newName, [
232
-                'X-Copy-From'    => '/' . $bucket->getOption('container') . '/' . rawurlencode($oldName),
232
+                'X-Copy-From'    => '/'.$bucket->getOption('container').'/'.rawurlencode($oldName),
233 233
                 'Content-Length' => 0
234 234
             ]);
235 235
 
@@ -266,7 +266,7 @@  discard block
 block discarded – undo
266 266
 
267 267
         try {
268 268
             $request = $this->buildRequest('PUT', $destination, $name, [
269
-                'X-Copy-From'    => '/' . $bucket->getOPtion('container') . '/' . rawurlencode($name),
269
+                'X-Copy-From'    => '/'.$bucket->getOPtion('container').'/'.rawurlencode($name),
270 270
                 'Content-Length' => 0
271 271
             ]);
272 272
 
@@ -343,13 +343,13 @@  discard block
 block discarded – undo
343 343
 
344 344
         if ($this->options['cache']) {
345 345
             $this->store->set(
346
-                $this->options['username'] . '@rackspace-token',
346
+                $this->options['username'].'@rackspace-token',
347 347
                 $this->authToken,
348 348
                 $this->options['lifetime']
349 349
             );
350 350
 
351 351
             $this->store->set(
352
-                $this->options['username'] . '@rackspace-regions',
352
+                $this->options['username'].'@rackspace-regions',
353 353
                 $this->regions,
354 354
                 $this->options['lifetime']
355 355
             );
@@ -387,7 +387,7 @@  discard block
 block discarded – undo
387 387
         }
388 388
 
389 389
         return new Uri(
390
-            $this->regions[$region] . '/' . $bucket->getOption('container') . '/' . rawurlencode($name)
390
+            $this->regions[$region].'/'.$bucket->getOption('container').'/'.rawurlencode($name)
391 391
         );
392 392
     }
393 393
 
Please login to merge, or discard this patch.
source/Spiral/Debug/Dumper.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
 
135 135
         if (!$hideHeader && !empty($name)) {
136 136
             //Showing element name (if any provided)
137
-            $header = $indent . $this->style->style($name, 'name');
137
+            $header = $indent.$this->style->style($name, 'name');
138 138
 
139 139
             //Showing equal sing
140 140
             $header .= $this->style->style(' = ', 'syntax', '=');
@@ -144,24 +144,24 @@  discard block
 block discarded – undo
144 144
 
145 145
         if ($level > $this->maxLevel) {
146 146
             //Dumper is not reference based, we can't dump too deep values
147
-            return $indent . $this->style->style('-too deep-', 'maxLevel') . "\n";
147
+            return $indent.$this->style->style('-too deep-', 'maxLevel')."\n";
148 148
         }
149 149
 
150 150
         $type = strtolower(gettype($value));
151 151
 
152 152
         if ($type == 'array') {
153
-            return $header . $this->dumpArray($value, $level, $hideHeader);
153
+            return $header.$this->dumpArray($value, $level, $hideHeader);
154 154
         }
155 155
 
156 156
         if ($type == 'object') {
157
-            return $header . $this->dumpObject($value, $level, $hideHeader);
157
+            return $header.$this->dumpObject($value, $level, $hideHeader);
158 158
         }
159 159
 
160 160
         if ($type == 'resource') {
161 161
             //No need to dump resource value
162
-            $element = get_resource_type($value) . ' resource ';
162
+            $element = get_resource_type($value).' resource ';
163 163
 
164
-            return $header . $this->style->style($element, 'type', 'resource') . "\n";
164
+            return $header.$this->style->style($element, 'type', 'resource')."\n";
165 165
         }
166 166
 
167 167
         //Value length
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
         }
189 189
 
190 190
         //Including value
191
-        return $header . ' ' . $this->style->style($element, 'value', $type) . "\n";
191
+        return $header.' '.$this->style->style($element, 'value', $type)."\n";
192 192
     }
193 193
 
194 194
     /**
@@ -206,8 +206,8 @@  discard block
 block discarded – undo
206 206
             $count = count($array);
207 207
 
208 208
             //Array size and scope
209
-            $output = $this->style->style("array({$count})", 'type', 'array') . "\n";
210
-            $output .= $indent . $this->style->style('[', 'syntax', '[') . "\n";
209
+            $output = $this->style->style("array({$count})", 'type', 'array')."\n";
210
+            $output .= $indent.$this->style->style('[', 'syntax', '[')."\n";
211 211
         } else {
212 212
             $output = '';
213 213
         }
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
 
227 227
         if (!$hideHeader) {
228 228
             //Closing array scope
229
-            $output .= $indent . $this->style->style(']', 'syntax', ']') . "\n";
229
+            $output .= $indent.$this->style->style(']', 'syntax', ']')."\n";
230 230
         }
231 231
 
232 232
         return $output;
@@ -249,10 +249,10 @@  discard block
 block discarded – undo
249 249
         $indent = $this->style->indent($level);
250 250
 
251 251
         if (!$hideHeader) {
252
-            $type = ($class ?: get_class($object)) . ' object ';
252
+            $type = ($class ?: get_class($object)).' object ';
253 253
 
254
-            $header = $this->style->style($type, 'type', 'object') . "\n";
255
-            $header .= $indent . $this->style->style('(', 'syntax', '(') . "\n";
254
+            $header = $this->style->style($type, 'type', 'object')."\n";
255
+            $header .= $indent.$this->style->style('(', 'syntax', '(')."\n";
256 256
         } else {
257 257
             $header = '';
258 258
         }
@@ -273,7 +273,7 @@  discard block
 block discarded – undo
273 273
 
274 274
             return $header
275 275
                 . $this->dumpValue($debugInfo, '', $level + (is_scalar($object)), true)
276
-                . $indent . $this->style->style(')', 'syntax', ')') . "\n";
276
+                . $indent.$this->style->style(')', 'syntax', ')')."\n";
277 277
         }
278 278
 
279 279
         if ($object instanceof \Closure) {
@@ -289,7 +289,7 @@  discard block
 block discarded – undo
289 289
         }
290 290
 
291 291
         //Header, content, footer
292
-        return $header . $output . $indent . $this->style->style(')', 'syntax', ')') . "\n";
292
+        return $header.$output.$indent.$this->style->style(')', 'syntax', ')')."\n";
293 293
     }
294 294
 
295 295
     /**
@@ -325,7 +325,7 @@  discard block
 block discarded – undo
325 325
         }
326 326
 
327 327
         //Property name includes access level
328
-        $name = $property->getName() . $this->style->style(':' . $access, 'access', $access);
328
+        $name = $property->getName().$this->style->style(':'.$access, 'access', $access);
329 329
 
330 330
         return $this->dumpValue($property->getValue($object), $name, $level + 1);
331 331
     }
Please login to merge, or discard this patch.
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.