Completed
Push — master ( 11bf6d...68dee3 )
by Vladimir
02:39
created
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/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   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/allejo/stakx/Exception/RecursiveConfigurationException.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -13,6 +13,9 @@
 block discarded – undo
13 13
 {
14 14
     private $import;
15 15
 
16
+    /**
17
+     * @param string $import
18
+     */
16 19
     public function __construct($import, $message = "", $code = 0, Exception $previous = null)
17 20
     {
18 21
         $this->import = $import;
Please login to merge, or discard this patch.
src/allejo/stakx/System/Folder.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -21,6 +21,9 @@
 block discarded – undo
21 21
     protected $absolutePath;
22 22
     protected $targetDirectories;
23 23
 
24
+    /**
25
+     * @param string $folderPath
26
+     */
24 27
     public function __construct($folderPath)
25 28
     {
26 29
         $this->fs = new Filesystem();
Please login to merge, or discard this patch.
src/allejo/stakx/Compiler.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -86,6 +86,9 @@
 block discarded – undo
86 86
         $this->pageViewsFlattened = &$pageViewsFlattened;
87 87
     }
88 88
 
89
+    /**
90
+     * @param string $themeName
91
+     */
89 92
     public function setThemeName($themeName)
90 93
     {
91 94
         $this->theme = $themeName;
Please login to merge, or discard this patch.
src/allejo/stakx/Manager/TrackingManager.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -149,7 +149,7 @@
 block discarded – undo
149 149
      *
150 150
      * @param SplFileInfo|string $filePath The relative path of the file
151 151
      *
152
-     * @return mixed|null
152
+     * @return \allejo\stakx\Document\PageView
153 153
      */
154 154
     public function refreshItem($filePath)
155 155
     {
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -293,7 +293,9 @@
 block discarded – undo
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
             $jailItems[$item->getNamespace()][$item->getName()] = $item->createJail();
299 301
         }
Please login to merge, or discard this patch.
src/allejo/stakx/Command/BuildableCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/allejo/stakx/Website.php 2 patches
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -218,8 +218,12 @@
 block discarded – undo
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');
Please login to merge, or discard this patch.
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -329,6 +329,9 @@  discard block
 block discarded – undo
329 329
         $this->confLess = $status;
330 330
     }
331 331
 
332
+    /**
333
+     * @param string $filePath
334
+     */
332 335
     private function creationWatcher($filePath)
333 336
     {
334 337
         $this->output->writeln(sprintf('File creation detected: %s', $filePath));
@@ -370,6 +373,9 @@  discard block
 block discarded – undo
370 373
         }
371 374
     }
372 375
 
376
+    /**
377
+     * @param string $filePath
378
+     */
373 379
     private function modificationWatcher($filePath)
374 380
     {
375 381
         $this->output->writeln(sprintf('File change detected: %s', $filePath));
Please login to merge, or discard this patch.