Completed
Push — dependabot/composer/phpunit/ph... ( 55b32c )
by
unknown
05:37
created
src/Command/ListContent.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
             $this->wlAnnonce(sprintf('%s/', $this->contentDir));
31 31
             $pages = $this->getPagesTree();
32 32
             if ($this->getConsole()->isUtf8()) {
33
-                $unicodeTreePrefix = function (RecursiveTreeIterator $tree) {
33
+                $unicodeTreePrefix = function(RecursiveTreeIterator $tree) {
34 34
                     $prefixParts = [
35 35
                         RecursiveTreeIterator::PREFIX_LEFT         => ' ',
36 36
                         RecursiveTreeIterator::PREFIX_MID_HAS_NEXT => '│ ',
Please login to merge, or discard this patch.
src/Command/AbstractCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -209,7 +209,7 @@
 block discarded – undo
209 209
      */
210 210
     public function messageCallback()
211 211
     {
212
-        return function ($code, $message = '', $itemsCount = 0, $itemsMax = 0) {
212
+        return function($code, $message = '', $itemsCount = 0, $itemsMax = 0) {
213 213
             if ($this->quiet) {
214 214
                 return;
215 215
             } else {
Please login to merge, or discard this patch.
src/Builder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -229,7 +229,7 @@  discard block
 block discarded – undo
229 229
     public function setMessageCallback($messageCallback = null)
230 230
     {
231 231
         if ($messageCallback === null) {
232
-            $messageCallback = function ($code, $message = '', $itemsCount = 0, $itemsMax = 0) {
232
+            $messageCallback = function($code, $message = '', $itemsCount = 0, $itemsMax = 0) {
233 233
                 switch ($code) {
234 234
                     case 'CONFIG':
235 235
                     case 'LOCATE':
@@ -326,7 +326,7 @@  discard block
 block discarded – undo
326 326
     public function getLog($type = 0)
327 327
     {
328 328
         if (is_array($this->log)) {
329
-            return array_filter($this->log, function ($key) use ($type) {
329
+            return array_filter($this->log, function($key) use ($type) {
330 330
                 return $key['type'] <= $type;
331 331
             });
332 332
         }
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/Collection/Taxonomy/Term.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
     public function sortByDate(): self
25 25
     {
26
-        return $this->usort(function ($a, $b) {
26
+        return $this->usort(function($a, $b) {
27 27
             if (!isset($a['date'])) {
28 28
                 return -1;
29 29
             }
Please login to merge, or discard this patch.
src/Step/PagesSave.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
         call_user_func_array($this->builder->getMessageCb(), ['SAVE', 'Saving pages']);
47 47
 
48 48
         /* @var $page Page */
49
-        $filteredPages = $this->builder->getPages()->filter(function (Page $page) {
49
+        $filteredPages = $this->builder->getPages()->filter(function(Page $page) {
50 50
             return !empty($page->getVariable('rendered'));
51 51
         });
52 52
         $max = count($filteredPages);
Please login to merge, or discard this patch.
src/Step/StaticCopy.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
         $staticDir = $this->builder->getConfig()->getStaticPath();
62 62
         if (Util::getFS()->exists($staticDir)) {
63 63
             $finder = new Finder();
64
-            $finder->files()->filter(function (\SplFileInfo $file) {
64
+            $finder->files()->filter(function(\SplFileInfo $file) {
65 65
                 return !(is_array($this->builder->getConfig()->get('static.exclude'))
66 66
                     && in_array($file->getBasename(), $this->builder->getConfig()->get('static.exclude')));
67 67
             })->in($staticDir);
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.