diff --git a/ecs.php b/ecs.php index 8c9ba07b..37aa521a 100644 --- a/ecs.php +++ b/ecs.php @@ -13,7 +13,7 @@ return static function (ContainerConfigurator $containerConfigurator): void { SetList::CLEAN_CODE, SetList::PSR_12, SetList::SYMFONY, - //SetList::SYMPLIFY + SetList::SYMPLIFY ]); $parameters->set(Option::PATHS, [ diff --git a/src/Controller/PartController.php b/src/Controller/PartController.php index 7f3b1c5b..06b82b62 100644 --- a/src/Controller/PartController.php +++ b/src/Controller/PartController.php @@ -191,9 +191,9 @@ class PartController extends AbstractController return $this->render('Parts/edit/edit_part_info.html.twig', [ - 'part' => $part, + 'part' => $part, 'form' => $form->createView(), - ]); + ]); } /** @@ -315,8 +315,8 @@ class PartController extends AbstractController return $this->render('Parts/edit/new_part.html.twig', [ - 'part' => $new_part, + 'part' => $new_part, 'form' => $form->createView(), - ]); + ]); } } diff --git a/src/Controller/PartListsController.php b/src/Controller/PartListsController.php index 3d4d339e..ce5e9495 100644 --- a/src/Controller/PartListsController.php +++ b/src/Controller/PartListsController.php @@ -245,7 +245,8 @@ class PartListsController extends AbstractController ]; $table = $dataTable->createFromType(PartsDataTable::class, [ - 'search' => $search, 'search_options' => $search_options, + 'search' => $search, + 'search_options' => $search_options, ]) ->handleRequest($request); diff --git a/src/Entity/UserSystem/U2FKey.php b/src/Entity/UserSystem/U2FKey.php index a8cb4950..000c062b 100644 --- a/src/Entity/UserSystem/U2FKey.php +++ b/src/Entity/UserSystem/U2FKey.php @@ -50,8 +50,10 @@ use u2flib_server\Registration; /** * @ORM\Entity * @ORM\Table(name="u2f_keys", - * uniqueConstraints={@ORM\UniqueConstraint(name="user_unique",columns={"user_id", - * "key_handle"})}) + * uniqueConstraints={ + * @ORM\UniqueConstraint(name="user_unique",columns={"user_id", + * "key_handle"}) + * }) * @ORM\HasLifecycleCallbacks() */ class U2FKey implements TwoFactorKeyInterface diff --git a/src/Repository/LabelProfileRepository.php b/src/Repository/LabelProfileRepository.php index ad31d727..4f6709fd 100644 --- a/src/Repository/LabelProfileRepository.php +++ b/src/Repository/LabelProfileRepository.php @@ -39,7 +39,10 @@ class LabelProfileRepository extends NamedDBElementRepository throw new \InvalidArgumentException('Invalid supported_element type given.'); } - return $this->findBy(['options.supported_element' => $type, 'show_in_dropdown' => true], ['name' => 'ASC']); + return $this->findBy([ + 'options.supported_element' => $type, + 'show_in_dropdown' => true, + ], ['name' => 'ASC']); } /** diff --git a/src/Services/LabelSystem/Barcodes/BarcodeContentGenerator.php b/src/Services/LabelSystem/Barcodes/BarcodeContentGenerator.php index 92452a8c..c2819377 100644 --- a/src/Services/LabelSystem/Barcodes/BarcodeContentGenerator.php +++ b/src/Services/LabelSystem/Barcodes/BarcodeContentGenerator.php @@ -57,10 +57,10 @@ final class BarcodeContentGenerator $type = $this->classToString(self::URL_MAP, $target); return $this->urlGenerator->generate('scan_qr', [ - 'type' => $type, + 'type' => $type, 'id' => $target->getID() ?? 0, '_locale' => null, - ], UrlGeneratorInterface::ABSOLUTE_URL); +], UrlGeneratorInterface::ABSOLUTE_URL); } /**