@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | /** |
72 | 72 | * The services that package provides. |
73 | 73 | * |
74 | - * @return array |
|
74 | + * @return string[] |
|
75 | 75 | */ |
76 | 76 | public function provides() |
77 | 77 | { |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | * Get a config value. |
145 | 145 | * @param string $key |
146 | 146 | * @param mixed $default |
147 | - * @return mixed |
|
147 | + * @return string |
|
148 | 148 | */ |
149 | 149 | protected function config($key, $default = null) |
150 | 150 | { |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -if (! function_exists('parse_langs_to_array')) { |
|
3 | +if (!function_exists('parse_langs_to_array')) { |
|
4 | 4 | /** |
5 | 5 | * Parse a simple string comma-separated to array. |
6 | 6 | * @see split_srt_to_simple_array. |
@@ -23,9 +23,9 @@ discard block |
||
23 | 23 | if (is_numeric($alias) && preg_match('/(-|_)/', $langLocale)) { |
24 | 24 | list($lang, $locale) = preg_split('/(-|_)/', $langLocale); |
25 | 25 | |
26 | - $newAlias = strtolower($lang).'_'.strtoupper($locale); |
|
26 | + $newAlias = strtolower($lang) . '_' . strtoupper($locale); |
|
27 | 27 | |
28 | - if (! isset($languages[$newAlias])) { |
|
28 | + if (!isset($languages[$newAlias])) { |
|
29 | 29 | $languages[$newAlias] = $langLocale; |
30 | 30 | } |
31 | 31 | } |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | } |
36 | 36 | } |
37 | 37 | |
38 | -if (! function_exists('split_str_to_simple_array')) { |
|
38 | +if (!function_exists('split_str_to_simple_array')) { |
|
39 | 39 | /** |
40 | 40 | * Parse a simple string comma-separated to array. It also allow to use simple |
41 | 41 | * indexes, like: "something:awesome, locale:pt-br, country:brazil". |