Passed
Push — master ( 15770c...ea0752 )
by Petr
08:09
created
php-src/Protocols/Fsp/Query/GetFile.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,6 +55,6 @@
 block discarded – undo
55 55
 
56 56
     protected function getExtraData(): string
57 57
     {
58
-        return ($this->limit) ? Fsp\Strings::filler($this->limit, 2) : '' ;
58
+        return ($this->limit) ? Fsp\Strings::filler($this->limit, 2) : '';
59 59
     }
60 60
 }
Please login to merge, or discard this patch.
php-src/Protocols/Fsp/Query/SetProtection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,6 +80,6 @@
 block discarded – undo
80 80
             $this->operation = static::CAN_RENAME_FILE;
81 81
             $this->allow = !$this->allow;
82 82
         }
83
-        return ($this->allow ? static::ALLOW : static::DISCARD) . $this->operation ;
83
+        return ($this->allow ? static::ALLOW : static::DISCARD) . $this->operation;
84 84
     }
85 85
 }
Please login to merge, or discard this patch.
php-src/Protocols/Http/Answer/DecodeStreams/ADecoder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
         if (empty($headers)) {
42 42
             return [];
43 43
         }
44
-        return array_map(function ($enc) {
44
+        return array_map(function($enc) {
45 45
             return trim(mb_strtolower($enc));
46 46
         }, explode(',', $headers));
47 47
     }
Please login to merge, or discard this patch.
php-src/Wrappers/Fsp/AOperations.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
                 $this->runner->getTimeout($host)
47 47
             );
48 48
         }
49
-        $pre = (in_array($into[0], ['.', '\\'])) ? substr($into, 1) : $into ;
49
+        $pre = (in_array($into[0], ['.', '\\'])) ? substr($into, 1) : $into;
50 50
         return $pre;
51 51
     }
52 52
 }
Please login to merge, or discard this patch.
php-src/Protocols/Fsp/Strings.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -22,10 +22,10 @@
 block discarded – undo
22 22
     {
23 23
         $len = strlen($str);
24 24
         $char = (1 < $len) ? substr($str, $len - 1) : $str;
25
-        $next = (1 < $len) ? substr($str, 0, $len - 1) : '' ;
25
+        $next = (1 < $len) ? substr($str, 0, $len - 1) : '';
26 26
         return
27
-            ( (!empty($next)) ? ( static::mb_ord($next) * 256 ) : 0 )
28
-            + ord($char) ;
27
+            ((!empty($next)) ? (static::mb_ord($next) * 256) : 0)
28
+            + ord($char);
29 29
     }
30 30
 
31 31
     public static function filler(int $input, int $length): string
Please login to merge, or discard this patch.
php-src/Protocols/Fsp/Answer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
             ]);
121 121
         }
122 122
         // @codeCoverageIgnoreEnd
123
-        if ($checksum != $this->headChecksum ) {
123
+        if ($checksum != $this->headChecksum) {
124 124
             throw new RequestException($this->lang->rrFspInvalidChecksum($checksum, $this->headChecksum));
125 125
         }
126 126
     }
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
 
133 133
     public function getChecksumPacket(): string
134 134
     {
135
-        $content = $this->header . $this->content . $this->extra ;
135
+        $content = $this->header . $this->content . $this->extra;
136 136
         $content[1] = chr(0); // null checksum
137 137
         return $content;
138 138
     }
Please login to merge, or discard this patch.
php-src/Protocols/Http/Answer/DecodeStrings/ADecoder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
         if (empty($headers)) {
42 42
             return [];
43 43
         }
44
-        return array_map(function ($enc) {
44
+        return array_map(function($enc) {
45 45
             return trim(mb_strtolower($enc));
46 46
         }, explode(',', $headers));
47 47
     }
Please login to merge, or discard this patch.
php-src/Protocols/Http/Answer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
 
172 172
     public function getHeader(string $key, ?string $default = null): ?string
173 173
     {
174
-        return isset($this->headers[$key])? strval(reset($this->headers[$key])) : $default;
174
+        return isset($this->headers[$key]) ? strval(reset($this->headers[$key])) : $default;
175 175
     }
176 176
 
177 177
     /**
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
      */
181 181
     public function getHeaders(string $key): array
182 182
     {
183
-        return isset($this->headers[$key])? $this->headers[$key] : [];
183
+        return isset($this->headers[$key]) ? $this->headers[$key] : [];
184 184
     }
185 185
 
186 186
     /**
Please login to merge, or discard this patch.
php-src/Protocols/Http/Query.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
      */
150 150
     public function addValues($array): self
151 151
     {
152
-        array_walk($array, function ($value, $key) {
152
+        array_walk($array, function($value, $key) {
153 153
             $this->addValue($key, $value);
154 154
         });
155 155
         return $this;
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
 
228 228
     protected function prepareBoundary(): self
229 229
     {
230
-        $this->boundary = $this->isMultipart() ? $this->generateBoundary() : null ;
230
+        $this->boundary = $this->isMultipart() ? $this->generateBoundary() : null;
231 231
         return $this;
232 232
     }
233 233
 
@@ -347,7 +347,7 @@  discard block
 block discarded – undo
347 347
      */
348 348
     protected function getQueryHeaders(): string
349 349
     {
350
-        return implode(Http::DELIMITER, array_map(function ($key, $value) {
350
+        return implode(Http::DELIMITER, array_map(function($key, $value) {
351 351
             return sprintf('%s: %s', $key, $value);
352 352
         }, array_keys($this->headers), array_values($this->headers)));
353 353
     }
@@ -369,7 +369,7 @@  discard block
 block discarded – undo
369 369
     {
370 370
         $requestPart = '';
371 371
         if ($this->isInline() && !empty($this->content)) {
372
-            $requestPart .= (false === mb_strpos($this->path, '?')) ? '?' : '&' ;
372
+            $requestPart .= (false === mb_strpos($this->path, '?')) ? '?' : '&';
373 373
             $requestPart .= $this->getSimpleRequest();
374 374
         }
375 375
         return $this->path . $requestPart;
@@ -381,7 +381,7 @@  discard block
 block discarded – undo
381 381
      */
382 382
     protected function getSimpleRequest(): string
383 383
     {
384
-        return implode('&', array_map(function ($key, Http\Query\Value $value) {
384
+        return implode('&', array_map(function($key, Http\Query\Value $value) {
385 385
             return sprintf('%s=%s', urlencode($key), urlencode($value->getContent()));
386 386
         }, array_keys($this->content), array_values($this->content)));
387 387
     }
Please login to merge, or discard this patch.