@@ -62,7 +62,7 @@ discard block |
||
| 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 |
||
| 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 | |
@@ -67,7 +67,7 @@ discard block |
||
| 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 |
||
| 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 | }); |