@@ -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, [ |
@@ -225,7 +225,7 @@ |
||
| 225 | 225 | * @Route("/{id}/clone", name="part_clone") |
| 226 | 226 | */ |
| 227 | 227 | public function new(Request $request, EntityManagerInterface $em, TranslatorInterface $translator, |
| 228 | - AttachmentSubmitHandler $attachmentSubmitHandler, ?Part $part = null): Response |
|
| 228 | + AttachmentSubmitHandler $attachmentSubmitHandler, ?Part $part = null) : Response |
|
| 229 | 229 | { |
| 230 | 230 | if (null === $part) { |
| 231 | 231 | $new_part = new Part(); |
@@ -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 | } |
@@ -148,7 +148,7 @@ |
||
| 148 | 148 | * @Route("/{id}/clone", name="user_clone") |
| 149 | 149 | * @Route("/") |
| 150 | 150 | */ |
| 151 | - public function new(Request $request, EntityManagerInterface $em, EntityImporter $importer, ?User $entity = null): Response |
|
| 151 | + public function new(Request $request, EntityManagerInterface $em, EntityImporter $importer, ?User $entity = null) : Response |
|
| 152 | 152 | { |
| 153 | 153 | return $this->_new($request, $em, $importer, $entity); |
| 154 | 154 | } |
@@ -164,7 +164,7 @@ |
||
| 164 | 164 | * @Route("/{id}/clone", name="currency_clone") |
| 165 | 165 | * @Route("/") |
| 166 | 166 | */ |
| 167 | - public function new(Request $request, EntityManagerInterface $em, EntityImporter $importer, ?Currency $entity = null): Response |
|
| 167 | + public function new(Request $request, EntityManagerInterface $em, EntityImporter $importer, ?Currency $entity = null) : Response |
|
| 168 | 168 | { |
| 169 | 169 | return $this->_new($request, $em, $importer, $entity); |
| 170 | 170 | } |
@@ -89,7 +89,7 @@ |
||
| 89 | 89 | * @Route("/{id}/clone", name="device_clone") |
| 90 | 90 | * @Route("/") |
| 91 | 91 | */ |
| 92 | - public function new(Request $request, EntityManagerInterface $em, EntityImporter $importer, ?Device $entity = null): Response |
|
| 92 | + public function new(Request $request, EntityManagerInterface $em, EntityImporter $importer, ?Device $entity = null) : Response |
|
| 93 | 93 | { |
| 94 | 94 | return $this->_new($request, $em, $importer, $entity); |
| 95 | 95 | } |
@@ -90,7 +90,7 @@ |
||
| 90 | 90 | * @Route("/{id}/clone", name="attachment_type_clone") |
| 91 | 91 | * @Route("/") |
| 92 | 92 | */ |
| 93 | - public function new(Request $request, EntityManagerInterface $em, EntityImporter $importer, ?AttachmentType $entity = null): Response |
|
| 93 | + public function new(Request $request, EntityManagerInterface $em, EntityImporter $importer, ?AttachmentType $entity = null) : Response |
|
| 94 | 94 | { |
| 95 | 95 | return $this->_new($request, $em, $importer, $entity); |
| 96 | 96 | } |
@@ -92,7 +92,7 @@ |
||
| 92 | 92 | * @Route("/{id}/clone", name="manufacturer_clone") |
| 93 | 93 | * @Route("/") |
| 94 | 94 | */ |
| 95 | - public function new(Request $request, EntityManagerInterface $em, EntityImporter $importer, ?Manufacturer $entity = null): Response |
|
| 95 | + public function new(Request $request, EntityManagerInterface $em, EntityImporter $importer, ?Manufacturer $entity = null) : Response |
|
| 96 | 96 | { |
| 97 | 97 | return $this->_new($request, $em, $importer, $entity); |
| 98 | 98 | } |