Completed
Push — fix-empty-taxonomy ( 2248d5 )
by Arnaud
02:09
created
src/Renderer/RendererInterface.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -20,6 +20,7 @@
 block discarded – undo
20 20
      *
21 21
      * @param string|array $templatesPath
22 22
      * @param Builder      $buider
23
+     * @return void
23 24
      */
24 25
     public function __construct($templatesPath, Builder $buider);
25 26
 
Please login to merge, or discard this patch.
src/Renderer/Twig/Extension.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
      */
127 127
     public function filterBy(PagesCollection $pages, string $variable, string $value): CollectionInterface
128 128
     {
129
-        $filteredPages = $pages->filter(function (Page $page) use ($variable, $value) {
129
+        $filteredPages = $pages->filter(function(Page $page) use ($variable, $value) {
130 130
             $notVirtual = false;
131 131
             // not virtual only
132 132
             if (!$page->isVirtual()) {
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
      */
174 174
     public function sortByWeight($collection): array
175 175
     {
176
-        $callback = function ($a, $b) {
176
+        $callback = function($a, $b) {
177 177
             if (!isset($a['weight'])) {
178 178
                 return 1;
179 179
             }
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
      */
207 207
     public function sortByDate($collection): array
208 208
     {
209
-        $callback = function ($a, $b) {
209
+        $callback = function($a, $b) {
210 210
             if (!isset($a['date'])) {
211 211
                 return -1;
212 212
             }
Please login to merge, or discard this patch.
src/Collection/Page/Collection.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
      */
21 21
     public function all(): self
22 22
     {
23
-        $filteredPages = $this->filter(function (Page $page) {
23
+        $filteredPages = $this->filter(function(Page $page) {
24 24
             if ($page->isVirtual() === false) {
25 25
                 return true;
26 26
             }
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
      */
37 37
     public function sortByDate(): self
38 38
     {
39
-        return $this->usort(function ($a, $b) {
39
+        return $this->usort(function($a, $b) {
40 40
             if (!isset($a['date'])) {
41 41
                 return -1;
42 42
             }
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
      */
59 59
     public function sortByTitle(): self
60 60
     {
61
-        return $this->usort(function ($a, $b) {
61
+        return $this->usort(function($a, $b) {
62 62
             return strnatcmp($a['title'], $b['title']);
63 63
         });
64 64
     }
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
      */
71 71
     public function sortByWeight(): self
72 72
     {
73
-        return $this->usort(function ($a, $b) {
73
+        return $this->usort(function($a, $b) {
74 74
             if (!isset($a['weight'])) {
75 75
                 return -1;
76 76
             }
Please login to merge, or discard this patch.
src/Step/PagesGenerate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
             call_user_func_array($this->builder->getMessageCb(), ['GENERATE', 'Generating pages']);
37 37
 
38 38
             $generators = $this->builder->getConfig()->get('generators');
39
-            array_walk($generators, function ($generator, $priority) use ($generatorManager) {
39
+            array_walk($generators, function($generator, $priority) use ($generatorManager) {
40 40
                 if (!class_exists($generator)) {
41 41
                     $message = sprintf('Unable to load generator "%s"', $generator);
42 42
                     call_user_func_array($this->builder->getMessageCb(), ['GENERATE_ERROR', $message]);
Please login to merge, or discard this patch.
src/Util.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@
 block discarded – undo
127 127
     /**
128 128
      * Format class name.
129 129
      *
130
-     * @param \object $class
130
+     * @param Generator\GeneratorInterface $class
131 131
      * @param array   $options
132 132
      *
133 133
      * @return string
Please login to merge, or discard this patch.
src/Generator/TitleReplace.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
      */
22 22
     public function generate(): void
23 23
     {
24
-        $filteredPages = $this->pagesCollection->filter(function (Page $page) {
24
+        $filteredPages = $this->pagesCollection->filter(function(Page $page) {
25 25
             return null !== $page->getVariable('title');
26 26
         });
27 27
 
Please login to merge, or discard this patch.
src/Generator/Redirect.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
      */
22 22
     public function generate(): void
23 23
     {
24
-        $filteredPages = $this->pagesCollection->filter(function (Page $page) {
24
+        $filteredPages = $this->pagesCollection->filter(function(Page $page) {
25 25
             return null !== $page->getVariable('redirect')
26 26
                 && $page->getVariable('layout') != 'redirect';
27 27
         });
Please login to merge, or discard this patch.
src/Generator/ExternalBody.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
      */
23 23
     public function generate(): void
24 24
     {
25
-        $filteredPages = $this->pagesCollection->filter(function (Page $page) {
25
+        $filteredPages = $this->pagesCollection->filter(function(Page $page) {
26 26
             return null !== $page->getVariable('external');
27 27
         });
28 28
 
Please login to merge, or discard this patch.
src/Generator/Homepage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
      */
22 22
     public function generate(): void
23 23
     {
24
-        $subPages = $this->pagesCollection->filter(function (Page $page) {
24
+        $subPages = $this->pagesCollection->filter(function(Page $page) {
25 25
             return $page->getType() == TYPE::PAGE
26 26
                 && $page->getId() != 'index'; // exclude homepage
27 27
         });
Please login to merge, or discard this patch.