@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | call_user_func_array($this->builder->getMessageCb(), ['GENERATE', 'Generating pages']); |
| 37 | 37 | |
| 38 | 38 | // load local generators |
| 39 | - spl_autoload_register(function ($className) { |
|
| 39 | + spl_autoload_register(function($className) { |
|
| 40 | 40 | $generatorFile = $this->config->getDestinationDir().'/generators/'.$className.'.php'; |
| 41 | 41 | if (file_exists($generatorFile)) { |
| 42 | 42 | require $generatorFile; |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | }); |
| 45 | 45 | |
| 46 | 46 | $generators = (array) $this->builder->getConfig()->get('generators'); |
| 47 | - array_walk($generators, function ($generator, $priority) use ($generatorManager) { |
|
| 47 | + array_walk($generators, function($generator, $priority) use ($generatorManager) { |
|
| 48 | 48 | if (!class_exists($generator)) { |
| 49 | 49 | $message = sprintf('Unable to load generator "%s"', $generator); |
| 50 | 50 | call_user_func_array($this->builder->getMessageCb(), ['GENERATE_ERROR', $message]); |
@@ -91,7 +91,7 @@ |
||
| 91 | 91 | $memoryLimit = ini_get('memory_limit'); |
| 92 | 92 | ini_set('memory_limit', '512M'); |
| 93 | 93 | $img = ImageManager::make($this->source); |
| 94 | - $img->resize($this->size, null, function (\Intervention\Image\Constraint $constraint) { |
|
| 94 | + $img->resize($this->size, null, function(\Intervention\Image\Constraint $constraint) { |
|
| 95 | 95 | $constraint->aspectRatio(); |
| 96 | 96 | $constraint->upsize(); |
| 97 | 97 | }); |
@@ -149,7 +149,7 @@ |
||
| 149 | 149 | */ |
| 150 | 150 | public static function joinFile(array $strings): string |
| 151 | 151 | { |
| 152 | - array_walk($strings, function (&$value, &$key) { |
|
| 152 | + array_walk($strings, function(&$value, &$key) { |
|
| 153 | 153 | $value = str_replace(['\\', '/'], DIRECTORY_SEPARATOR, $value); |
| 154 | 154 | }); |
| 155 | 155 | |