@@ -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 |
@@ -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 |
@@ -51,7 +51,7 @@ |
||
51 | 51 | /** @var LabelProfileRepository $repo */ |
52 | 52 | $repo = $this->entityManager->getRepository(LabelProfile::class); |
53 | 53 | |
54 | - return $this->cache->get($key, function (ItemInterface $item) use ($repo, $type, $secure_class_name) { |
|
54 | + return $this->cache->get($key, function(ItemInterface $item) use ($repo, $type, $secure_class_name) { |
|
55 | 55 | // Invalidate when groups, a element with the class or the user changes |
56 | 56 | $item->tag(['groups', 'tree_treeview', $this->keyGenerator->generateKey(), $secure_class_name]); |
57 | 57 |
@@ -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, [ |
@@ -83,7 +83,7 @@ |
||
83 | 83 | * @Route("/{id}/clone", name="group_clone") |
84 | 84 | * @Route("/") |
85 | 85 | */ |
86 | - public function new(Request $request, EntityManagerInterface $em, EntityImporter $importer, ?Group $entity = null): Response |
|
86 | + public function new(Request $request, EntityManagerInterface $em, EntityImporter $importer, ?Group $entity = null) : Response |
|
87 | 87 | { |
88 | 88 | return $this->_new($request, $em, $importer, $entity); |
89 | 89 | } |