Passed
Push — dependabot/composer/phpunit/ph... ( 52257f )
by
unknown
09:55 queued 05:35
created
src/Command/Serve.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -132,7 +132,7 @@
 block discarded – undo
132 132
         $buildProcess->setPty(Process::isPtySupported());
133 133
         $buildProcess->setTimeout(3600 * 2); // timeout = 2 minutes
134 134
 
135
-        $processOutputCallback = function ($type, $data) use ($output) {
135
+        $processOutputCallback = function($type, $data) use ($output) {
136 136
             $output->write($data, false, OutputInterface::OUTPUT_RAW);
137 137
         };
138 138
 
Please login to merge, or discard this patch.
src/Step/Data/Load.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
         foreach ($files as $file) {
68 68
             $count++;
69 69
             set_error_handler(
70
-                function ($severity, $message, $file, $line) {
70
+                function($severity, $message, $file, $line) {
71 71
                     throw new \ErrorException($message, 0, $severity, $file, $line, null);
72 72
                 }
73 73
             );
Please login to merge, or discard this patch.
src/Step/Menus/Create.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -146,7 +146,7 @@
 block discarded – undo
146 146
      */
147 147
     protected function collectPages(): void
148 148
     {
149
-        $filteredPages = $this->builder->getPages()->filter(function (Page $page) {
149
+        $filteredPages = $this->builder->getPages()->filter(function(Page $page) {
150 150
             return $page->hasVariable('menu')
151 151
                 && $page->getVariable('published')
152 152
                 && in_array($page->getVariable('language', $this->config->getLanguageDefault()), array_column($this->config->getLanguages(), 'code'));
Please login to merge, or discard this patch.
src/Generator/AbstractGenerator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
         $this->generate();
51 51
 
52 52
         // set default language (e.g.: "en") if necessary
53
-        $this->generatedPages->map(function (\Cecil\Collection\Page\Page $page) {
53
+        $this->generatedPages->map(function(\Cecil\Collection\Page\Page $page) {
54 54
             if ($page->getVariable('language') === null) {
55 55
                 $page->setVariable('language', $this->config->getLanguageDefault());
56 56
             }
Please login to merge, or discard this patch.
src/Renderer/Site.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -136,7 +136,7 @@
 block discarded – undo
136 136
      */
137 137
     public function getPages(): \Cecil\Collection\Page\Collection
138 138
     {
139
-        return $this->builder->getPages()->filter(function (CollectionPage $page) {
139
+        return $this->builder->getPages()->filter(function(CollectionPage $page) {
140 140
             // We should fix case of virtual pages without language
141 141
             if ($page->getVariable('language') === null && $this->language == $this->config->getLanguageDefault()) {
142 142
                 return true;
Please login to merge, or discard this patch.
src/Renderer/Twig.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -100,10 +100,10 @@
 block discarded – undo
100 100
             $this->builder->getLogger()->debug('Intl extension is loaded');
101 101
         }
102 102
         // filters fallback
103
-        $this->twig->registerUndefinedFilterCallback(function ($name) {
103
+        $this->twig->registerUndefinedFilterCallback(function($name) {
104 104
             switch ($name) {
105 105
                 case 'localizeddate':
106
-                    return new \Twig\TwigFilter($name, function (\DateTime $value = null) {
106
+                    return new \Twig\TwigFilter($name, function(\DateTime $value = null) {
107 107
                         return date((string) $this->builder->getConfig()->get('date.format'), $value->getTimestamp());
108 108
                     });
109 109
             }
Please login to merge, or discard this patch.
src/Assets/Url.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,8 +61,8 @@
 block discarded – undo
61 61
 
62 62
         // handles options
63 63
         $canonical = null; // if true, add prefix URL with baseurl
64
-        $format = null;    // set output format
65
-        $language = null;  // force language
64
+        $format = null; // set output format
65
+        $language = null; // force language
66 66
         extract(is_array($options) ? $options : [], EXTR_IF_EXISTS);
67 67
 
68 68
         // canonical URL?
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
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
      */
26 26
     public function showable(): self
27 27
     {
28
-        return $this->filter(function (Page $page) {
28
+        return $this->filter(function(Page $page) {
29 29
             if ($page->getVariable('published') === true
30 30
                 && $page->isVirtual() === false
31 31
                 && $page->getVariable('redirect') === null
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
         $options['descTitle'] = $options['descTitle'] ?? false;
60 60
         $options['reverse'] = $options['reverse'] ?? false;
61 61
 
62
-        return $this->usort(function ($a, $b) use ($options) {
62
+        return $this->usort(function($a, $b) use ($options) {
63 63
             if ($a[$options['variable']] == $b[$options['variable']]) {
64 64
                 // if dates are equal and "descTitle" is true
65 65
                 if ($options['descTitle'] && (isset($a['title']) && isset($b['title']))) {
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
             $options['reverse'] = false;
84 84
         }
85 85
 
86
-        return $this->usort(function ($a, $b) use ($options) {
86
+        return $this->usort(function($a, $b) use ($options) {
87 87
             return ($options['reverse'] ? -1 : 1) * strnatcmp($a['title'], $b['title']);
88 88
         });
89 89
     }
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
             $options['reverse'] = false;
99 99
         }
100 100
 
101
-        return $this->usort(function ($a, $b) use ($options) {
101
+        return $this->usort(function($a, $b) use ($options) {
102 102
             if ($a['weight'] == $b['weight']) {
103 103
                 return 0;
104 104
             }
Please login to merge, or discard this patch.
src/Step/Pages/Generate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
         Util::autoload($this->builder, 'generators');
51 51
 
52 52
         $generators = (array) $this->builder->getConfig()->get('generators');
53
-        array_walk($generators, function ($generator, $priority) use ($generatorManager) {
53
+        array_walk($generators, function($generator, $priority) use ($generatorManager) {
54 54
             if (!class_exists($generator)) {
55 55
                 $message = \sprintf('Unable to load generator "%s".', $generator);
56 56
                 $this->builder->getLogger()->error($message);
Please login to merge, or discard this patch.