Completed
Push — dependabot/composer/twig/twig-... ( 7413b6 )
by
unknown
02:46
created
src/Generator/Redirect.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 PageCollection();
25 25
 
26
-        $filteredPages = $pageCollection->filter(function (Page $page) {
26
+        $filteredPages = $pageCollection->filter(function(Page $page) {
27 27
             return null !== $page->getVariable('redirect');
28 28
         });
29 29
 
Please login to merge, or discard this patch.
src/Generator/Pagination.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
     {
25 25
         $generatedPages = new PageCollection();
26 26
 
27
-        $filteredPages = $pageCollection->filter(function (Page $page) {
27
+        $filteredPages = $pageCollection->filter(function(Page $page) {
28 28
             return in_array($page->getNodeType(), [NodeType::HOMEPAGE, NodeType::SECTION]);
29 29
         });
30 30
 
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
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
         $generatedPages = new PageCollection();
26 26
 
27 27
         if (!$pageCollection->has('index')) {
28
-            $filteredPages = $pageCollection->filter(function (Page $page) {
28
+            $filteredPages = $pageCollection->filter(function(Page $page) {
29 29
                 return $page->getNodeType() === null
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/Collection/Page/Page.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@
 block discarded – undo
128 128
             // file as a prefix?
129 129
             if (false !== self::getPrefix($this->fileId)) {
130 130
                 // prefix is a valid date?
131
-                $isValidDate = function ($date, $format = 'Y-m-d') {
131
+                $isValidDate = function($date, $format = 'Y-m-d') {
132 132
                     $d = \DateTime::createFromFormat($format, $date);
133 133
 
134 134
                     return $d && $d->format($format) === $date;
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -172,7 +172,7 @@
 block discarded – undo
172 172
      *
173 173
      * @param string $string
174 174
      *
175
-     * @return string[]|false
175
+     * @return string|false
176 176
      */
177 177
     public static function getPrefix(string $string)
178 178
     {
Please login to merge, or discard this patch.
src/Config.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -142,7 +142,7 @@
 block discarded – undo
142 142
         /**
143 143
          * Apply environment variables.
144 144
          */
145
-        $applyEnv = function ($array) use ($data) {
145
+        $applyEnv = function($array) use ($data) {
146 146
             $iterator = new \RecursiveIteratorIterator(
147 147
                 new \RecursiveArrayIterator($array),
148 148
                 \RecursiveIteratorIterator::SELF_FIRST
Please login to merge, or discard this patch.
src/Generator/GeneratorInterface.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -17,6 +17,7 @@
 block discarded – undo
17 17
      * Give config to object.
18 18
      *
19 19
      * @param \Cecil\Config $config
20
+     * @return void
20 21
      */
21 22
     public function __construct(\Cecil\Config $config);
22 23
 
Please login to merge, or discard this patch.
src/Step/StepInterface.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -16,6 +16,7 @@
 block discarded – undo
16 16
      * StepInterface constructor.
17 17
      *
18 18
      * @param Builder $builder
19
+     * @return void
19 20
      */
20 21
     public function __construct(Builder $builder);
21 22
 
Please login to merge, or discard this patch.
src/Step/GeneratePages.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
         if ($this->process) {
34 34
             $generatorManager = new GeneratorManager();
35 35
             $generators = $this->builder->getConfig()->get('generators');
36
-            array_walk($generators, function ($generator, $priority) use ($generatorManager) {
36
+            array_walk($generators, function($generator, $priority) use ($generatorManager) {
37 37
                 if (!class_exists($generator)) {
38 38
                     $message = sprintf("Unable to load generator '%s'", $generator);
39 39
                     call_user_func_array($this->builder->getMessageCb(), ['GENERATE_ERROR', $message]);
Please login to merge, or discard this patch.
src/Step/RenderPages.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
 
53 53
         // collect published pages
54 54
         /* @var $page Page */
55
-        $filteredPages = $this->builder->getPages()->filter(function (Page $page) {
55
+        $filteredPages = $this->builder->getPages()->filter(function(Page $page) {
56 56
             return !empty($page->getVariable('published'));
57 57
         });
58 58
         $max = count($filteredPages);
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
         $this->builder->getRenderer()->addGlobal('site', array_merge(
112 112
             $this->config->get('site'),
113 113
             ['menus' => $this->builder->getMenus()],
114
-            ['pages' => $this->builder->getPages()->filter(function (Page $page) {
114
+            ['pages' => $this->builder->getPages()->filter(function(Page $page) {
115 115
                 return $page->getVariable('published');
116 116
             })],
117 117
             ['time' => time()]
Please login to merge, or discard this patch.