@@ -49,7 +49,7 @@ |
||
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); |
@@ -51,6 +51,6 @@ |
||
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 | } |
@@ -55,6 +55,6 @@ |
||
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 | } |
@@ -80,6 +80,6 @@ |
||
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 | } |
@@ -41,7 +41,7 @@ |
||
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 | } |
@@ -32,7 +32,7 @@ |
||
32 | 32 | |
33 | 33 | public function __construct(IRRTranslations $lang, Sockets\ASocket $method = null) |
34 | 34 | { |
35 | - $this->socket = (empty($method)) ? new Sockets\FSocket($lang) : $method ; |
|
35 | + $this->socket = (empty($method)) ? new Sockets\FSocket($lang) : $method; |
|
36 | 36 | $this->processor = ($this->socket instanceof Sockets\Socket) |
37 | 37 | ? new Pointers\SocketProcessor($lang) |
38 | 38 | : new Pointers\Processor($lang) |
@@ -46,7 +46,7 @@ |
||
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 | } |
@@ -22,10 +22,10 @@ |
||
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 |
@@ -120,7 +120,7 @@ discard block |
||
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 |
||
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 | } |