Completed
Push — master ( b13107...84196b )
by Anton
04:37
created
source/Spiral/Reactor/DeclarationAggregator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -202,7 +202,7 @@
 block discarded – undo
202 202
         $result = '';
203 203
 
204 204
         foreach ($this->elements as $element) {
205
-            $result .= $element->render($indentLevel) . "\n\n";
205
+            $result .= $element->render($indentLevel)."\n\n";
206 206
         }
207 207
 
208 208
         return rtrim($result, "\n");
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
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
     {
24 24
         $lines = $this->getLines();
25 25
 
26
-        array_walk($lines, function (&$line) use ($search, $replace) {
26
+        array_walk($lines, function(&$line) use ($search, $replace) {
27 27
             $line = str_replace($search, $replace, $line);
28 28
         });
29 29
 
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
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
         $result = "<?php\n";
109 109
 
110 110
         if (!$this->docComment->isEmpty()) {
111
-            $result .= $this->docComment->render($indentLevel) . "\n";
111
+            $result .= $this->docComment->render($indentLevel)."\n";
112 112
         }
113 113
 
114 114
         if (!empty($this->namespace)) {
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
         }
117 117
 
118 118
         if (!empty($this->uses)) {
119
-            $result .= $this->renderUses($indentLevel) . "\n\n";
119
+            $result .= $this->renderUses($indentLevel)."\n\n";
120 120
         }
121 121
 
122 122
         $result .= $this->elements->render($indentLevel);
Please login to merge, or discard this patch.
source/Spiral/Database/Helpers/QueryInterpolator.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -120,16 +120,16 @@
 block discarded – undo
120 120
                 return sprintf('%F', $parameter);
121 121
 
122 122
             case 'string':
123
-                return "'" . addcslashes($parameter, "'") . "'";
123
+                return "'".addcslashes($parameter, "'")."'";
124 124
 
125 125
             case 'object':
126 126
                 if (method_exists($parameter, '__toString')) {
127
-                    return "'" . addcslashes((string)$parameter, "'") . "'";
127
+                    return "'".addcslashes((string)$parameter, "'")."'";
128 128
                 }
129 129
 
130 130
                 if ($parameter instanceof \DateTime) {
131 131
                     //Let's process dates different way
132
-                    return "'" . $parameter->format(\DateTime::ISO8601) . "'";
132
+                    return "'".$parameter->format(\DateTime::ISO8601)."'";
133 133
                 }
134 134
         }
135 135
 
Please login to merge, or discard this patch.
source/Spiral/Storage/StorageInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
      *
61 61
      * @throws StorageException
62 62
      */
63
-    public function locateBucket(string $address, string &$name = null): BucketInterface;
63
+    public function locateBucket(string $address, string & $name = null): BucketInterface;
64 64
 
65 65
     /**
66 66
      * Get or create instance of storage server.
Please login to merge, or discard this patch.
source/Spiral/Storage/StorageManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -177,7 +177,7 @@
 block discarded – undo
177 177
     /**
178 178
      * {@inheritdoc}
179 179
      */
180
-    public function locateBucket(string $address, string &$name = null): BucketInterface
180
+    public function locateBucket(string $address, string & $name = null): BucketInterface
181 181
     {
182 182
         /**
183 183
          * @var BucketInterface $bestBucket
Please login to merge, or discard this patch.
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/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.