@@ -62,7 +62,7 @@ |
||
| 62 | 62 | // This options allows you to override the currency shown for the null value |
| 63 | 63 | $resolver->setDefault('base_currency', null); |
| 64 | 64 | |
| 65 | - $resolver->setDefault('empty_message', function (Options $options) { |
|
| 65 | + $resolver->setDefault('empty_message', function(Options $options) { |
|
| 66 | 66 | //By default we use the global base currency: |
| 67 | 67 | $iso_code = $this->base_currency; |
| 68 | 68 | |
@@ -59,11 +59,11 @@ discard block |
||
| 59 | 59 | { |
| 60 | 60 | parent::configureOptions($resolver); |
| 61 | 61 | |
| 62 | - $resolver->setDefault('perm_name', function (Options $options) { |
|
| 62 | + $resolver->setDefault('perm_name', function(Options $options) { |
|
| 63 | 63 | return $options['name']; |
| 64 | 64 | }); |
| 65 | 65 | |
| 66 | - $resolver->setDefault('label', function (Options $options) { |
|
| 66 | + $resolver->setDefault('label', function(Options $options) { |
|
| 67 | 67 | if (!empty($this->perm_structure['perms'][$options['perm_name']]['label'])) { |
| 68 | 68 | return $this->perm_structure['perms'][$options['perm_name']]['label']; |
| 69 | 69 | } |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | return $options['name']; |
| 72 | 72 | }); |
| 73 | 73 | |
| 74 | - $resolver->setDefault('multi_checkbox', function (Options $options) { |
|
| 74 | + $resolver->setDefault('multi_checkbox', function(Options $options) { |
|
| 75 | 75 | return !$options['disabled']; |
| 76 | 76 | }); |
| 77 | 77 | |
@@ -81,13 +81,13 @@ |
||
| 81 | 81 | { |
| 82 | 82 | parent::configureOptions($resolver); |
| 83 | 83 | |
| 84 | - $resolver->setDefault('group_name', function (Options $options) { |
|
| 84 | + $resolver->setDefault('group_name', function(Options $options) { |
|
| 85 | 85 | return trim($options['name']); |
| 86 | 86 | }); |
| 87 | 87 | |
| 88 | 88 | $resolver->setDefault('inherit', false); |
| 89 | 89 | |
| 90 | - $resolver->setDefault('label', function (Options $options) { |
|
| 90 | + $resolver->setDefault('label', function(Options $options) { |
|
| 91 | 91 | if (!empty($this->perm_structure['groups'][$options['group_name']]['label'])) { |
| 92 | 92 | return $this->perm_structure['groups'][$options['group_name']]['label']; |
| 93 | 93 | } |
@@ -66,10 +66,10 @@ |
||
| 66 | 66 | |
| 67 | 67 | //Normalize data before writing it to database |
| 68 | 68 | $builder->get('filetype_filter')->addViewTransformer(new CallbackTransformer( |
| 69 | - function ($value) { |
|
| 69 | + function($value) { |
|
| 70 | 70 | return $value; |
| 71 | 71 | }, |
| 72 | - function ($value) { |
|
| 72 | + function($value) { |
|
| 73 | 73 | return $this->filterTools->normalizeFilterString($value); |
| 74 | 74 | } |
| 75 | 75 | )); |
@@ -139,7 +139,7 @@ |
||
| 139 | 139 | { |
| 140 | 140 | $filter = trim($filter); |
| 141 | 141 | |
| 142 | - return $this->cache->get('filter_exts_'.md5($filter), function (ItemInterface $item) use ($filter) { |
|
| 142 | + return $this->cache->get('filter_exts_'.md5($filter), function(ItemInterface $item) use ($filter) { |
|
| 143 | 143 | $elements = explode(',', $filter); |
| 144 | 144 | $extensions = []; |
| 145 | 145 | |
@@ -477,7 +477,7 @@ |
||
| 477 | 477 | if ($only_http) { //Check if scheme is HTTPS or HTTP |
| 478 | 478 | $scheme = parse_url($string, PHP_URL_SCHEME); |
| 479 | 479 | if ('http' !== $scheme && 'https' !== $scheme) { |
| 480 | - return false; //All other schemes are not valid. |
|
| 480 | + return false; //All other schemes are not valid. |
|
| 481 | 481 | } |
| 482 | 482 | } |
| 483 | 483 | if ($path_required) { |
@@ -45,7 +45,7 @@ |
||
| 45 | 45 | { |
| 46 | 46 | $resolver->setDefaults([ |
| 47 | 47 | 'show_legend' => true, |
| 48 | - 'constraints' => function (Options $options) { |
|
| 48 | + 'constraints' => function(Options $options) { |
|
| 49 | 49 | if (!$options['disabled']) { |
| 50 | 50 | return [new NoLockout()]; |
| 51 | 51 | } |
@@ -58,7 +58,7 @@ |
||
| 58 | 58 | { |
| 59 | 59 | $this->allowedMethods = []; |
| 60 | 60 | foreach ($methods as $class => $m) { |
| 61 | - $this->allowedMethods[$class] = array_map(function ($value) { return strtr($value, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz'); }, \is_array($m) ? $m : [$m]); |
|
| 61 | + $this->allowedMethods[$class] = array_map(function($value) { return strtr($value, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz'); }, \is_array($m) ? $m : [$m]); |
|
| 62 | 62 | } |
| 63 | 63 | } |
| 64 | 64 | |
@@ -7,7 +7,7 @@ discard block |
||
| 7 | 7 | use Symplify\EasyCodingStandard\ValueObject\Set\SetList; |
| 8 | 8 | use Symplify\CodingStandard\Fixer\LineLength\LineLengthFixer; |
| 9 | 9 | |
| 10 | -return static function (ContainerConfigurator $containerConfigurator): void { |
|
| 10 | +return static function(ContainerConfigurator $containerConfigurator): void { |
|
| 11 | 11 | $parameters = $containerConfigurator->parameters(); |
| 12 | 12 | $parameters->set(Option::SETS, [ |
| 13 | 13 | SetList::CLEAN_CODE, |
@@ -17,8 +17,8 @@ discard block |
||
| 17 | 17 | ]); |
| 18 | 18 | |
| 19 | 19 | $parameters->set(Option::PATHS, [ |
| 20 | - __DIR__ . '/src', |
|
| 21 | - __DIR__ . '/tests', |
|
| 20 | + __DIR__.'/src', |
|
| 21 | + __DIR__.'/tests', |
|
| 22 | 22 | ]); |
| 23 | 23 | |
| 24 | 24 | $parameters->set(Option::SKIP, [ |