Completed
Push — master ( 1b194e...a65afb )
by Vladimir
12s
created
src/allejo/stakx/MarkupEngine/MarkupEngineManager.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -53,6 +53,9 @@
 block discarded – undo
53 53
         throw new UnsupportedMarkupException($tag, 'There is no support to handle this markup format.');
54 54
     }
55 55
 
56
+    /**
57
+     * @param string $extension
58
+     */
56 59
     public function getEngineByExtension($extension)
57 60
     {
58 61
         if (isset($this->enginesByExtension[$extension]))
Please login to merge, or discard this patch.
src/allejo/stakx/Templating/Twig/TwigExtension.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -38,6 +38,9 @@
 block discarded – undo
38 38
         return $this->parseMarkup($arguments[0], $tag);
39 39
     }
40 40
 
41
+    /**
42
+     * @param string $tag
43
+     */
41 44
     public function parseMarkup($content, $tag)
42 45
     {
43 46
         return $this->markupManager->getEngineByTag($tag)->parse($content);
Please login to merge, or discard this patch.
src/allejo/stakx/Document/CollectableItem.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -12,6 +12,9 @@  discard block
 block discarded – undo
12 12
  */
13 13
 interface CollectableItem
14 14
 {
15
+    /**
16
+     * @return string
17
+     */
15 18
     public function getRelativeFilePath();
16 19
 
17 20
     /**
@@ -59,6 +62,7 @@  discard block
 block discarded – undo
59 62
      *
60 63
      * @param array $variables        An array of YAML variables to use in evaluating the `$permalink` value
61 64
      * @param array $complexVariables complex variables that will be available to the FrontMatter scope of this document
65
+     * @return void
62 66
      */
63 67
     public function evaluateFrontMatter(array $variables = [], array $complexVariables = []);
64 68
 }
Please login to merge, or discard this patch.
src/allejo/stakx/Templating/Twig/Extension/BaseUrlFunction.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -33,6 +33,9 @@
 block discarded – undo
33 33
         ]);
34 34
     }
35 35
 
36
+    /**
37
+     * @param boolean $absolute
38
+     */
36 39
     private function getUrl($absolute)
37 40
     {
38 41
         $url = '/';
Please login to merge, or discard this patch.
src/allejo/stakx/Utilities/HtmlUtils.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -9,6 +9,9 @@  discard block
 block discarded – undo
9 9
 
10 10
 abstract class HtmlUtils
11 11
 {
12
+    /**
13
+     * @param string $xpathQuery
14
+     */
12 15
     public static function htmlXPath(\DOMDocument &$DOMDocument, $html, $xpathQuery)
13 16
     {
14 17
         $html = self::normalizeHTML($html);
@@ -38,6 +41,9 @@  discard block
 block discarded – undo
38 41
         return $xpath->query($xpathQuery);
39 42
     }
40 43
 
44
+    /**
45
+     * @return string
46
+     */
41 47
     private static function normalizeHTML($html)
42 48
     {
43 49
         if (strpos($html, '<body>' === false) || strpos($html, '</body>') === false)
Please login to merge, or discard this patch.
src/allejo/stakx/Website.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -271,7 +271,7 @@
 block discarded – undo
271 271
 
272 272
     /**
273 273
      * @param string $filePath
274
-     * @param mixed  $newlyCreate
274
+     * @param boolean  $newlyCreate
275 275
      */
276 276
     private function creationWatcher($filePath, $newlyCreate = true)
277 277
     {
Please login to merge, or discard this patch.
src/allejo/stakx/Templating/Twig/Extension/OrderFilter.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,8 @@
 block discarded – undo
16 16
             return $array;
17 17
         }
18 18
 
19
-        usort($array, function ($a, $b) use ($key, $order) {
19
+        usort($array, function ($a, $b) use ($key, $order)
20
+        {
20 21
             if ($a[$key] == $b[$key])
21 22
             {
22 23
                 return 0;
Please login to merge, or discard this patch.
src/allejo/stakx/Templating/Twig/Extension/SelectFilter.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,8 @@
 block discarded – undo
64 64
     private static function flatten(array $array)
65 65
     {
66 66
         $return = [];
67
-        array_walk_recursive($array, function ($a) use (&$return) {
67
+        array_walk_recursive($array, function ($a) use (&$return)
68
+        {
68 69
             $return[] = $a;
69 70
         });
70 71
 
Please login to merge, or discard this patch.