Completed
Push — feature-output-formats ( ff75fd...3b80ac )
by Arnaud
03:36
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/Collection/Page/Page.php 1 patch
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.
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/Collection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -169,7 +169,7 @@
 block discarded – undo
169 169
      */
170 170
     public function usort(\Closure $callback = null): CollectionInterface
171 171
     {
172
-        $callback ? uasort($this->items, $callback) : uasort($this->items, function ($a, $b) {
172
+        $callback ? uasort($this->items, $callback) : uasort($this->items, function($a, $b) {
173 173
             if ($a == $b) {
174 174
                 return 0;
175 175
             }
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/Collection/Page/Collection.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/PagesRender.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.