Completed
Push — master ( 6f7385...80d5dd )
by Vladimir
01:57
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/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/Website.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -239,7 +239,7 @@
 block discarded – undo
239 239
             ->setIterator($fileExplorer->getExplorer())
240 240
             ->addListener(Create::NAME, function ($e) { $this->watchListenerFunction($e); })
241 241
             ->addListener(Modify::NAME, function ($e) { $this->watchListenerFunction($e); })
242
-            ->addListener(Move::NAME,   function ($e) { $this->watchListenerFunction($e); })
242
+            ->addListener(Move::NAME, function ($e) { $this->watchListenerFunction($e); })
243 243
         ;
244 244
 
245 245
         $this->output->writeln('Watch started successfully');
Please login to merge, or discard this 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/Compiler.php 2 patches
Doc Comments   +7 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
     }
89 89
 
90 90
     /**
91
-     * @param PageView[][] $pageViews
91
+     * @param Document\TrackableDocument[] $pageViews
92 92
      * @param PageView[]   $pageViewsFlattened
93 93
      */
94 94
     public function setPageViews(array &$pageViews, array &$pageViewsFlattened)
@@ -109,6 +109,9 @@  discard block
 block discarded – undo
109 109
     // Twig parent templates
110 110
     ///
111 111
 
112
+    /**
113
+     * @param string $filePath
114
+     */
112 115
     public function isImportDependency($filePath)
113 116
     {
114 117
         return isset($this->importDependencies[$filePath]);
@@ -161,6 +164,9 @@  discard block
 block discarded – undo
161 164
         }
162 165
     }
163 166
 
167
+    /**
168
+     * @param string $filePath
169
+     */
164 170
     public function compileImportDependencies($filePath)
165 171
     {
166 172
         foreach ($this->importDependencies[$filePath] as &$dependent)
Please login to merge, or discard this patch.
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
      *
196 196
      * @since 0.1.1
197 197
      */
198
-    public function compilePageView(PageView &$pageView)
198
+    public function compilePageView(PageView & $pageView)
199 199
     {
200 200
         $this->twig->addGlobal('__currentTemplate', $pageView->getFilePath());
201 201
         $this->output->debug('Compiling {type} PageView: {pageview}', array(
@@ -242,7 +242,7 @@  discard block
 block discarded – undo
242 242
      *
243 243
      * @since 0.1.1
244 244
      */
245
-    private function compileStaticPageView(PageView &$pageView)
245
+    private function compileStaticPageView(PageView & $pageView)
246 246
     {
247 247
         $targetFile = $pageView->getTargetFile();
248 248
         $output = $this->renderStaticPageView($pageView);
@@ -258,7 +258,7 @@  discard block
 block discarded – undo
258 258
      *
259 259
      * @since 0.1.1
260 260
      */
261
-    private function compileDynamicPageViews(DynamicPageView &$pageView)
261
+    private function compileDynamicPageViews(DynamicPageView & $pageView)
262 262
     {
263 263
         $contentItems = $pageView->getRepeatableItems();
264 264
         $template = $this->createTwigTemplate($pageView);
@@ -291,7 +291,7 @@  discard block
 block discarded – undo
291 291
      *
292 292
      * @since 0.1.1
293 293
      */
294
-    private function compileRepeaterPageViews(RepeaterPageView &$pageView)
294
+    private function compileRepeaterPageViews(RepeaterPageView & $pageView)
295 295
     {
296 296
         $pageView->rewindPermalink();
297 297
 
@@ -316,7 +316,7 @@  discard block
 block discarded – undo
316 316
      *
317 317
      * @param ContentItem $contentItem
318 318
      */
319
-    public function compileContentItem(ContentItem &$contentItem)
319
+    public function compileContentItem(ContentItem & $contentItem)
320 320
     {
321 321
         $pageView = &$contentItem->getPageView();
322 322
         $template = $this->createTwigTemplate($pageView);
@@ -342,7 +342,7 @@  discard block
 block discarded – undo
342 342
      *
343 343
      * @since 0.1.1
344 344
      */
345
-    private function compileStandardRedirects(PermalinkDocument &$pageView)
345
+    private function compileStandardRedirects(PermalinkDocument & $pageView)
346 346
     {
347 347
         $redirects = $pageView->getRedirects();
348 348
 
@@ -365,7 +365,7 @@  discard block
 block discarded – undo
365 365
      *
366 366
      * @since 0.1.1
367 367
      */
368
-    private function compileExpandedRedirects(RepeaterPageView &$pageView)
368
+    private function compileExpandedRedirects(RepeaterPageView & $pageView)
369 369
     {
370 370
         $permalinks = $pageView->getRepeaterPermalinks();
371 371
 
@@ -403,7 +403,7 @@  discard block
 block discarded – undo
403 403
      *
404 404
      * @return string
405 405
      */
406
-    private function renderRepeaterPageView(Twig_Template &$template, RepeaterPageView &$pageView, ExpandedValue &$expandedValue)
406
+    private function renderRepeaterPageView(Twig_Template & $template, RepeaterPageView & $pageView, ExpandedValue & $expandedValue)
407 407
     {
408 408
         $pageView->setFrontMatter(array(
409 409
             'permalink' => $expandedValue->getEvaluated(),
@@ -426,7 +426,7 @@  discard block
 block discarded – undo
426 426
      * @since  0.1.1
427 427
      *
428 428
      */
429
-    private function renderDynamicPageView(Twig_Template &$template, TwigDocument &$twigItem)
429
+    private function renderDynamicPageView(Twig_Template & $template, TwigDocument & $twigItem)
430 430
     {
431 431
         return $template
432 432
             ->render(array(
@@ -447,7 +447,7 @@  discard block
 block discarded – undo
447 447
      *
448 448
      * @return string
449 449
      */
450
-    private function renderStaticPageView(PageView &$pageView)
450
+    private function renderStaticPageView(PageView & $pageView)
451 451
     {
452 452
         return $this
453 453
             ->createTwigTemplate($pageView)
@@ -469,7 +469,7 @@  discard block
 block discarded – undo
469 469
      *
470 470
      * @return Twig_Template
471 471
      */
472
-    private function createTwigTemplate(PageView &$pageView)
472
+    private function createTwigTemplate(PageView & $pageView)
473 473
     {
474 474
         try
475 475
         {
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.