Completed
Push — master ( 0ba1b3...937b8a )
by Vladimir
02:47
created
src/allejo/stakx/Manager/ThemeManager.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
 
25 25
         if (!$this->fs->exists($this->themeFolder))
26 26
         {
27
-            throw new FileNotFoundException("The '${themeName}' theme folder could not be found.'");
27
+            throw new FileNotFoundException("The '${themename}' theme folder could not be found.'");
28 28
         }
29 29
 
30 30
         if ($this->fs->exists($this->themeFile))
Please login to merge, or discard this patch.
src/allejo/stakx/System/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/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/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 1 patch
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.
src/allejo/stakx/Document/DynamicPageView.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -34,6 +34,7 @@
 block discarded – undo
34 34
 
35 35
     /**
36 36
      * {@inheritdoc}
37
+     * @param string $filePath
37 38
      */
38 39
     public function __construct($filePath)
39 40
     {
Please login to merge, or discard this patch.
src/allejo/stakx/Twig/SelectFilter.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 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) { $return[] = $a; });
58 58
         return $return;
59 59
     }
60 60
 }
61 61
\ No newline at end of file
Please login to merge, or discard this 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/Manager/TrackingManager.php 2 patches
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
             if (empty($item->getNamespace()))
299 301
             {
Please login to merge, or discard this patch.
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
     }
141 141
 
142 142
     /**
143
-     * @param SplFileInfo|string $filePath
143
+     * @param string $filePath
144 144
      *
145 145
      * @return mixed|null
146 146
      */
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
     /**
153 153
      * Update the contents of a specified file.
154 154
      *
155
-     * @param SplFileInfo|string $filePath The relative path of the file
155
+     * @param string $filePath The relative path of the file
156 156
      *
157 157
      * @return PageView
158 158
      */
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
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
     /**
58 58
      * A jailed representation of CollectionManager::getCollections().
59 59
      *
60
-     * @return JailedDocument[][]
60
+     * @return JailedDocument[]
61 61
      */
62 62
     public function getJailedCollections()
63 63
     {
@@ -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.