Replace long array definitions with short tokens (!66)

This commit is contained in:
itismadness
2019-11-26 03:24:03 +00:00
parent a2e254c416
commit 3cb4b2e72e
273 changed files with 1794 additions and 1789 deletions
+1 -1
View File
@@ -171,7 +171,7 @@ class BencodeDecode extends Bencode {
}
if ($ErrMsg === false) {
printf("Malformed string. Invalid character at pos 0x%X: %s\n",
$this->Pos, str_replace(array("\r","\n"), array('',' '), htmlentities(substr($this->Data, $this->Pos, self::SnipLength))));
$this->Pos, str_replace(["\r","\n"], ['',' '], htmlentities(substr($this->Data, $this->Pos, self::SnipLength))));
} else {
echo $ErrMsg;
}