@@ -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)) |
@@ -203,7 +203,8 @@ |
||
| 203 | 203 | } |
| 204 | 204 | |
| 205 | 205 | if (strpos($haystack, $query, $offset) !== false) |
| 206 | - { // stop on first true result |
|
| 206 | + { |
|
| 207 | +// stop on first true result |
|
| 207 | 208 | return true; |
| 208 | 209 | } |
| 209 | 210 | } |
@@ -89,7 +89,7 @@ |
||
| 89 | 89 | /** |
| 90 | 90 | * @TODO 1.0.0 Remove support for 'base' in next major release; it has been replaced by 'baseurl' |
| 91 | 91 | * |
| 92 | - * @return mixed|null |
|
| 92 | + * @return string |
|
| 93 | 93 | */ |
| 94 | 94 | public function getBaseUrl() |
| 95 | 95 | { |
@@ -89,7 +89,7 @@ |
||
| 89 | 89 | * @param InputInterface $input |
| 90 | 90 | * @param string $param |
| 91 | 91 | */ |
| 92 | - private function setServiceParameter(InputInterface &$input, $param) |
|
| 92 | + private function setServiceParameter(InputInterface & $input, $param) |
|
| 93 | 93 | { |
| 94 | 94 | Service::setParameter($param, $input->getOption($param)); |
| 95 | 95 | } |
@@ -218,8 +218,12 @@ |
||
| 218 | 218 | $exclusions, FileExplorer::$vcsPatterns, array(Configuration::CACHE_FOLDER) |
| 219 | 219 | )) |
| 220 | 220 | ->setIterator($fileExplorer->getExplorer()) |
| 221 | - ->addListener(Create::NAME, function ($e) { $this->watchListenerFunction($e); }) |
|
| 222 | - ->addListener(Modify::NAME, function ($e) { $this->watchListenerFunction($e); }) |
|
| 221 | + ->addListener(Create::NAME, function ($e) |
|
| 222 | + { |
|
| 223 | +$this->watchListenerFunction($e); }) |
|
| 224 | + ->addListener(Modify::NAME, function ($e) |
|
| 225 | + { |
|
| 226 | +$this->watchListenerFunction($e); }) |
|
| 223 | 227 | ; |
| 224 | 228 | |
| 225 | 229 | $this->output->writeln('Watch started successfully'); |
@@ -34,6 +34,7 @@ |
||
| 34 | 34 | |
| 35 | 35 | /** |
| 36 | 36 | * {@inheritdoc} |
| 37 | + * @param string $filePath |
|
| 37 | 38 | */ |
| 38 | 39 | public function __construct($filePath) |
| 39 | 40 | { |
@@ -54,7 +54,7 @@ |
||
| 54 | 54 | private static function flatten(array $array) |
| 55 | 55 | { |
| 56 | 56 | $return = array(); |
| 57 | - array_walk_recursive($array, function($a) use (&$return) { $return[] = $a; }); |
|
| 57 | + array_walk_recursive($array, function ($a) use (&$return) { $return[] = $a; }); |
|
| 58 | 58 | return $return; |
| 59 | 59 | } |
| 60 | 60 | } |
| 61 | 61 | \ No newline at end of file |
@@ -54,7 +54,9 @@ |
||
| 54 | 54 | private static function flatten(array $array) |
| 55 | 55 | { |
| 56 | 56 | $return = array(); |
| 57 | - array_walk_recursive($array, function($a) use (&$return) { $return[] = $a; }); |
|
| 57 | + array_walk_recursive($array, function($a) use (&$return) |
|
| 58 | + { |
|
| 59 | +$return[] = $a; }); |
|
| 58 | 60 | return $return; |
| 59 | 61 | } |
| 60 | 62 | } |
| 61 | 63 | \ No newline at end of file |
@@ -293,7 +293,9 @@ |
||
| 293 | 293 | */ |
| 294 | 294 | foreach ($this->trackedItemsFlattened as &$item) |
| 295 | 295 | { |
| 296 | - if (!Service::getParameter(BuildableCommand::USE_DRAFTS) && $item->isDraft()) { continue; } |
|
| 296 | + if (!Service::getParameter(BuildableCommand::USE_DRAFTS) && $item->isDraft()) |
|
| 297 | + { |
|
| 298 | +continue; } |
|
| 297 | 299 | |
| 298 | 300 | if (empty($item->getNamespace())) |
| 299 | 301 | { |
@@ -140,7 +140,7 @@ discard block |
||
| 140 | 140 | } |
| 141 | 141 | |
| 142 | 142 | /** |
| 143 | - * @param SplFileInfo|string $filePath |
|
| 143 | + * @param string $filePath |
|
| 144 | 144 | * |
| 145 | 145 | * @return mixed|null |
| 146 | 146 | */ |
@@ -152,7 +152,7 @@ discard block |
||
| 152 | 152 | /** |
| 153 | 153 | * Update the contents of a specified file. |
| 154 | 154 | * |
| 155 | - * @param SplFileInfo|string $filePath The relative path of the file |
|
| 155 | + * @param string $filePath The relative path of the file |
|
| 156 | 156 | * |
| 157 | 157 | * @return PageView |
| 158 | 158 | */ |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | /** |
| 58 | 58 | * A jailed representation of CollectionManager::getCollections(). |
| 59 | 59 | * |
| 60 | - * @return JailedDocument[][] |
|
| 60 | + * @return JailedDocument[] |
|
| 61 | 61 | */ |
| 62 | 62 | public function getJailedCollections() |
| 63 | 63 | { |
@@ -109,6 +109,7 @@ discard block |
||
| 109 | 109 | |
| 110 | 110 | /** |
| 111 | 111 | * {@inheritdoc} |
| 112 | + * @param string $filePath |
|
| 112 | 113 | */ |
| 113 | 114 | public function createNewItem($filePath) |
| 114 | 115 | { |