Skip to content

Commit

Permalink
Fix CI CS job
Browse files Browse the repository at this point in the history
  • Loading branch information
pyrech committed Dec 11, 2024
1 parent 3984031 commit 7b8619f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,4 @@ jobs:
run: castor qa:phpstan

- name: "Run PHP-CS-Fixer"
run: castor qa:cs
run: castor qa:cs --dry-run
2 changes: 1 addition & 1 deletion src/Controller/SantaController.php
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ public function validate(Rudolph $rudolph, FormFactoryInterface $formFactory, Sp
$config = $this->getConfigOrThrow404($request);

if (!$config->getShuffledUsers()) {
if (count($config->getSelectedUsers()) < 2) {
if (\count($config->getSelectedUsers()) < 2) {
return new RedirectResponse($this->router->generate('participants', ['application' => $application->getCode()]));
}
$config->setShuffledUsers($rudolph->associateUsers($config->getSelectedUsers()));
Expand Down

0 comments on commit 7b8619f

Please sign in to comment.