mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 07:03:49 +00:00
cs: Fix code-style (using PHPCSFixer and PHPCS).
This commit is contained in:
@@ -16,6 +16,7 @@ use Chill\PersonBundle\Repository\PersonRepository;
|
||||
use RuntimeException;
|
||||
use Symfony\Component\Form\ChoiceList\ChoiceListInterface;
|
||||
use Symfony\Component\Form\ChoiceList\Loader\ChoiceLoaderInterface;
|
||||
|
||||
use function call_user_func;
|
||||
use function count;
|
||||
use function in_array;
|
||||
@@ -76,8 +77,10 @@ class PersonChoiceLoader implements ChoiceLoaderInterface
|
||||
|
||||
$person = $this->personRepository->find($value);
|
||||
|
||||
if ($this->hasCenterFilter()
|
||||
&& !in_array($person->getCenter(), $this->centers, true)) {
|
||||
if (
|
||||
$this->hasCenterFilter()
|
||||
&& !in_array($person->getCenter(), $this->centers, true)
|
||||
) {
|
||||
throw new RuntimeException('chosen a person not in correct center');
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user