Completed
Push — master ( 1ed358...57ff49 )
by Vladimir
02:18
created
src/allejo/stakx/Filesystem/FileExplorer.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -203,7 +203,8 @@
 block discarded – undo
203 203
             }
204 204
 
205 205
             if (strpos($haystack, $query, $offset) !== false)
206
-            { // stop on first true result
206
+            {
207
+// stop on first true result
207 208
                 return true;
208 209
             }
209 210
         }
Please login to merge, or discard this patch.
src/allejo/stakx/DataTransformer/DataTransformerManager.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -26,6 +26,9 @@
 block discarded – undo
26 26
         }
27 27
     }
28 28
 
29
+    /**
30
+     * @param string $extension
31
+     */
29 32
     public function getTransformer($extension)
30 33
     {
31 34
         if (isset($this->transformers[$extension]))
Please login to merge, or discard this patch.
src/allejo/stakx/Manager/DataManager.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,8 @@
 block discarded – undo
63 63
      */
64 64
     public function getJailedDataItems()
65 65
     {
66
-        return self::getJailedTrackedItems($this->trackedItemsFlattened, function (DataItem $dataItem) {
66
+        return self::getJailedTrackedItems($this->trackedItemsFlattened, function (DataItem $dataItem)
67
+        {
67 68
             return $dataItem->getBasename();
68 69
         });
69 70
     }
Please login to merge, or discard this patch.
src/allejo/stakx/Manager/ThemeManager.php 2 patches
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
 
40 40
         if (!fs::exists($this->themeFolder))
41 41
         {
42
-            throw new FileNotFoundException("The '${themeName}' theme folder could not be found.'");
42
+            throw new FileNotFoundException("The '${themename}' theme folder could not be found.'");
43 43
         }
44 44
 
45 45
         if (fs::exists($this->themeFile))
Please login to merge, or discard this patch.
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -24,6 +24,9 @@
 block discarded – undo
24 24
     private $themeData;
25 25
     private $themeName;
26 26
 
27
+    /**
28
+     * @param string $themeName
29
+     */
27 30
     public function __construct($themeName, EventDispatcherInterface $eventDispatcher, LoggerInterface $logger)
28 31
     {
29 32
         parent::__construct($eventDispatcher, $logger);
Please login to merge, or discard this patch.
src/allejo/stakx/Templating/Twig/Extension/TableOfContentsFilter.php 1 patch
Braces   +8 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,14 +55,20 @@
 block discarded – undo
55 55
 
56 56
             $headingID = $heading->attributes->getNamedItem('id');
57 57
 
58
-            if ($curr > $last) // If the current level is greater than the last level indent one level
58
+            if ($curr > $last)
59
+            {
60
+                // If the current level is greater than the last level indent one level
59 61
             {
60 62
                 $toc .= '<ul>';
61 63
             }
62
-            elseif ($curr < $last) // If the current level is less than the last level go up appropriate amount.
64
+            }
65
+            elseif ($curr < $last)
66
+            {
67
+                // If the current level is less than the last level go up appropriate amount.
63 68
             {
64 69
                 $toc .= str_repeat('</li></ul>', $last - $curr) . '</li>';
65 70
             }
71
+            }
66 72
             else // If the current level is equal to the last.
67 73
             {
68 74
                 $toc .= '</li>';
Please login to merge, or discard this patch.
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.