@@ -168,7 +168,7 @@ discard block |
||
| 168 | 168 | |
| 169 | 169 | // generate from `de` the locale `de_DE` or from `en` `en_EN` only if $lang is 2 chars. |
| 170 | 170 | if (strlen($lang) == 2) { |
| 171 | - return strtolower($lang) . '_' . strtoupper($lang); |
|
| 171 | + return strtolower($lang).'_'.strtoupper($lang); |
|
| 172 | 172 | } |
| 173 | 173 | |
| 174 | 174 | return $lang; |
@@ -237,7 +237,7 @@ discard block |
||
| 237 | 237 | public function getWebroot() |
| 238 | 238 | { |
| 239 | 239 | if ($this->_webroot === null) { |
| 240 | - $this->_webroot = realpath(realpath($this->basePath) . DIRECTORY_SEPARATOR . $this->webrootDirectory); |
|
| 240 | + $this->_webroot = realpath(realpath($this->basePath).DIRECTORY_SEPARATOR.$this->webrootDirectory); |
|
| 241 | 241 | } |
| 242 | 242 | |
| 243 | 243 | return $this->_webroot; |
@@ -318,7 +318,7 @@ discard block |
||
| 318 | 318 | public function getAdminModulesMenus() |
| 319 | 319 | { |
| 320 | 320 | $menu = []; |
| 321 | - foreach($this->getAdminModules() as $module) { |
|
| 321 | + foreach ($this->getAdminModules() as $module) { |
|
| 322 | 322 | if ($module->getMenu()) { |
| 323 | 323 | $menu[$module->id] = $module->getMenu(); |
| 324 | 324 | } |
@@ -106,7 +106,7 @@ |
||
| 106 | 106 | // see if the module has a registerComponents method |
| 107 | 107 | foreach ($module->registerComponents() as $componentId => $definition) { |
| 108 | 108 | if (!$app->has($componentId)) { |
| 109 | - Yii::debug('Register component ' . $componentId, __METHOD__); |
|
| 109 | + Yii::debug('Register component '.$componentId, __METHOD__); |
|
| 110 | 110 | $app->set($componentId, $definition); |
| 111 | 111 | } |
| 112 | 112 | } |