@@ -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 |
@@ -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) { |
@@ -77,7 +77,7 @@ |
||
77 | 77 | { |
78 | 78 | $key = 'tree_tools_'.$this->keyGenerator->generateKey(); |
79 | 79 | |
80 | - return $this->cache->get($key, function (ItemInterface $item) { |
|
80 | + return $this->cache->get($key, function(ItemInterface $item) { |
|
81 | 81 | //Invalidate tree, whenever group or the user changes |
82 | 82 | $item->tag(['tree_tools', 'groups', $this->keyGenerator->generateKey()]); |
83 | 83 |
@@ -63,7 +63,7 @@ |
||
63 | 63 | $secure_class_name = str_replace('\\', '_', $class_name); |
64 | 64 | $key = 'list_'.$this->keyGenerator->generateKey().'_'.$secure_class_name.$parent_id; |
65 | 65 | |
66 | - return $this->cache->get($key, function (ItemInterface $item) use ($class_name, $parent, $secure_class_name) { |
|
66 | + return $this->cache->get($key, function(ItemInterface $item) use ($class_name, $parent, $secure_class_name) { |
|
67 | 67 | // Invalidate when groups, a element with the class or the user changes |
68 | 68 | $item->tag(['groups', 'tree_list', $this->keyGenerator->generateKey(), $secure_class_name]); |
69 | 69 | /** @var StructuralDBElementRepository */ |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | public function getListOfRessources(): array |
54 | 54 | { |
55 | 55 | try { |
56 | - return $this->cache->get('attachment_builtin_ressources', function () { |
|
56 | + return $this->cache->get('attachment_builtin_ressources', function() { |
|
57 | 57 | $results = []; |
58 | 58 | |
59 | 59 | $finder = new Finder(); |
@@ -135,7 +135,7 @@ discard block |
||
135 | 135 | protected function configureOptions(OptionsResolver $resolver): void |
136 | 136 | { |
137 | 137 | $resolver->setDefaults([ |
138 | - 'limit' => 15, //Given only 15 entries |
|
138 | + 'limit' => 15, //Given only 15 entries |
|
139 | 139 | //'allowed_extensions' => [], //Filter the filenames. For example ['jpg', 'jpeg'] to only get jpegs. |
140 | 140 | //'placeholders' => Attachment::BUILTIN_PLACEHOLDER, //By default use all builtin ressources, |
141 | 141 | 'empty_returns_all' => false, //Return the whole list of ressources when empty keyword is given |
@@ -59,7 +59,7 @@ |
||
59 | 59 | public function targetTypeDataProvider(): array |
60 | 60 | { |
61 | 61 | return [ |
62 | - [1, User::class], |
|
62 | + [1, User::class], |
|
63 | 63 | [2, Attachment::class], |
64 | 64 | [3, AttachmentType::class], |
65 | 65 | [4, Category::class], |
@@ -176,7 +176,6 @@ |
||
176 | 176 | |
177 | 177 | /** |
178 | 178 | * Get the comment of the element. |
179 | - |
|
180 | 179 | * |
181 | 180 | * @return string the comment |
182 | 181 | */ |
@@ -75,7 +75,7 @@ |
||
75 | 75 | |
76 | 76 | public function buildForm(FormBuilderInterface $builder, array $options): void |
77 | 77 | { |
78 | - $builder->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) use ($options): void { |
|
78 | + $builder->addEventListener(FormEvents::PRE_SET_DATA, function(FormEvent $event) use ($options): void { |
|
79 | 79 | $data = $event->getData(); |
80 | 80 | $config = $event->getForm()->getConfig(); |
81 | 81 | //If enabled do a reindexing of the collection |