Passed
Pull Request — 6 (#1291)
by Arnaud
08:00 queued 11s
created
src/Step/Pages/Generate.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
         $generatorManager = new GeneratorManager($this->builder);
47 47
 
48 48
         // loads local generators
49
-        spl_autoload_register(function ($className) {
49
+        spl_autoload_register(function($className) {
50 50
             $generatorFile = Util::joinFile($this->config->getSourceDir(), 'generators', "$className.php");
51 51
             if (file_exists($generatorFile)) {
52 52
                 require $generatorFile;
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
         });
55 55
 
56 56
         $generators = (array) $this->builder->getConfig()->get('generators');
57
-        array_walk($generators, function ($generator, $priority) use ($generatorManager) {
57
+        array_walk($generators, function($generator, $priority) use ($generatorManager) {
58 58
             if (!class_exists($generator)) {
59 59
                 $message = sprintf('Unable to load generator "%s".', $generator);
60 60
                 $this->builder->getLogger()->error($message);
Please login to merge, or discard this patch.
src/Assets/Asset.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
         $this->builder = $builder;
68 68
         $this->config = $builder->getConfig();
69 69
         $paths = is_array($paths) ? $paths : [$paths];
70
-        array_walk($paths, function ($path) {
70
+        array_walk($paths, function($path) {
71 71
             if (empty($path)) {
72 72
                 throw new RuntimeException('The path parameter of "asset() can\'t be empty."');
73 73
             }
@@ -411,7 +411,7 @@  discard block
 block discarded – undo
411 411
 
412 412
             try {
413 413
                 $img = ImageManager::make($this->data['content_source']);
414
-                $img->resize($size, null, function (\Intervention\Image\Constraint $constraint) {
414
+                $img->resize($size, null, function(\Intervention\Image\Constraint $constraint) {
415 415
                     $constraint->aspectRatio();
416 416
                     $constraint->upsize();
417 417
                 });
Please login to merge, or discard this patch.
src/Config.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
          * Overrides configuration with environment variables.
63 63
          */
64 64
         $data = $this->getData();
65
-        $applyEnv = function ($array) use ($data) {
65
+        $applyEnv = function($array) use ($data) {
66 66
             $iterator = new \RecursiveIteratorIterator(
67 67
                 new \RecursiveArrayIterator($array),
68 68
                 \RecursiveIteratorIterator::SELF_FIRST
@@ -444,7 +444,7 @@  discard block
 block discarded – undo
444 444
             throw new RuntimeException(\sprintf('The default language "%s" is not listed in "languages" key configuration.', $this->getLanguageDefault()));
445 445
         }
446 446
 
447
-        $languages = array_filter($languages, function ($language) {
447
+        $languages = array_filter($languages, function($language) {
448 448
             return !(isset($language['enabled']) && $language['enabled'] === false);
449 449
         });
450 450
 
Please login to merge, or discard this patch.
src/Renderer/Layout.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -141,8 +141,8 @@
 block discarded – undo
141 141
             case PageType::TERM:
142 142
                 $layouts = [
143 143
                     // "taxonomy/$term.$format.$ext", // ie: taxonomy/velo.html.twig
144
-                    "_default/term.$format.$ext",     // ie: _default/term.html.twig
145
-                    "_default/list.$format.$ext",     // ie: _default/list.html.twig
144
+                    "_default/term.$format.$ext", // ie: _default/term.html.twig
145
+                    "_default/list.$format.$ext", // ie: _default/list.html.twig
146 146
                 ];
147 147
                 if ($page->hasVariable('term')) {
148 148
                     $layouts = array_merge(
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
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
             $page = clone $this->builder->getPages()->get('index');
32 32
         }
33 33
         // collects all pages
34
-        $subPages = $this->builder->getPages()->filter(function (Page $page) {
34
+        $subPages = $this->builder->getPages()->filter(function(Page $page) {
35 35
             return $page->getType() == TYPE::PAGE
36 36
                 && $page->isVirtual() === false // excludes virtual pages
37 37
                 && $page->getVariable('exclude') !== true;
Please login to merge, or discard this patch.