@@ -21,14 +21,14 @@ |
||
21 | 21 | { |
22 | 22 | return Nette\Schema\Expect::structure([ |
23 | 23 | 'output_path' => Nette\Schema\Expect::string()->nullable(), # The path where Encore is building the assets - i.e. Encore.setOutputPath() |
24 | - 'builds' => Nette\Schema\Expect::array()->items('string')->assert(function (array $value): bool { |
|
24 | + 'builds' => Nette\Schema\Expect::array()->items('string')->assert(function(array $value): bool { |
|
25 | 25 | if (isset($value[self::ENTRYPOINT_DEFAULT_NAME])) { |
26 | 26 | throw new Nette\Utils\AssertionException(sprintf('Key "%s" can\'t be used as build name.', self::ENTRYPOINT_DEFAULT_NAME)); |
27 | 27 | } |
28 | 28 | |
29 | 29 | return TRUE; |
30 | 30 | }), |
31 | - 'crossorigin' => Nette\Schema\Expect::string()->nullable()->assert(function (?string $value): bool { |
|
31 | + 'crossorigin' => Nette\Schema\Expect::string()->nullable()->assert(function(?string $value): bool { |
|
32 | 32 | if (!in_array($value, self::CROSSORIGIN_ALLOWED_VALUES, TRUE)) { |
33 | 33 | throw new Nette\Utils\AssertionException(sprintf('Value "%s" for setting "crossorigin" is not allowed', $value)); |
34 | 34 | } |