Completed
Branch v1.x-dev (5c2708)
by Benjamin
04:14
created
src/Form/Player/InjuryType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,10 +14,10 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Helper/RuleHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -220,7 +220,7 @@
 block discarded – undo
220 220
      * @return RuleHelperInterface|null
221 221
      * @throws Exception
222 222
      */
223
-    private function getNotCachedHelper($key):?RuleHelperInterface
223
+    private function getNotCachedHelper($key): ?RuleHelperInterface
224 224
     {
225 225
         if (!isset($this->helpers[$key])) {
226 226
             throw new Exception('No RuleHelperInterface found for ' . $key);
Please login to merge, or discard this patch.
src/Service/ObblmContextualizer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
     {
15 15
     }
16 16
 
17
-    public function getRule():?RuleHelperInterface
17
+    public function getRule(): ?RuleHelperInterface
18 18
     {
19 19
         return $this->rule;
20 20
     }
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
         $this->rule = $rule;
25 25
     }
26 26
 
27
-    public function getTeam():?Team
27
+    public function getTeam(): ?Team
28 28
     {
29 29
         return $this->team;
30 30
     }
Please login to merge, or discard this patch.
src/Contracts/RuleHelperInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
     /**********
20 20
      * CACHING
21 21
      *********/
22
-    public function getAttachedRule():?Rule;
22
+    public function getAttachedRule(): ?Rule;
23 23
     public function setAttachedRule(Rule $rule):self;
24 24
 
25 25
     /***************
Please login to merge, or discard this patch.
src/Helper/Rule/Traits/AbstractTeamRuleTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@
 block discarded – undo
99 99
         return (bool) $roster->canHaveApothecary();
100 100
     }
101 101
 
102
-    public function calculateTeamRate(TeamVersion $version):?int
102
+    public function calculateTeamRate(TeamVersion $version): ?int
103 103
     {
104 104
         return $this->calculateTeamValue($version) / 10000;
105 105
     }
Please login to merge, or discard this patch.
src/Helper/Rule/Roster/AbstractRoster.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@
 block discarded – undo
92 92
     /**
93 93
      * @return array
94 94
      */
95
-    public function getInducementOptions():?array
95
+    public function getInducementOptions(): ?array
96 96
     {
97 97
         return $this->inducementOptions;
98 98
     }
Please login to merge, or discard this patch.
src/Entity/Rule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -263,7 +263,7 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
src/Entity/Team.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -189,7 +189,7 @@
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
src/DataTransformer/PlayerTeamCollectionTransformer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
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
             }
Please login to merge, or discard this patch.