| @@ -42,14 +42,14 @@ discard block | ||
| 42 | 42 | * | 
| 43 | 43 | * @static | 
| 44 | 44 | */ | 
| 45 | - private static Loader|null $instance = null; | |
| 45 | + private static Loader | null $instance = null; | |
| 46 | 46 | |
| 47 | 47 | /** | 
| 48 | 48 | * Factory to return a factory responsible for returning a `CacheInterface` | 
| 49 | 49 | * | 
| 50 | 50 | * @static | 
| 51 | 51 | */ | 
| 52 | - private static CacheFactoryInterface|null $cacheFactory = null; | |
| 52 | + private static CacheFactoryInterface | null $cacheFactory = null; | |
| 53 | 53 | |
| 54 | 54 | /** | 
| 55 | 55 | * Default gettext domain to use. | 
| @@ -156,7 +156,7 @@ discard block | ||
| 156 | 156 | } | 
| 157 | 157 | |
| 158 | 158 | // If the locale name doesn't match POSIX style, just include it as-is. | 
| 159 | -            if (! in_array($locale, $localeNames)) { | |
| 159 | +            if (!in_array($locale, $localeNames)) { | |
| 160 | 160 | $localeNames[] = $locale; | 
| 161 | 161 | } | 
| 162 | 162 | } | 
| @@ -167,7 +167,7 @@ discard block | ||
| 167 | 167 | /** | 
| 168 | 168 | * Sets factory responsible for composing a `CacheInterface` | 
| 169 | 169 | */ | 
| 170 | - public static function setCacheFactory(CacheFactoryInterface|null $cacheFactory): void | |
| 170 | + public static function setCacheFactory(CacheFactoryInterface | null $cacheFactory): void | |
| 171 | 171 |      { | 
| 172 | 172 | self::$cacheFactory = $cacheFactory; | 
| 173 | 173 | } | 
| @@ -185,7 +185,7 @@ discard block | ||
| 185 | 185 | |
| 186 | 186 | $this->domains[$this->locale] ??= []; | 
| 187 | 187 | |
| 188 | -        if (! isset($this->domains[$this->locale][$domain])) { | |
| 188 | +        if (!isset($this->domains[$this->locale][$domain])) { | |
| 189 | 189 | $base = $this->paths[$domain] ?? './'; | 
| 190 | 190 | |
| 191 | 191 | $localeNames = self::listLocales($this->locale); | 
| @@ -243,7 +243,7 @@ discard block | ||
| 243 | 243 | */ | 
| 244 | 244 | public function setlocale(string $locale): string | 
| 245 | 245 |      { | 
| 246 | -        if (! empty($locale)) { | |
| 246 | +        if (!empty($locale)) { | |
| 247 | 247 | $this->locale = $locale; | 
| 248 | 248 | } | 
| 249 | 249 | |
| @@ -94,24 +94,24 @@ discard block | ||
| 94 | 94 | /** | 
| 95 | 95 | * Cache header field for plural forms. | 
| 96 | 96 | */ | 
| 97 | - private string|null $pluralEquation = null; | |
| 97 | + private string | null $pluralEquation = null; | |
| 98 | 98 | |
| 99 | 99 | /** | 
| 100 | 100 | * Evaluator for plurals | 
| 101 | 101 | */ | 
| 102 | - private ExpressionLanguage|null $pluralExpression = null; | |
| 102 | + private ExpressionLanguage | null $pluralExpression = null; | |
| 103 | 103 | |
| 104 | 104 | /** | 
| 105 | 105 | * number of plurals | 
| 106 | 106 | */ | 
| 107 | - private int|null $pluralCount = null; | |
| 107 | + private int | null $pluralCount = null; | |
| 108 | 108 | |
| 109 | 109 | private CacheInterface $cache; | 
| 110 | 110 | |
| 111 | 111 | /** @param CacheInterface|string|null $cache Mo file to load (null for no file) or a CacheInterface implementation */ | 
| 112 | - public function __construct(CacheInterface|string|null $cache) | |
| 112 | + public function __construct(CacheInterface | string | null $cache) | |
| 113 | 113 |      { | 
| 114 | -        if (! $cache instanceof CacheInterface) { | |
| 114 | +        if (!$cache instanceof CacheInterface) { | |
| 115 | 115 | $cache = new InMemoryCache(new MoParser($cache)); | 
| 116 | 116 | } | 
| 117 | 117 | |
| @@ -276,7 +276,7 @@ discard block | ||
| 276 | 276 |      { | 
| 277 | 277 | // this should contains all strings separated by NULLs | 
| 278 | 278 |          $key = $msgid . "\u{0}" . $msgidPlural; | 
| 279 | -        if (! $this->cache->has($key)) { | |
| 279 | +        if (!$this->cache->has($key)) { | |
| 280 | 280 | return $number !== 1 ? $msgidPlural : $msgid; | 
| 281 | 281 | } | 
| 282 | 282 | |