Passed
Push — fix/scssphp-deprecations ( 26fb96 )
by Arnaud
04:42
created
src/Step/PagesGenerate.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
         $generatorManager = new GeneratorManager($this->builder);
46 46
 
47 47
         // loads local generators
48
-        spl_autoload_register(function ($className) {
48
+        spl_autoload_register(function($className) {
49 49
             $generatorFile = Util::joinFile($this->config->getSourceDir(), 'generators', "$className.php");
50 50
             if (file_exists($generatorFile)) {
51 51
                 require $generatorFile;
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
         });
54 54
 
55 55
         $generators = (array) $this->builder->getConfig()->get('generators');
56
-        array_walk($generators, function ($generator, $priority) use ($generatorManager) {
56
+        array_walk($generators, function($generator, $priority) use ($generatorManager) {
57 57
             if (!class_exists($generator)) {
58 58
                 $message = sprintf('Unable to load generator "%s"', $generator);
59 59
                 $this->builder->getLogger()->error($message);
Please login to merge, or discard this patch.
src/Generator/Section.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
                 // cascade
56 56
                 if ($page->hasVariable('cascade')) {
57 57
                     $cascade = $page->getVariable('cascade');
58
-                    $pages->map(function (Page $page) use ($cascade) {
58
+                    $pages->map(function(Page $page) use ($cascade) {
59 59
                         foreach ($cascade as $key => $value) {
60 60
                             if (!$page->hasVariable($key)) {
61 61
                                 $page->setVariable($key, $value);
Please login to merge, or discard this patch.
src/Util.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
      */
45 45
     public static function joinPath(string ...$path): string
46 46
     {
47
-        array_walk($path, function (&$value, $key) {
47
+        array_walk($path, function(&$value, $key) {
48 48
             $value = str_replace('\\', '/', $value);
49 49
             $value = rtrim($value, '/');
50 50
             $value = $key == 0 ? $value : ltrim($value, '/');
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
      */
63 63
     public static function joinFile(string ...$path): string
64 64
     {
65
-        array_walk($path, function (&$value, $key) use (&$path) {
65
+        array_walk($path, function(&$value, $key) use (&$path) {
66 66
             $value = str_replace(['\\', '/'], [DIRECTORY_SEPARATOR, DIRECTORY_SEPARATOR], $value);
67 67
             $value = rtrim($value, DIRECTORY_SEPARATOR);
68 68
             $value = $key == 0 ? $value : ltrim($value, DIRECTORY_SEPARATOR);
Please login to merge, or discard this patch.
src/Util/File.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
     public static function fileGetContents($filename)
42 42
     {
43 43
         set_error_handler(
44
-            function ($severity, $message, $file, $line) {
44
+            function($severity, $message, $file, $line) {
45 45
                 throw new \ErrorException($message, 0, $severity, $file, $line, null);
46 46
             }
47 47
         );
Please login to merge, or discard this patch.