Completed
Push — feature-output-formats ( 52a61e...a13454 )
by Arnaud
02:07
created
src/Generator/Homepage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
         $generatedPages = new PagesCollection();
26 26
 
27 27
         if (!$pagesCollection->has('index')) {
28
-            $filteredPages = $pagesCollection->filter(function (Page $page) {
28
+            $filteredPages = $pagesCollection->filter(function(Page $page) {
29 29
                 return ($page->getType() === null || $page->getType() === TYPE::PAGE)
30 30
                 && $page->getSection() == $this->config->get('site.paginate.homepage.section')
31 31
                 && !empty($page->getBody());
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/Page/Prefix.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
      *
39 39
      * @param string $string
40 40
      *
41
-     * @return string[]|null
41
+     * @return string|null
42 42
      */
43 43
     public static function getPrefix(string $string): ?string
44 44
     {
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
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
     {
24 24
         $generatedPages = new PagesCollection();
25 25
 
26
-        $filteredPages = $pagesCollection->filter(function (Page $page) {
26
+        $filteredPages = $pagesCollection->filter(function(Page $page) {
27 27
             return null !== $page->getVariable('title');
28 28
         });
29 29
 
Please login to merge, or discard this patch.
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
             // dedicated getter?
131 131
             $method = 'get'.ucfirst($variable);
132 132
             if (method_exists($page, $method) && $page->$method() == $value) {
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
      */
169 169
     public function sortByWeight($collection): array
170 170
     {
171
-        $callback = function ($a, $b) {
171
+        $callback = function($a, $b) {
172 172
             if (!isset($a['weight'])) {
173 173
                 return 1;
174 174
             }
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
      */
202 202
     public function sortByDate($collection): array
203 203
     {
204
-        $callback = function ($a, $b) {
204
+        $callback = function($a, $b) {
205 205
             if (!isset($a['date'])) {
206 206
                 return -1;
207 207
             }
Please login to merge, or discard this patch.