Completed
Branch v1.x-dev (48843d)
by Benjamin
06:26
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/Validator/Constraints/TeamValue.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,6 +13,6 @@
 block discarded – undo
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
 }
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/Validator/Constraints/TeamComposition.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,6 +13,6 @@
 block discarded – undo
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
 }
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/Validator/Constraints/InducementsAmount.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,6 +13,6 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Validator/Constraints/InducementsQuantity.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,6 +13,6 @@
 block discarded – undo
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
 }
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/AbstractRuleHelper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
      * CACHING
68 68
      *********/
69 69
 
70
-    public function getAttachedRule():?Rule
70
+    public function getAttachedRule(): ?Rule
71 71
     {
72 72
         return $this->attachedRule;
73 73
     }
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
         return $weather;
132 132
     }
133 133
 
134
-    public function createInducementAsPlayer(InducementInterface $inducement, $number = 0):?Player
134
+    public function createInducementAsPlayer(InducementInterface $inducement, $number = 0): ?Player
135 135
     {
136 136
         if (!$inducement instanceof StarPlayer) {
137 137
             return null;
Please login to merge, or discard this patch.