@@ -86,13 +86,13 @@ discard block |
||
| 86 | 86 | $this->setDefaultLocale(reset($xDefault)); |
| 87 | 87 | } |
| 88 | 88 | |
| 89 | - if(class_exists('O2System\Framework', false) or class_exists('\O2System\Reactor', false)) { |
|
| 90 | - if(services()->has('session')) { |
|
| 89 | + if (class_exists('O2System\Framework', false) or class_exists('\O2System\Reactor', false)) { |
|
| 90 | + if (services()->has('session')) { |
|
| 91 | 91 | session()->set('language', $this->getDefault()); |
| 92 | 92 | } |
| 93 | 93 | |
| 94 | - if(count($this->isLoaded)) { |
|
| 95 | - foreach($this->isLoaded as $fileIndex => $filePath) { |
|
| 94 | + if (count($this->isLoaded)) { |
|
| 95 | + foreach ($this->isLoaded as $fileIndex => $filePath) { |
|
| 96 | 96 | unset($this->isLoaded[$fileIndex]); |
| 97 | 97 | $this->loadFile($fileIndex); |
| 98 | 98 | } |
@@ -177,7 +177,7 @@ discard block |
||
| 177 | 177 | |
| 178 | 178 | foreach ($filename as $file) { |
| 179 | 179 | $file = dash($file); |
| 180 | - if(! $this->isLoaded($file)) { |
|
| 180 | + if ( ! $this->isLoaded($file)) { |
|
| 181 | 181 | if (is_file($file)) { |
| 182 | 182 | $this->parseFile($file); |
| 183 | 183 | } else { |
@@ -235,7 +235,7 @@ discard block |
||
| 235 | 235 | if ( ! empty($lines)) { |
| 236 | 236 | $fileIndex = pathinfo($filePath, PATHINFO_FILENAME); |
| 237 | 237 | $fileIndex = str_replace('_' . $this->getDefault(), '', $fileIndex); |
| 238 | - $this->isLoaded[ $fileIndex ] = $filePath; |
|
| 238 | + $this->isLoaded[$fileIndex] = $filePath; |
|
| 239 | 239 | |
| 240 | 240 | $this->lines = array_merge($this->lines, $lines); |
| 241 | 241 | } |
@@ -258,9 +258,9 @@ discard block |
||
| 258 | 258 | $lineOffset = strtoupper($line); |
| 259 | 259 | |
| 260 | 260 | if (empty($context)) { |
| 261 | - $lineContent = isset($this->lines[ $lineOffset ]) ? $this->lines[ $lineOffset ] : $line; |
|
| 261 | + $lineContent = isset($this->lines[$lineOffset]) ? $this->lines[$lineOffset] : $line; |
|
| 262 | 262 | } else { |
| 263 | - $line = isset($this->lines[ $lineOffset ]) ? $this->lines[ $lineOffset ] : $line; |
|
| 263 | + $line = isset($this->lines[$lineOffset]) ? $this->lines[$lineOffset] : $line; |
|
| 264 | 264 | array_unshift($context, $line); |
| 265 | 265 | |
| 266 | 266 | $lineContent = @call_user_func_array('sprintf', $context); |