@@ -24,7 +24,7 @@ |
||
| 24 | 24 | |
| 25 | 25 | if (!$this->fs->exists($this->themeFolder)) |
| 26 | 26 | { |
| 27 | - throw new FileNotFoundException("The '${themeName}' theme folder could not be found.'"); |
|
| 27 | + throw new FileNotFoundException("The '${themename}' theme folder could not be found.'"); |
|
| 28 | 28 | } |
| 29 | 29 | |
| 30 | 30 | if ($this->fs->exists($this->themeFile)) |
@@ -37,7 +37,9 @@ |
||
| 37 | 37 | */ |
| 38 | 38 | protected function copyToCompiledSite ($file, $prefix = "") |
| 39 | 39 | { |
| 40 | - if (!$this->fs->exists($file)) { return; } |
|
| 40 | + if (!$this->fs->exists($file)) |
|
| 41 | + { |
|
| 42 | +return; } |
|
| 41 | 43 | |
| 42 | 44 | $filePath = $file->getRealPath(); |
| 43 | 45 | $pathToStrip = $this->fs->appendPath(getcwd(), $prefix); |
@@ -6,14 +6,14 @@ |
||
| 6 | 6 | |
| 7 | 7 | class AssetManager extends FileManager |
| 8 | 8 | { |
| 9 | - public function __construct($includes = array(), $excludes = array()) |
|
| 9 | + public function __construct ($includes = array(), $excludes = array()) |
|
| 10 | 10 | { |
| 11 | 11 | parent::__construct(); |
| 12 | 12 | |
| 13 | 13 | $this->finder = $this->fs->getFinder($includes, $excludes); |
| 14 | 14 | } |
| 15 | 15 | |
| 16 | - public function copyFiles() |
|
| 16 | + public function copyFiles () |
|
| 17 | 17 | { |
| 18 | 18 | /** @var $file SplFileInfo */ |
| 19 | 19 | foreach ($this->finder as $file) |
@@ -183,7 +183,8 @@ |
||
| 183 | 183 | |
| 184 | 184 | $this->output->notice('Watch started successfully'); |
| 185 | 185 | |
| 186 | - $listener->onModify(function ($resource, $path) use ($targetPath) { |
|
| 186 | + $listener->onModify(function ($resource, $path) use ($targetPath) |
|
| 187 | + { |
|
| 187 | 188 | $filePath = $this->fs->getRelativePath($path); |
| 188 | 189 | |
| 189 | 190 | if ((substr($filePath, 0, strlen($targetPath)) === $targetPath) || |