Completed
Push — master ( b97be3...06332b )
by Vladimir
02:22
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/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/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/Twig/BaseUrlFunction.php 2 patches
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.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -95,6 +95,6 @@
 block discarded – undo
95 95
             }
96 96
         }
97 97
 
98
-        return preg_replace('#(?<!:)/+#','/', join('/', $paths));
98
+        return preg_replace('#(?<!:)/+#', '/', join('/', $paths));
99 99
     }
100 100
 }
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.
src/allejo/stakx/Command/ContainerAwareCommand.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -14,6 +14,9 @@
 block discarded – undo
14 14
 {
15 15
     private $container;
16 16
 
17
+    /**
18
+     * @return \Symfony\Component\DependencyInjection\ContainerInterface
19
+     */
17 20
     public function getContainer()
18 21
     {
19 22
         if ($this->container === null)
Please login to merge, or discard this patch.
src/allejo/stakx/Compiler.php 3 patches
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -110,6 +110,9 @@  discard block
 block discarded – undo
110 110
     // Twig parent templates
111 111
     ///
112 112
 
113
+    /**
114
+     * @param string $filePath
115
+     */
113 116
     public function isImportDependency($filePath)
114 117
     {
115 118
         return isset($this->importDependencies[$filePath]);
@@ -162,6 +165,9 @@  discard block
 block discarded – undo
162 165
         }
163 166
     }
164 167
 
168
+    /**
169
+     * @param string $filePath
170
+     */
165 171
     public function compileImportDependencies($filePath)
166 172
     {
167 173
         foreach ($this->importDependencies[$filePath] as &$dependent)
Please login to merge, or discard this patch.
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -333,7 +333,6 @@
 block discarded – undo
333 333
      * Write the compiled output for a repeater PageView.
334 334
      *
335 335
      * @param RepeaterPageView $pageView
336
-
337 336
      * @since 0.1.1
338 337
      *
339 338
      * @throws TemplateErrorInterface
Please login to merge, or discard this patch.
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
      *
239 239
      * @since 0.1.1
240 240
      */
241
-    public function compilePageView(BasePageView &$pageView)
241
+    public function compilePageView(BasePageView & $pageView)
242 242
     {
243 243
         $this->templateBridge->setGlobalVariable('__currentTemplate', $pageView->getAbsoluteFilePath());
244 244
         $this->output->debug('Compiling {type} PageView: {pageview}', array(
@@ -285,7 +285,7 @@  discard block
 block discarded – undo
285 285
      *
286 286
      * @throws TemplateErrorInterface
287 287
      */
288
-    private function compileStaticPageView(StaticPageView &$pageView)
288
+    private function compileStaticPageView(StaticPageView & $pageView)
289 289
     {
290 290
         $targetFile = $pageView->getTargetFile();
291 291
         $output = $this->renderStaticPageView($pageView);
@@ -303,7 +303,7 @@  discard block
 block discarded – undo
303 303
      *
304 304
      * @throws TemplateErrorInterface
305 305
      */
306
-    private function compileDynamicPageViews(DynamicPageView &$pageView)
306
+    private function compileDynamicPageViews(DynamicPageView & $pageView)
307 307
     {
308 308
         $contentItems = $pageView->getCollectableItems();
309 309
         $template = $this->createTwigTemplate($pageView);
@@ -338,7 +338,7 @@  discard block
 block discarded – undo
338 338
      *
339 339
      * @throws TemplateErrorInterface
340 340
      */
341
-    private function compileRepeaterPageViews(RepeaterPageView &$pageView)
341
+    private function compileRepeaterPageViews(RepeaterPageView & $pageView)
342 342
     {
343 343
         $pageView->rewindPermalink();
344 344
 
@@ -363,7 +363,7 @@  discard block
 block discarded – undo
363 363
      *
364 364
      * @param ContentItem $contentItem
365 365
      */
366
-    public function compileContentItem(ContentItem &$contentItem)
366
+    public function compileContentItem(ContentItem & $contentItem)
367 367
     {
368 368
         $pageView = &$contentItem->getPageView();
369 369
         $template = $this->createTwigTemplate($pageView);
@@ -389,7 +389,7 @@  discard block
 block discarded – undo
389 389
      *
390 390
      * @since 0.1.1
391 391
      */
392
-    private function compileStandardRedirects(PermalinkDocument &$pageView)
392
+    private function compileStandardRedirects(PermalinkDocument & $pageView)
393 393
     {
394 394
         $redirects = $pageView->getRedirects();
395 395
 
@@ -412,7 +412,7 @@  discard block
 block discarded – undo
412 412
      *
413 413
      * @since 0.1.1
414 414
      */
415
-    private function compileExpandedRedirects(RepeaterPageView &$pageView)
415
+    private function compileExpandedRedirects(RepeaterPageView & $pageView)
416 416
     {
417 417
         $permalinks = $pageView->getRepeaterPermalinks();
418 418
 
@@ -450,7 +450,7 @@  discard block
 block discarded – undo
450 450
      *
451 451
      * @return string
452 452
      */
453
-    private function renderRepeaterPageView(TemplateInterface &$template, RepeaterPageView &$pageView, ExpandedValue &$expandedValue)
453
+    private function renderRepeaterPageView(TemplateInterface & $template, RepeaterPageView & $pageView, ExpandedValue & $expandedValue)
454 454
     {
455 455
         $pageView->evaluateFrontMatter([
456 456
             'permalink' => $expandedValue->getEvaluated(),
@@ -470,7 +470,7 @@  discard block
 block discarded – undo
470 470
      *
471 471
      * @return string
472 472
      */
473
-    private function renderDynamicPageView(TemplateInterface &$template, TemplateReadyDocument &$twigItem)
473
+    private function renderDynamicPageView(TemplateInterface & $template, TemplateReadyDocument & $twigItem)
474 474
     {
475 475
         return $template
476 476
             ->render(array(
@@ -487,7 +487,7 @@  discard block
 block discarded – undo
487 487
      *
488 488
      * @return string
489 489
      */
490
-    private function renderStaticPageView(StaticPageView &$pageView)
490
+    private function renderStaticPageView(StaticPageView & $pageView)
491 491
     {
492 492
         return $this
493 493
             ->createTwigTemplate($pageView)
@@ -505,7 +505,7 @@  discard block
 block discarded – undo
505 505
      *
506 506
      * @return TemplateInterface
507 507
      */
508
-    private function createTwigTemplate(BasePageView &$pageView)
508
+    private function createTwigTemplate(BasePageView & $pageView)
509 509
     {
510 510
         try
511 511
         {
Please login to merge, or discard this patch.