mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
CS fixes
This commit is contained in:
@@ -58,9 +58,9 @@ class PhpYenc
|
||||
$encodedLength = \strlen($encoded);
|
||||
for ($chr = 0; $chr < $encodedLength; $chr++) {
|
||||
$decoded .= (
|
||||
$encoded[$chr] === '=' ?
|
||||
\chr((\ord($encoded[$chr]) - 42) % 256) :
|
||||
\chr((((\ord($encoded[++$chr]) - 64) % 256) - 42) % 256)
|
||||
$encoded[$chr] === '=' ?
|
||||
\chr((\ord($encoded[$chr]) - 42) % 256) :
|
||||
\chr((((\ord($encoded[++$chr]) - 64) % 256) - 42) % 256)
|
||||
);
|
||||
}
|
||||
|
||||
@@ -113,9 +113,9 @@ class PhpYenc
|
||||
$length = \strlen($input);
|
||||
for ($chr = 0; $chr < $length; $chr++) {
|
||||
$text .= (
|
||||
$input[$chr] === '=' ?
|
||||
\chr((((\ord($input[++$chr]) - 64) % 256) - 42) % 256) :
|
||||
\chr((\ord($input[$chr]) - 42) % 256)
|
||||
$input[$chr] === '=' ?
|
||||
\chr((((\ord($input[++$chr]) - 64) % 256) - 42) % 256) :
|
||||
\chr((\ord($input[$chr]) - 42) % 256)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user