@@ -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 | } |
@@ -77,7 +77,7 @@ |
||
| 77 | 77 | 'required' => false, |
| 78 | 78 | 'attr' => ['class' => 'selectpicker'], |
| 79 | 79 | 'choices' => User::AVAILABLE_THEMES, |
| 80 | - 'choice_label' => function ($entity, $key, $value) { |
|
| 80 | + 'choice_label' => function($entity, $key, $value) { |
|
| 81 | 81 | return $value; |
| 82 | 82 | }, |
| 83 | 83 | 'placeholder' => $this->trans->trans('user_settings.theme.placeholder'), |
@@ -149,7 +149,7 @@ |
||
| 149 | 149 | ->add('theme', ChoiceType::class, [ |
| 150 | 150 | 'required' => false, |
| 151 | 151 | 'choices' => User::AVAILABLE_THEMES, |
| 152 | - 'choice_label' => function ($entity, $key, $value) { |
|
| 152 | + 'choice_label' => function($entity, $key, $value) { |
|
| 153 | 153 | return $value; |
| 154 | 154 | }, |
| 155 | 155 | 'attr' => ['class' => 'selectpicker'], |
@@ -129,7 +129,7 @@ |
||
| 129 | 129 | //Check the secure file checkbox, if file is in securefile location |
| 130 | 130 | $builder->get('secureFile')->addEventListener( |
| 131 | 131 | FormEvents::PRE_SET_DATA, |
| 132 | - function (FormEvent $event) { |
|
| 132 | + function(FormEvent $event) { |
|
| 133 | 133 | $attachment = $event->getForm()->getParent()->getData(); |
| 134 | 134 | if ($attachment instanceof Attachment) { |
| 135 | 135 | $event->setData($attachment->isSecure()); |
@@ -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(); |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | protected function configureOptions(OptionsResolver $resolver) |
| 44 | 44 | { |
| 45 | 45 | $resolver->setDefaults([ |
| 46 | - 'limit' => 15, //Given only 15 entries |
|
| 46 | + 'limit' => 15, //Given only 15 entries |
|
| 47 | 47 | //'allowed_extensions' => [], //Filter the filenames. For example ['jpg', 'jpeg'] to only get jpegs. |
| 48 | 48 | //'placeholders' => Attachment::BUILTIN_PLACEHOLDER, //By default use all builtin ressources, |
| 49 | 49 | 'empty_returns_all' => false, //Return the whole list of ressources when empty keyword is given |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | public function getListOfRessources(): array |
| 61 | 61 | { |
| 62 | 62 | try { |
| 63 | - return $this->cache->get('attachment_builtin_ressources', function () { |
|
| 63 | + return $this->cache->get('attachment_builtin_ressources', function() { |
|
| 64 | 64 | $results = []; |
| 65 | 65 | |
| 66 | 66 | $finder = new Finder(); |