| @@ -91,7 +91,7 @@ discard block | ||
| 91 | 91 | $value = str_replace($val, $key, $value); | 
| 92 | 92 | } | 
| 93 | 93 | |
| 94 | -        return (string)preg_replace('/[^\x20-\x7E]/u', '', $value); | |
| 94 | +        return (string) preg_replace('/[^\x20-\x7E]/u', '', $value); | |
| 95 | 95 | } | 
| 96 | 96 | |
| 97 | 97 | /** | 
| @@ -258,7 +258,7 @@ discard block | ||
| 258 | 258 | // pattern such as "library/*", making any string check convenient. | 
| 259 | 259 |          $cleanQuoted = str_replace('\*', '.*', $quoted); | 
| 260 | 260 | |
| 261 | -        return (bool)preg_match('#^' . $cleanQuoted . '\z#', $value); | |
| 261 | +        return (bool) preg_match('#^' . $cleanQuoted . '\z#', $value); | |
| 262 | 262 | } | 
| 263 | 263 | |
| 264 | 264 | /** | 
| @@ -570,7 +570,7 @@ discard block | ||
| 570 | 570 | */ | 
| 571 | 571 | public static function isAscii(string $value): bool | 
| 572 | 572 |      { | 
| 573 | -        return (bool)!preg_match('/[^\x00-\x7F]/S', $value); | |
| 573 | +        return (bool) !preg_match('/[^\x00-\x7F]/S', $value); | |
| 574 | 574 | } | 
| 575 | 575 | |
| 576 | 576 | /** | 
| @@ -603,7 +603,7 @@ discard block | ||
| 603 | 603 |      { | 
| 604 | 604 | $bytes = random_bytes((int) ceil($length / 2)); | 
| 605 | 605 | |
| 606 | - return (string)substr(bin2hex($bytes), 0, $length); | |
| 606 | + return (string) substr(bin2hex($bytes), 0, $length); | |
| 607 | 607 | } | 
| 608 | 608 | |
| 609 | 609 | /** | 
| @@ -668,7 +668,7 @@ discard block | ||
| 668 | 668 | $pool = '2345679ACDEFHJKLMNPRSTUVWXYZ'; | 
| 669 | 669 | break; | 
| 670 | 670 | default: | 
| 671 | - $pool = (string)$type; | |
| 671 | + $pool = (string) $type; | |
| 672 | 672 | $utf8 = !self::isAscii($pool); | 
| 673 | 673 | break; | 
| 674 | 674 | } | 
| @@ -772,7 +772,7 @@ discard block | ||
| 772 | 772 | $ignoreKeys = $firstKey === 0; | 
| 773 | 773 | |
| 774 | 774 |          return sprintf('[%s]', implode(', ', array_map( | 
| 775 | -            function ($key, $value) use ($ignoreKeys) { | |
| 775 | +            function($key, $value) use ($ignoreKeys) { | |
| 776 | 776 | return $ignoreKeys | 
| 777 | 777 | ? self::stringify($value) | 
| 778 | 778 | : sprintf( |