@@ -62,7 +62,7 @@ |
||
62 | 62 | $this->modules[$module->getModuleName()] = $module; |
63 | 63 | $module->onLoad(); |
64 | 64 | } else { |
65 | - throw new \Tight\Exception\ModuleException("Module <strong>" . $module->getModuleName() . "</strong> already exists"); |
|
65 | + throw new \Tight\Exception\ModuleException("Module <strong>".$module->getModuleName()."</strong> already exists"); |
|
66 | 66 | } |
67 | 67 | } |
68 | 68 |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | if (is_array($config)) { |
61 | 61 | $config = new \Tight\Modules\Localize\LocalizeConfig($config); |
62 | 62 | } else if (!$config instanceof \Tight\Modules\Localize\LocalizeConfig) { |
63 | - throw new \InvalidArgumentException("Argument 1 passed to " . get_class($this) . " must be an array or an instance of Tight\Modules\Localize\LocalizeConfig"); |
|
63 | + throw new \InvalidArgumentException("Argument 1 passed to ".get_class($this)." must be an array or an instance of Tight\Modules\Localize\LocalizeConfig"); |
|
64 | 64 | } |
65 | 65 | parent::__construct("LocalizeModule"); |
66 | 66 | $this->setConfig($config); |
@@ -114,17 +114,17 @@ discard block |
||
114 | 114 | public function setLocale($locale) { |
115 | 115 | $this->locale = $locale; |
116 | 116 | $folder = \Tight\Utils::addTrailingSlash($this->getConfig()->resourceFolder); |
117 | - $fileName = $this->getConfig()->resourceFileName . $this->getConfig()->langSeparator . $locale . "." . $this->getConfig()->resourceFileType; |
|
118 | - $file = $folder . $fileName; |
|
117 | + $fileName = $this->getConfig()->resourceFileName.$this->getConfig()->langSeparator.$locale.".".$this->getConfig()->resourceFileType; |
|
118 | + $file = $folder.$fileName; |
|
119 | 119 | if (is_file($file)) { |
120 | 120 | $this->values = json_decode(file_get_contents($file), JSON_FORCE_OBJECT); |
121 | 121 | } else { |
122 | - $fileName = $this->getConfig()->resourceFileName . "." . $this->getConfig()->resourceFileType; |
|
123 | - $file = $folder . $fileName; |
|
122 | + $fileName = $this->getConfig()->resourceFileName.".".$this->getConfig()->resourceFileType; |
|
123 | + $file = $folder.$fileName; |
|
124 | 124 | if (is_file($file)) { |
125 | 125 | $this->values = json_decode(file_get_contents($file), JSON_FORCE_OBJECT); |
126 | 126 | } else { |
127 | - throw new \Tight\Exception\ModuleException("Resource file <strong>" . $file . "</strong> not found"); |
|
127 | + throw new \Tight\Exception\ModuleException("Resource file <strong>".$file."</strong> not found"); |
|
128 | 128 | } |
129 | 129 | } |
130 | 130 | } |
@@ -145,7 +145,7 @@ discard block |
||
145 | 145 | } |
146 | 146 | } |
147 | 147 | foreach ($files as $element) { |
148 | - $file = \Tight\Utils::getSlicedFile($directory . $element); |
|
148 | + $file = \Tight\Utils::getSlicedFile($directory.$element); |
|
149 | 149 | //Removes extension |
150 | 150 | $name = $file["name"]; |
151 | 151 | $explode = explode($this->getConfig()->langSeparator, $name); |