Passed
Push — master ( f409da...03e09c )
by Petr
02:25
created
php-src/Pointers/SocketProcessor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
     {
48 48
         $this->remoteResponse = null;
49 49
         $reply = null;
50
-        $result = socket_recv($filePointer, $reply , static::PART_SPLIT , MSG_WAITALL);
50
+        $result = socket_recv($filePointer, $reply, static::PART_SPLIT, MSG_WAITALL);
51 51
         if (false === $result) { // because could return size 0 bytes
52 52
             $errorCode = socket_last_error();
53 53
             $errorMessage = socket_strerror($errorCode);
Please login to merge, or discard this patch.
php-src/Protocols/Fsp/Session.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
 
51 51
     public function hasKey(): bool
52 52
     {
53
-        return (empty($this->host))? false : (!empty(static::$key[$this->host]));
53
+        return (empty($this->host)) ? false : (!empty(static::$key[$this->host]));
54 54
     }
55 55
 
56 56
     /**
Please login to merge, or discard this patch.
php-src/Protocols/Fsp/Traits/TChecksum.php 1 patch
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,6 @@
 block discarded – undo
13 13
  unsigned char *t;
14 14
  for(t = packet_start, sum = 0; t < packet_end; sum += *t++);
15 15
  checksum= sum + (sum >> 8);
16
-
17 16
  * PHP, Perl
18 17
  $len = strlen($packet);
19 18
  $packet[1] = chr(0); // at first null checksum in packet
Please login to merge, or discard this patch.
php-src/Protocols/Fsp/Answer/GetDir/FileInfo.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -55,8 +55,8 @@  discard block
 block discarded – undo
55 55
     protected function parseLinkName(): void
56 56
     {
57 57
         $nlpos = strpos($this->file_name, "\n");
58
-        $this->link_name = $nlpos ? substr($this->file_name, $nlpos + 1) : '' ;
59
-        $this->file_name = $this->link_name && $nlpos ? substr($this->file_name, 0, $nlpos) : $this->file_name ;
58
+        $this->link_name = $nlpos ? substr($this->file_name, $nlpos + 1) : '';
59
+        $this->file_name = $this->link_name && $nlpos ? substr($this->file_name, 0, $nlpos) : $this->file_name;
60 60
     }
61 61
 
62 62
     public function setPath(string $path): self
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
 
172 172
     public function getLinkTarget(): string
173 173
     {
174
-        return $this->isLink() ? $this->link_name : '' ;
174
+        return $this->isLink() ? $this->link_name : '';
175 175
     }
176 176
 
177 177
     #[\ReturnTypeWillChange]
Please login to merge, or discard this patch.
php-src/Protocols/Fsp/Answer/GetDir.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
         $newPacket = true;
50 50
         do {
51 51
             if ($newPacket) {
52
-                $endSeq =+ 12;
52
+                $endSeq = + 12;
53 53
                 $newPacket = false;
54 54
             }
55 55
             $record = substr($data, $startSeq, $endSeq);
Please login to merge, or discard this patch.
php-src/Protocols/Fsp/Query/Install.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,6 +51,6 @@
 block discarded – undo
51 51
 
52 52
     protected function getExtraData(): string
53 53
     {
54
-        return !empty($this->timestamp) ? Fsp\Strings::filler($this->timestamp, 4) : '' ;
54
+        return !empty($this->timestamp) ? Fsp\Strings::filler($this->timestamp, 4) : '';
55 55
     }
56 56
 }
Please login to merge, or discard this patch.
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.