@@ -263,7 +263,7 @@ |
||
263 | 263 | return (isset($this->injuryTable[$value])) ? array( |
264 | 264 | 'key_name' => $this->injuryTable[$value], |
265 | 265 | 'effect' => $this->getInjuryEffect($this->injuryTable[$value]) |
266 | - ) : false ; |
|
266 | + ) : false; |
|
267 | 267 | } |
268 | 268 | |
269 | 269 | /** |
@@ -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 | } |
@@ -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 | } |
@@ -28,7 +28,7 @@ |
||
28 | 28 | foreach ($value->getPlayers() as $player) { |
29 | 29 | $usedNumbers[$player->getNumber()] = $player; |
30 | 30 | } |
31 | - for ($i=1; $i<=16; $i++) { |
|
31 | + for ($i = 1; $i <= 16; $i++) { |
|
32 | 32 | if (!isset($usedNumbers[$i])) { |
33 | 33 | $value->addPlayer((new Player())->setNumber($i)); |
34 | 34 | } |
@@ -14,10 +14,10 @@ |
||
14 | 14 | /** @var RuleHelperInterface $helper */ |
15 | 15 | $helper = $options['rule_helper']; |
16 | 16 | $injuries = $helper->getInjuriesTable(); |
17 | - $options['choices'] = array_map(function ($injury) { |
|
17 | + $options['choices'] = array_map(function($injury) { |
|
18 | 18 | return $injury->value; |
19 | 19 | }, $injuries); |
20 | - $options['choice_value'] = function ($choice) { |
|
20 | + $options['choice_value'] = function($choice) { |
|
21 | 21 | return $choice; |
22 | 22 | }; |
23 | 23 | parent::buildForm($builder, $options); |
@@ -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 | } |
@@ -12,7 +12,7 @@ |
||
12 | 12 | parent::__construct($this->getVersionMessage($on)); |
13 | 13 | } |
14 | 14 | |
15 | - private function getVersionMessage(object $on):?string |
|
15 | + private function getVersionMessage(object $on): ?string |
|
16 | 16 | { |
17 | 17 | if ($on instanceof Team) { |
18 | 18 | return "No version available for team : " . $on->getName(); |