Completed
Push — master ( e24a9d...4513c4 )
by Vladimir
02:04
created
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/Twig/SelectFilter.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,9 @@
 block discarded – undo
54 54
     private static function flatten(array $array)
55 55
     {
56 56
         $return = array();
57
-        array_walk_recursive($array, function($a) use (&$return) { $return[] = $a; });
57
+        array_walk_recursive($array, function($a) use (&$return)
58
+        {
59
+$return[] = $a; });
58 60
         return $return;
59 61
     }
60 62
 }
61 63
\ No newline at end of file
Please login to merge, or discard this patch.
src/allejo/stakx/Website.php 1 patch
Braces   +9 added lines, -3 removed lines patch added patch discarded remove patch
@@ -237,9 +237,15 @@
 block discarded – undo
237 237
                 $exclusions, FileExplorer::$vcsPatterns, array(Configuration::CACHE_FOLDER)
238 238
             ))
239 239
             ->setIterator($fileExplorer->getExplorer())
240
-            ->addListener(Create::NAME, function ($e) { $this->watchListenerFunction($e); })
241
-            ->addListener(Modify::NAME, function ($e) { $this->watchListenerFunction($e); })
242
-            ->addListener(Move::NAME,   function ($e) { $this->watchListenerFunction($e); })
240
+            ->addListener(Create::NAME, function ($e)
241
+            {
242
+$this->watchListenerFunction($e); })
243
+            ->addListener(Modify::NAME, function ($e)
244
+            {
245
+$this->watchListenerFunction($e); })
246
+            ->addListener(Move::NAME,   function ($e)
247
+            {
248
+$this->watchListenerFunction($e); })
243 249
         ;
244 250
 
245 251
         $this->output->writeln('Watch started successfully');
Please login to merge, or discard this patch.
src/allejo/stakx/Document/TwigDocument.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -11,6 +11,7 @@
 block discarded – undo
11 11
 {
12 12
     /**
13 13
      * @param string $filePath
14
+     * @return void
14 15
      */
15 16
     public function __construct($filePath);
16 17
 
Please login to merge, or discard this patch.
src/allejo/stakx/Manager/AssetManager.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -68,6 +68,7 @@  discard block
 block discarded – undo
68 68
 
69 69
     /**
70 70
      * {@inheritdoc}
71
+     * @param string $filePath
71 72
      */
72 73
     public function refreshItem($filePath)
73 74
     {
@@ -86,6 +87,7 @@  discard block
 block discarded – undo
86 87
 
87 88
     /**
88 89
      * {@inheritdoc}
90
+     * @param string $filePath
89 91
      */
90 92
     public function createNewItem($filePath)
91 93
     {
Please login to merge, or discard this patch.
src/allejo/stakx/Manager/CollectionManager.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
     /**
29 29
      * Get all of the ContentItems grouped by Collection name.
30 30
      *
31
-     * @return ContentItem[][]
31
+     * @return \allejo\stakx\Document\TrackableDocument[]
32 32
      */
33 33
     public function &getCollections()
34 34
     {
@@ -109,6 +109,7 @@  discard block
 block discarded – undo
109 109
 
110 110
     /**
111 111
      * {@inheritdoc}
112
+     * @param string $filePath
112 113
      */
113 114
     public function createNewItem($filePath)
114 115
     {
Please login to merge, or discard this patch.
src/allejo/stakx/Twig/BaseUrlFunction.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -32,6 +32,9 @@
 block discarded – undo
32 32
         ));
33 33
     }
34 34
 
35
+    /**
36
+     * @param boolean $absolute
37
+     */
35 38
     private function getUrl($absolute)
36 39
     {
37 40
         $url = '/';
Please login to merge, or discard this patch.
src/allejo/stakx/Manager/TrackingManager.php 2 patches
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -300,7 +300,9 @@
 block discarded – undo
300 300
          */
301 301
         foreach ($elements as &$item)
302 302
         {
303
-            if (!Service::getParameter(BuildableCommand::USE_DRAFTS) && $item->isDraft()) { continue; }
303
+            if (!Service::getParameter(BuildableCommand::USE_DRAFTS) && $item->isDraft())
304
+            {
305
+continue; }
304 306
 
305 307
             if (empty($item->getNamespace()))
306 308
             {
Please login to merge, or discard this patch.
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -88,9 +88,9 @@  discard block
 block discarded – undo
88 88
     }
89 89
 
90 90
     /**
91
-     * @param File|string $filePath
91
+     * @param string $filePath
92 92
      *
93
-     * @return mixed|null
93
+     * @return PageView
94 94
      */
95 95
     public function createNewItem($filePath)
96 96
     {
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
     /**
136 136
      * Update the contents of a specified file.
137 137
      *
138
-     * @param File|string $filePath The relative path of the file
138
+     * @param string $filePath The relative path of the file
139 139
      *
140 140
      * @return PageView
141 141
      */
@@ -286,7 +286,7 @@  discard block
 block discarded – undo
286 286
     /**
287 287
      * Return an array of JailedDocuments created from the tracked items
288 288
      *
289
-     * @param array $elements
289
+     * @param TrackableDocument[] $elements
290 290
      *
291 291
      * @return JailedDocument[]|JailedDocument[][]
292 292
      */
Please login to merge, or discard this patch.
src/allejo/stakx/Twig/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.