@@ -174,7 +174,7 @@ |
||
174 | 174 | /** |
175 | 175 | * Get the original file path. |
176 | 176 | * |
177 | - * @return string |
|
177 | + * @return SplFileInfo |
|
178 | 178 | */ |
179 | 179 | final public function getFilePath() |
180 | 180 | { |
@@ -84,7 +84,7 @@ |
||
84 | 84 | |
85 | 85 | if (!$this->fs->exists($filePath)) |
86 | 86 | { |
87 | - throw new FileNotFoundException("The following file could not be found: ${filePath}"); |
|
87 | + throw new FileNotFoundException("The following file could not be found: ${filepath}"); |
|
88 | 88 | } |
89 | 89 | |
90 | 90 | $this->extension = strtolower($this->fs->getExtension($filePath)); |
@@ -197,7 +197,7 @@ |
||
197 | 197 | * |
198 | 198 | * @param string $frontMatterKey The current hierarchy of the Front Matter keys being used |
199 | 199 | * @param string $expandableValue The Front Matter value that will be expanded |
200 | - * @param array $arrayVariableNames The Front Matter variable names that reference arrays |
|
200 | + * @param string[] $arrayVariableNames The Front Matter variable names that reference arrays |
|
201 | 201 | * |
202 | 202 | * @throws YamlUnsupportedVariableException If a multidimensional array is given for value expansion |
203 | 203 | * |
@@ -13,6 +13,7 @@ discard block |
||
13 | 13 | * Evaluate the FrontMatter in this object by merging a custom array of data. |
14 | 14 | * |
15 | 15 | * @param array|null $variables An array of YAML variables to use in evaluating the `$permalink` value |
16 | + * @return void |
|
16 | 17 | */ |
17 | 18 | public function evaluateFrontMatter($variables = null); |
18 | 19 | |
@@ -36,6 +37,7 @@ discard block |
||
36 | 37 | * Append a custom FrontMatter value. |
37 | 38 | * |
38 | 39 | * @param array $frontMatter |
40 | + * @return void |
|
39 | 41 | */ |
40 | 42 | public function appendFrontMatter(array $frontMatter); |
41 | 43 | |
@@ -45,6 +47,7 @@ discard block |
||
45 | 47 | * This will not delete a FrontMatter value parsed from the file |
46 | 48 | * |
47 | 49 | * @param string $key |
50 | + * @return void |
|
48 | 51 | */ |
49 | 52 | public function deleteFrontMatter($key); |
50 | 53 | |
@@ -55,6 +58,7 @@ discard block |
||
55 | 58 | * available to Twig templates |
56 | 59 | * |
57 | 60 | * @param array $frontMatter |
61 | + * @return void |
|
58 | 62 | */ |
59 | 63 | public function setFrontMatter(array $frontMatter); |
60 | 64 | } |
@@ -349,6 +349,9 @@ discard block |
||
349 | 349 | $this->noClean = $noClean; |
350 | 350 | } |
351 | 351 | |
352 | + /** |
|
353 | + * @param string $filePath |
|
354 | + */ |
|
352 | 355 | private function creationWatcher($filePath) |
353 | 356 | { |
354 | 357 | $this->output->writeln(sprintf('File creation detected: %s', $filePath)); |
@@ -390,6 +393,9 @@ discard block |
||
390 | 393 | } |
391 | 394 | } |
392 | 395 | |
396 | + /** |
|
397 | + * @param string $filePath |
|
398 | + */ |
|
393 | 399 | private function modificationWatcher($filePath) |
394 | 400 | { |
395 | 401 | $this->output->writeln(sprintf('File change detected: %s', $filePath)); |
@@ -185,7 +185,7 @@ |
||
185 | 185 | $this->bodyContentEvaluated = true; |
186 | 186 | } |
187 | 187 | |
188 | - return (string)$this->bodyContent; |
|
188 | + return (string) $this->bodyContent; |
|
189 | 189 | } |
190 | 190 | |
191 | 191 | /** |