diff options
author | emkael <emkael@tlen.pl> | 2016-11-03 23:22:40 +0100 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2016-11-03 23:22:40 +0100 |
commit | bef5754e4676a8a578550b6af24d050a946405eb (patch) | |
tree | 190a54af236d00c476b28799ba502a42205a95c5 /app/frontend/i18n/Globalization.php | |
parent | 94e03b260197122ae8f6d7dfedfb2a191fdae273 (diff) |
* more strict function definitions
Diffstat (limited to 'app/frontend/i18n/Globalization.php')
-rw-r--r-- | app/frontend/i18n/Globalization.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/frontend/i18n/Globalization.php b/app/frontend/i18n/Globalization.php index 5c0b25a..25294ce 100644 --- a/app/frontend/i18n/Globalization.php +++ b/app/frontend/i18n/Globalization.php @@ -50,7 +50,7 @@ class Globalization extends TGlobalization { return $culture; } - private function _getNeutralCulture($culture) { + private function _getNeutralCulture(string $culture) { return explode('_', $culture)[0]; } @@ -64,7 +64,7 @@ class Globalization extends TGlobalization { protected $_allowedCultures = []; - public function setAllowedCultures($cultures) { + public function setAllowedCultures(string $cultures) { $this->_allowedCultures = array_map('trim', explode(',', $cultures)); } |