updated backend

This commit is contained in:
Torsten 2020-01-17 10:58:01 +01:00
parent 1fea0f4fe7
commit 11521c2339
3459 changed files with 72735 additions and 168535 deletions

View file

@ -35,7 +35,7 @@ class Unescaper
*
* @return string The unescaped string
*/
public function unescapeSingleQuotedString($value)
public function unescapeSingleQuotedString(string $value): string
{
return str_replace('\'\'', '\'', $value);
}
@ -47,7 +47,7 @@ class Unescaper
*
* @return string The unescaped string
*/
public function unescapeDoubleQuotedString($value)
public function unescapeDoubleQuotedString(string $value): string
{
$callback = function ($match) {
return $this->unescapeCharacter($match[0]);
@ -64,7 +64,7 @@ class Unescaper
*
* @return string The unescaped character
*/
private function unescapeCharacter($value)
private function unescapeCharacter(string $value): string
{
switch ($value[1]) {
case '0':
@ -120,12 +120,8 @@ class Unescaper
/**
* Get the UTF-8 character for the given code point.
*
* @param int $c The unicode code point
*
* @return string The corresponding UTF-8 character
*/
private static function utf8chr($c)
private static function utf8chr(int $c): string
{
if (0x80 > $c %= 0x200000) {
return \chr($c);