@@ -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 | }); |
@@ -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 | |
@@ -141,8 +141,8 @@ |
||
| 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( |
@@ -31,7 +31,7 @@ |
||
| 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; |
@@ -42,7 +42,7 @@ |
||
| 42 | 42 | } |
| 43 | 43 | |
| 44 | 44 | set_error_handler( |
| 45 | - function ($severity, $message, $file, $line) { |
|
| 45 | + function($severity, $message, $file, $line) { |
|
| 46 | 46 | throw new \ErrorException($message, 0, $severity, $file, $line, null); |
| 47 | 47 | } |
| 48 | 48 | ); |