Apply symplify checkers.

This commit is contained in:
Jan Böhmer 2020-08-21 21:38:31 +02:00
parent d0b1024d80
commit 349ab706cc
6 changed files with 17 additions and 11 deletions

View file

@ -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, [

View file

@ -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);

View file

@ -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

View file

@ -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']);
}
/**

View file

@ -60,7 +60,7 @@ final class BarcodeContentGenerator
'type' => $type,
'id' => $target->getID() ?? 0,
'_locale' => null,
], UrlGeneratorInterface::ABSOLUTE_URL);
], UrlGeneratorInterface::ABSOLUTE_URL);
}
/**