forked from mirror/Part-DB.Part-DB-server
Apply symplify checkers.
This commit is contained in:
parent
d0b1024d80
commit
349ab706cc
6 changed files with 17 additions and 11 deletions
2
ecs.php
2
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, [
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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']);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -60,7 +60,7 @@ final class BarcodeContentGenerator
|
|||
'type' => $type,
|
||||
'id' => $target->getID() ?? 0,
|
||||
'_locale' => null,
|
||||
], UrlGeneratorInterface::ABSOLUTE_URL);
|
||||
], UrlGeneratorInterface::ABSOLUTE_URL);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue