Completed
Pull Request — master (#42)
by Vladimir
03:07
created
src/allejo/stakx/FrontMatter/Parser.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -197,7 +197,7 @@
 block discarded – undo
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
      *
Please login to merge, or discard this patch.
src/allejo/stakx/FrontMatter/WritableDocumentInterface.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -13,6 +13,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/allejo/stakx/Website.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -349,6 +349,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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));
Please login to merge, or discard this patch.
src/allejo/stakx/Document/ContentItem.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -185,7 +185,7 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
src/allejo/stakx/Configuration.php 1 patch
Doc Comments   +13 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,6 +66,9 @@  discard block
 block discarded – undo
66 66
         $this->fs = new Filesystem();
67 67
     }
68 68
 
69
+    /**
70
+     * @param string $filePath
71
+     */
69 72
     private static function readFile($filePath)
70 73
     {
71 74
         $fs = new Filesystem();
@@ -75,6 +78,9 @@  discard block
 block discarded – undo
75 78
         return (null === $parsed) ? array() : $parsed;
76 79
     }
77 80
 
81
+    /**
82
+     * @param string $configFile
83
+     */
78 84
     public function parse($configFile = null)
79 85
     {
80 86
         $this->parentConfig = $configFile;
@@ -152,7 +158,7 @@  discard block
 block discarded – undo
152 158
     /**
153 159
      * @TODO 1.0.0 Remove support for 'base' in next major release; it has been replaced by 'baseurl'
154 160
      *
155
-     * @return mixed|null
161
+     * @return string
156 162
      */
157 163
     public function getBaseUrl()
158 164
     {
@@ -223,6 +229,9 @@  discard block
 block discarded – undo
223 229
         return $this->configuration['twig']['autoescape'];
224 230
     }
225 231
 
232
+    /**
233
+     * @return string|false
234
+     */
226 235
     public function getRedirectTemplate()
227 236
     {
228 237
         return $this->configuration['templates']['redirect'];
@@ -384,6 +393,9 @@  discard block
 block discarded – undo
384 393
         return $noErrors;
385 394
     }
386 395
 
396
+    /**
397
+     * @param string $filePath
398
+     */
387 399
     private function isRecursiveImport($filePath)
388 400
     {
389 401
         if (in_array($filePath, self::$configImports))
Please login to merge, or discard this patch.