summaryrefslogtreecommitdiff
path: root/app/frontend/i18n
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2016-11-03 23:22:40 +0100
committeremkael <emkael@tlen.pl>2016-11-03 23:22:40 +0100
commitbef5754e4676a8a578550b6af24d050a946405eb (patch)
tree190a54af236d00c476b28799ba502a42205a95c5 /app/frontend/i18n
parent94e03b260197122ae8f6d7dfedfb2a191fdae273 (diff)
* more strict function definitions
Diffstat (limited to 'app/frontend/i18n')
-rw-r--r--app/frontend/i18n/DbGlobalization.php2
-rw-r--r--app/frontend/i18n/Globalization.php4
2 files changed, 3 insertions, 3 deletions
diff --git a/app/frontend/i18n/DbGlobalization.php b/app/frontend/i18n/DbGlobalization.php
index 4ab4b9e..6e35370 100644
--- a/app/frontend/i18n/DbGlobalization.php
+++ b/app/frontend/i18n/DbGlobalization.php
@@ -6,7 +6,7 @@ class DbGlobalization extends TModule {
private $_connection;
- public function setConnection($dbModule) {
+ public function setConnection(string $dbModule) {
$dbModule = $this->Application->getModule($dbModule);
if (!($dbModule instanceof TDataSourceConfig)) {
throw new TConfigurationException(
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));
}