@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | protected function askUsername():string |
| 56 | 56 | { |
| 57 | 57 | $coachRepository = $this->em->getRepository(Coach::class); |
| 58 | - return $this->io->ask('User login', null, function ($username) use ($coachRepository) { |
|
| 58 | + return $this->io->ask('User login', null, function($username) use ($coachRepository) { |
|
| 59 | 59 | if (empty($username)) { |
| 60 | 60 | throw new \RuntimeException('The login cannot be empty.'); |
| 61 | 61 | } |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | protected function askEmail():string |
| 70 | 70 | { |
| 71 | 71 | $coachRepository = $this->em->getRepository(Coach::class); |
| 72 | - return $this->io->ask('User email', null, function ($email) use ($coachRepository) { |
|
| 72 | + return $this->io->ask('User email', null, function($email) use ($coachRepository) { |
|
| 73 | 73 | if (empty($email)) { |
| 74 | 74 | throw new \RuntimeException('The email cannot be empty.'); |
| 75 | 75 | } |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | |
| 83 | 83 | protected function askPassword():string |
| 84 | 84 | { |
| 85 | - $password = $this->io->askHidden('User password', function ($password) { |
|
| 85 | + $password = $this->io->askHidden('User password', function($password) { |
|
| 86 | 86 | if (empty($password)) { |
| 87 | 87 | throw new \RuntimeException('Password cannot be empty.'); |
| 88 | 88 | } |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | |
| 117 | 117 | $coachRepository = $this->em->getRepository(Coach::class); |
| 118 | 118 | if ($choice === 'login') { |
| 119 | - return $this->io->ask('User login', null, function ($username) use ($coachRepository) { |
|
| 119 | + return $this->io->ask('User login', null, function($username) use ($coachRepository) { |
|
| 120 | 120 | if (empty($username)) { |
| 121 | 121 | throw new \RuntimeException('The login cannot be empty.'); |
| 122 | 122 | } |
@@ -127,7 +127,7 @@ discard block |
||
| 127 | 127 | return $coach; |
| 128 | 128 | }); |
| 129 | 129 | } |
| 130 | - return $this->io->ask('User email', null, function ($email) use ($coachRepository) { |
|
| 130 | + return $this->io->ask('User email', null, function($email) use ($coachRepository) { |
|
| 131 | 131 | if (empty($email)) { |
| 132 | 132 | throw new \RuntimeException('The email cannot be empty.'); |
| 133 | 133 | } |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | ->add('email') |
| 24 | 24 | ->add('locale', ChoiceType::class, [ |
| 25 | 25 | 'choices' => $this->availableLocales, |
| 26 | - 'choice_label' => function ($choice, $key, $value) { |
|
| 26 | + 'choice_label' => function($choice, $key, $value) { |
|
| 27 | 27 | return 'obblm.locales.' . $value; |
| 28 | 28 | }, |
| 29 | 29 | 'choice_translation_domain' => 'obblm' |
@@ -167,7 +167,7 @@ |
||
| 167 | 167 | return $this->getInducementTable()->matching($criteria)->toArray(); |
| 168 | 168 | } |
| 169 | 169 | |
| 170 | - public function createInducementAsPlayer(InducementInterface $inducement, $number = 0):?Player |
|
| 170 | + public function createInducementAsPlayer(InducementInterface $inducement, $number = 0): ?Player |
|
| 171 | 171 | { |
| 172 | 172 | if (!$inducement instanceof StarPlayer) { |
| 173 | 173 | return null; |
@@ -42,7 +42,7 @@ |
||
| 42 | 42 | * CACHING |
| 43 | 43 | *********/ |
| 44 | 44 | |
| 45 | - public function getAttachedRule():?Rule |
|
| 45 | + public function getAttachedRule(): ?Rule |
|
| 46 | 46 | { |
| 47 | 47 | return $this->attachedRule; |
| 48 | 48 | } |
@@ -13,6 +13,6 @@ |
||
| 13 | 13 | |
| 14 | 14 | public function validatedBy() |
| 15 | 15 | { |
| 16 | - return get_class($this).'Validator'; |
|
| 16 | + return get_class($this) . 'Validator'; |
|
| 17 | 17 | } |
| 18 | 18 | } |
@@ -13,6 +13,6 @@ |
||
| 13 | 13 | |
| 14 | 14 | public function validatedBy() |
| 15 | 15 | { |
| 16 | - return get_class($this).'Validator'; |
|
| 16 | + return get_class($this) . 'Validator'; |
|
| 17 | 17 | } |
| 18 | 18 | } |
@@ -13,6 +13,6 @@ |
||
| 13 | 13 | |
| 14 | 14 | public function validatedBy() |
| 15 | 15 | { |
| 16 | - return get_class($this).'Validator'; |
|
| 16 | + return get_class($this) . 'Validator'; |
|
| 17 | 17 | } |
| 18 | 18 | } |
@@ -189,7 +189,7 @@ |
||
| 189 | 189 | foreach ($newPlayerList as $player) { |
| 190 | 190 | $usedNumbers[$player->getNumber()] = $player; |
| 191 | 191 | } |
| 192 | - for ($i=1; $i<=16; $i++) { |
|
| 192 | + for ($i = 1; $i <= 16; $i++) { |
|
| 193 | 193 | if (!isset($usedNumbers[$i])) { |
| 194 | 194 | $newPlayerList->add((new Player())->setNumber($i)); |
| 195 | 195 | } |
@@ -89,7 +89,7 @@ |
||
| 89 | 89 | |
| 90 | 90 | $creationOptions = $viewData->getCreationOptions(); |
| 91 | 91 | if (isset($forms['inducements'])) { |
| 92 | - $inducements = array_map(function (InducementInterface $inducement) { |
|
| 92 | + $inducements = array_map(function(InducementInterface $inducement) { |
|
| 93 | 93 | return $inducement->getKey(); |
| 94 | 94 | }, $forms['inducements']->getData()); |
| 95 | 95 | $creationOptions['inducements'] = $inducements; |