@@ -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 | )); |
@@ -66,7 +66,7 @@ |
||
| 66 | 66 | } else { |
| 67 | 67 | // We have to sort the pricedetails manually |
| 68 | 68 | $array = $pricedetails->map( |
| 69 | - function (Pricedetail $pricedetail) { |
|
| 69 | + function(Pricedetail $pricedetail) { |
|
| 70 | 70 | return $pricedetail->getMinDiscountQuantity(); |
| 71 | 71 | } |
| 72 | 72 | )->toArray(); |
@@ -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 | |
@@ -79,7 +79,7 @@ |
||
| 79 | 79 | public function getTests() |
| 80 | 80 | { |
| 81 | 81 | return [ |
| 82 | - new TwigTest('instanceof', function ($var, $instance) { |
|
| 82 | + new TwigTest('instanceof', function($var, $instance) { |
|
| 83 | 83 | return $var instanceof $instance; |
| 84 | 84 | }), |
| 85 | 85 | ]; |
@@ -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 | } |