@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | function _message(string $subject, $params): string |
49 | 49 | { |
50 | 50 | if (is_array($params)) { |
51 | - return preg_replace_callback('/{%\d+}/', function () use (&$params) { |
|
51 | + return preg_replace_callback('/{%\d+}/', function() use (&$params) { |
|
52 | 52 | return array_shift($params); |
53 | 53 | }, $subject); |
54 | 54 | } else { |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | for ($i = 0; $i < $length; $i++) { |
157 | 157 | $randomString .= rand(0, 9); |
158 | 158 | } |
159 | - return (int)$randomString; |
|
159 | + return (int) $randomString; |
|
160 | 160 | } |
161 | 161 | |
162 | 162 | /** |
@@ -73,7 +73,7 @@ |
||
73 | 73 | throw LangException::misconfiguredDefaultConfig(); |
74 | 74 | } |
75 | 75 | |
76 | - if (empty($lang) || !in_array($lang, (array)config()->get('langs'))) { |
|
76 | + if (empty($lang) || !in_array($lang, (array) config()->get('langs'))) { |
|
77 | 77 | $lang = config()->get('lang_default'); |
78 | 78 | } |
79 | 79 |
@@ -327,7 +327,7 @@ |
||
327 | 327 | */ |
328 | 328 | private function columnKey(): int |
329 | 329 | { |
330 | - return (int)array_key_last($this->columns); |
|
330 | + return (int) array_key_last($this->columns); |
|
331 | 331 | } |
332 | 332 | |
333 | 333 | } |