@@ -194,7 +194,7 @@ |
||
194 | 194 | * |
195 | 195 | * @param string $frontMatterKey The current hierarchy of the Front Matter keys being used |
196 | 196 | * @param string $expandableValue The Front Matter value that will be expanded |
197 | - * @param array $arrayVariableNames The Front Matter variable names that reference arrays |
|
197 | + * @param string[] $arrayVariableNames The Front Matter variable names that reference arrays |
|
198 | 198 | * |
199 | 199 | * @return array |
200 | 200 | * |
@@ -318,7 +318,7 @@ |
||
318 | 318 | /** |
319 | 319 | * Get the original file path |
320 | 320 | * |
321 | - * @return string |
|
321 | + * @return SplFileInfo |
|
322 | 322 | */ |
323 | 323 | final public function getFilePath () |
324 | 324 | { |
@@ -322,6 +322,9 @@ discard block |
||
322 | 322 | $this->noClean = $noClean; |
323 | 323 | } |
324 | 324 | |
325 | + /** |
|
326 | + * @param string $filePath |
|
327 | + */ |
|
325 | 328 | private function creationWatcher ($filePath) |
326 | 329 | { |
327 | 330 | $this->output->writeln(sprintf("File creation detected: %s", $filePath)); |
@@ -363,6 +366,9 @@ discard block |
||
363 | 366 | } |
364 | 367 | } |
365 | 368 | |
369 | + /** |
|
370 | + * @param string $filePath |
|
371 | + */ |
|
366 | 372 | private function modificationWatcher ($filePath) |
367 | 373 | { |
368 | 374 | $this->output->writeln(sprintf("File change detected: %s", $filePath)); |
@@ -63,8 +63,8 @@ |
||
63 | 63 | * FileExplorer constructor. |
64 | 64 | * |
65 | 65 | * @param \RecursiveIterator $iterator |
66 | - * @param array $excludes |
|
67 | - * @param array $includes |
|
66 | + * @param string[] $excludes |
|
67 | + * @param string[] $includes |
|
68 | 68 | * @param int|null $flags |
69 | 69 | */ |
70 | 70 | public function __construct(\RecursiveIterator $iterator, array $excludes = array(), array $includes = array(), $flags = null) |
@@ -15,7 +15,7 @@ |
||
15 | 15 | /** |
16 | 16 | * Returns a list of filters. |
17 | 17 | * |
18 | - * @return array |
|
18 | + * @return Twig_SimpleFilter[] |
|
19 | 19 | */ |
20 | 20 | public function getFilters () |
21 | 21 | { |
@@ -171,9 +171,9 @@ |
||
171 | 171 | public function removeExtension ($filename) |
172 | 172 | { |
173 | 173 | return $this->appendPath( |
174 | - $this->getFolderPath($filename), |
|
175 | - $this->getBaseName($filename) |
|
176 | - ); |
|
174 | + $this->getFolderPath($filename), |
|
175 | + $this->getBaseName($filename) |
|
176 | + ); |
|
177 | 177 | } |
178 | 178 | |
179 | 179 | /** |
@@ -163,6 +163,9 @@ |
||
163 | 163 | return $this->configuration['twig']['autoescape']; |
164 | 164 | } |
165 | 165 | |
166 | + /** |
|
167 | + * @return string|false |
|
168 | + */ |
|
166 | 169 | public function getRedirectTemplate () |
167 | 170 | { |
168 | 171 | return $this->configuration['templates']['redirect']; |