@@ -196,10 +196,10 @@ discard block |
||
| 196 | 196 | */ |
| 197 | 197 | public function setProperties(array $properties) |
| 198 | 198 | { |
| 199 | - if (isset($properties[ 'presets' ])) { |
|
| 200 | - $this->setPresets($properties[ 'presets' ]); |
|
| 199 | + if (isset($properties['presets'])) { |
|
| 200 | + $this->setPresets($properties['presets']); |
|
| 201 | 201 | |
| 202 | - unset($properties[ 'presets' ]); |
|
| 202 | + unset($properties['presets']); |
|
| 203 | 203 | } |
| 204 | 204 | |
| 205 | 205 | $this->properties = $properties; |
@@ -289,7 +289,7 @@ discard block |
||
| 289 | 289 | $themes = []; |
| 290 | 290 | foreach ($directory->getTree() as $themeName => $themeTree) { |
| 291 | 291 | if (($theme = $this->getTheme($themeName)) instanceof Module\Theme) { |
| 292 | - $themes[ $themeName ] = $theme; |
|
| 292 | + $themes[$themeName] = $theme; |
|
| 293 | 293 | } |
| 294 | 294 | } |
| 295 | 295 | |
@@ -310,11 +310,11 @@ discard block |
||
| 310 | 310 | $dirResources = PATH_RESOURCES; |
| 311 | 311 | |
| 312 | 312 | $dirPath = str_replace(PATH_APP, '', $this->getRealPath()); |
| 313 | - $dirPathParts = explode(DIRECTORY_SEPARATOR, str_replace(['/','\\'], DIRECTORY_SEPARATOR, $dirPath)); |
|
| 313 | + $dirPathParts = explode(DIRECTORY_SEPARATOR, str_replace(['/', '\\'], DIRECTORY_SEPARATOR, $dirPath)); |
|
| 314 | 314 | |
| 315 | - if(count($dirPathParts)) { |
|
| 315 | + if (count($dirPathParts)) { |
|
| 316 | 316 | $dirPathParts = array_map('dash', $dirPathParts); |
| 317 | - $dirResources.= implode(DIRECTORY_SEPARATOR, $dirPathParts); |
|
| 317 | + $dirResources .= implode(DIRECTORY_SEPARATOR, $dirPathParts); |
|
| 318 | 318 | } |
| 319 | 319 | |
| 320 | 320 | if (is_null($subDir)) { |
@@ -156,8 +156,8 @@ |
||
| 156 | 156 | */ |
| 157 | 157 | public function reload() |
| 158 | 158 | { |
| 159 | - if(count($this->loaded)) { |
|
| 160 | - foreach($this->loaded as $filename) { |
|
| 159 | + if (count($this->loaded)) { |
|
| 160 | + foreach ($this->loaded as $filename) { |
|
| 161 | 161 | $this->loadFile($filename); |
| 162 | 162 | } |
| 163 | 163 | } |