Passed
Push — fix-path ( b5d6c0...1b4496 )
by Arnaud
02:46
created
src/Command/Command.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -179,7 +179,7 @@
 block discarded – undo
179 179
      */
180 180
     public function messageCallback(OutputInterface $output)
181 181
     {
182
-        return function ($code, $message = '', $itemsCount = 0, $itemsMax = 0) use ($output) {
182
+        return function($code, $message = '', $itemsCount = 0, $itemsMax = 0) use ($output) {
183 183
             if (strpos($code, '_PROGRESS') !== false) {
184 184
                 if ($output->isVerbose()) {
185 185
                     if ($itemsCount > 0) {
Please login to merge, or discard this patch.
src/Step/DataLoad.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/Command/ShowContent.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
         $dataDir = (string) $this->getBuilder($output)->getConfig()->get('data.dir');
48 48
 
49 49
         // format output
50
-        $unicodeTreePrefix = function (RecursiveTreeIterator $tree) {
50
+        $unicodeTreePrefix = function(RecursiveTreeIterator $tree) {
51 51
             $prefixParts = [
52 52
                 RecursiveTreeIterator::PREFIX_LEFT         => ' ',
53 53
                 RecursiveTreeIterator::PREFIX_MID_HAS_NEXT => '│ ',
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
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
         }
28 28
 
29 29
         // filter pages: home, sections and terms
30
-        $filteredPages = $this->pagesCollection->filter(function (Page $page) {
30
+        $filteredPages = $this->pagesCollection->filter(function(Page $page) {
31 31
             return in_array($page->getType(), [Type::HOMEPAGE, Type::SECTION, Type::TERM]);
32 32
         });
33 33
         /** @var Page $page */
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.
src/Assets/Image.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@
 block discarded – undo
94 94
         // image object
95 95
         try {
96 96
             $img = ImageManager::make($this->source);
97
-            $img->resize($this->size, null, function (\Intervention\Image\Constraint $constraint) {
97
+            $img->resize($this->size, null, function(\Intervention\Image\Constraint $constraint) {
98 98
                 $constraint->aspectRatio();
99 99
                 $constraint->upsize();
100 100
             });
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
@@ -312,7 +312,7 @@  discard block
 block discarded – undo
312 312
     public function setMessageCallback(\Closure $messageCallback = null)
313 313
     {
314 314
         if ($messageCallback === null) {
315
-            $messageCallback = function ($code, $message = '', $itemsCount = 0, $itemsMax = 0) {
315
+            $messageCallback = function($code, $message = '', $itemsCount = 0, $itemsMax = 0) {
316 316
                 switch ($code) {
317 317
                     case 'CONFIG':
318 318
                     case 'LOCATE':
@@ -416,7 +416,7 @@  discard block
 block discarded – undo
416 416
     public function getLog(int $type = 0): ?array
417 417
     {
418 418
         if (is_array($this->log)) {
419
-            return array_filter($this->log, function ($key) use ($type) {
419
+            return array_filter($this->log, function($key) use ($type) {
420 420
                 return $key['type'] <= $type;
421 421
             });
422 422
         }
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
@@ -111,7 +111,7 @@
 block discarded – undo
111 111
      */
112 112
     public function getPages(): \Cecil\Collection\Page\Collection
113 113
     {
114
-        return $this->builder->getPages()->filter(function (Page $page) {
114
+        return $this->builder->getPages()->filter(function(Page $page) {
115 115
             return $page->getVariable('published');
116 116
         });
117 117
     }
Please login to merge, or discard this patch.
config/default.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -13,14 +13,14 @@
 block discarded – undo
13 13
     'title'        => 'My Website',
14 14
     'baseline'     => 'My amazing static website!',
15 15
     'baseurl'      => 'http://localhost:8000/',
16
-    'canonicalurl' => false,   // if true 'url()' function preprends URL wirh 'baseurl'
16
+    'canonicalurl' => false, // if true 'url()' function preprends URL wirh 'baseurl'
17 17
     'description'  => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.',
18
-    'taxonomies'   => [        // default taxonomies
18
+    'taxonomies'   => [// default taxonomies
19 19
         'tags'       => 'tag', // can be disabled with 'disabled' value
20 20
         'categories' => 'category',
21 21
     ],
22 22
     'pagination' => [
23
-        'max'  => 5,      // number of pages on each paginated pages
23
+        'max'  => 5, // number of pages on each paginated pages
24 24
         'path' => 'page', // path to paginated pages. ie: '/blog/page/2/'
25 25
     ],
26 26
     'date'   => [
Please login to merge, or discard this patch.