Skip to content

Commit 349ab70

Browse files
committed
Apply symplify checkers.
1 parent d0b1024 commit 349ab70

File tree

6 files changed

+17
-11
lines changed

6 files changed

+17
-11
lines changed

ecs.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
SetList::CLEAN_CODE,
1414
SetList::PSR_12,
1515
SetList::SYMFONY,
16-
//SetList::SYMPLIFY
16+
SetList::SYMPLIFY
1717
]);
1818

1919
$parameters->set(Option::PATHS, [

src/Controller/PartController.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -191,9 +191,9 @@ public function edit(Part $part, Request $request, EntityManagerInterface $em, T
191191

192192
return $this->render('Parts/edit/edit_part_info.html.twig',
193193
[
194-
'part' => $part,
194+
'part' => $part,
195195
'form' => $form->createView(),
196-
]);
196+
]);
197197
}
198198

199199
/**
@@ -315,8 +315,8 @@ public function new(Request $request, EntityManagerInterface $em, TranslatorInte
315315

316316
return $this->render('Parts/edit/new_part.html.twig',
317317
[
318-
'part' => $new_part,
318+
'part' => $new_part,
319319
'form' => $form->createView(),
320-
]);
320+
]);
321321
}
322322
}

src/Controller/PartListsController.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,8 @@ public function showSearch(Request $request, DataTableFactory $dataTable)
245245
];
246246

247247
$table = $dataTable->createFromType(PartsDataTable::class, [
248-
'search' => $search, 'search_options' => $search_options,
248+
'search' => $search,
249+
'search_options' => $search_options,
249250
])
250251
->handleRequest($request);
251252

src/Entity/UserSystem/U2FKey.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,10 @@
5050
/**
5151
* @ORM\Entity
5252
* @ORM\Table(name="u2f_keys",
53-
* uniqueConstraints={@ORM\UniqueConstraint(name="user_unique",columns={"user_id",
54-
* "key_handle"})})
53+
* uniqueConstraints={
54+
* @ORM\UniqueConstraint(name="user_unique",columns={"user_id",
55+
* "key_handle"})
56+
* })
5557
* @ORM\HasLifecycleCallbacks()
5658
*/
5759
class U2FKey implements TwoFactorKeyInterface

src/Repository/LabelProfileRepository.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,10 @@ public function getDropdownProfiles(string $type): array
3939
throw new \InvalidArgumentException('Invalid supported_element type given.');
4040
}
4141

42-
return $this->findBy(['options.supported_element' => $type, 'show_in_dropdown' => true], ['name' => 'ASC']);
42+
return $this->findBy([
43+
'options.supported_element' => $type,
44+
'show_in_dropdown' => true,
45+
], ['name' => 'ASC']);
4346
}
4447

4548
/**

src/Services/LabelSystem/Barcodes/BarcodeContentGenerator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@ public function getURLContent(AbstractDBElement $target): string
5757
$type = $this->classToString(self::URL_MAP, $target);
5858

5959
return $this->urlGenerator->generate('scan_qr', [
60-
'type' => $type,
60+
'type' => $type,
6161
'id' => $target->getID() ?? 0,
6262
'_locale' => null,
63-
], UrlGeneratorInterface::ABSOLUTE_URL);
63+
], UrlGeneratorInterface::ABSOLUTE_URL);
6464
}
6565

6666
/**

0 commit comments

Comments
 (0)