Completed
Branch develop (defee6)
by Benjamin
06:13
created
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/Traits/AbstractPlayerRuleTrait.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
      * @return object|null
86 86
      * @throws \Exception
87 87
      */
88
-    public function getInjury($key):?object
88
+    public function getInjury($key): ?object
89 89
     {
90 90
         if (!$this->getInjuries()->containsKey($key)) {
91 91
             throw new \Exception('No Injury found for ' . $key);
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
      * @param PlayerVersion $version
102 102
      * @return string|null
103 103
      */
104
-    public function getSppLevel(PlayerVersion $version):?string
104
+    public function getSppLevel(PlayerVersion $version): ?string
105 105
     {
106 106
         if ($version->getSpp() && $version->getSpp() > 0) {
107 107
             if ($this->getSppLevels()->containsKey($version->getSpp())) {
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
         return $this->getSppLevels()->first();
114 114
     }
115 115
 
116
-    public function getContextForRoll(array $roll):?array
116
+    public function getContextForRoll(array $roll): ?array
117 117
     {
118 118
         $context = null;
119 119
         if (isset($roll['d6_1']) && isset($roll['d6_2'])) {
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
         return $context;
138 138
     }
139 139
 
140
-    public function getAvailableSkills(?PlayerVersion $version, $context = ['single', 'double']):?ArrayCollection
140
+    public function getAvailableSkills(?PlayerVersion $version, $context = ['single', 'double']): ?ArrayCollection
141 141
     {
142 142
         $criteria = Criteria::create();
143 143
         if ($version) {
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.
src/Exception/NoVersionException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
src/Contracts/Rule/PlayerRuleInterface.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -10,16 +10,16 @@
 block discarded – undo
10 10
  ****************/
11 11
 interface PlayerRuleInterface
12 12
 {
13
-    public function setPlayerDefaultValues(PlayerVersion $version):?PlayerVersion;
13
+    public function setPlayerDefaultValues(PlayerVersion $version): ?PlayerVersion;
14 14
     public function playerIsDisposable(PlayerVersion $playerVersion):bool;
15
-    public function getInjury(string $key):?object;
15
+    public function getInjury(string $key): ?object;
16 16
     public function getAvailablePlayerKeyTypes(string $roster):array;
17 17
     public function getAvailablePlayerTypes(string $roster):array;
18 18
 
19 19
     /**************************
20 20
      * PLAYER EVOLUTION METHOD
21 21
      *************************/
22
-    public function getSppLevel(PlayerVersion $version):?string;
23
-    public function getContextForRoll(array $roll):?array;
24
-    public function getAvailableSkills(?PlayerVersion $version, array $context = null):?ArrayCollection;
22
+    public function getSppLevel(PlayerVersion $version): ?string;
23
+    public function getContextForRoll(array $roll): ?array;
24
+    public function getAvailableSkills(?PlayerVersion $version, array $context = null): ?ArrayCollection;
25 25
 }
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/Security/ObblmAuthenticator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@
 block discarded – undo
100 100
             return new RedirectResponse($request->request->get('_target_path'));
101 101
         }
102 102
         // For example : return new RedirectResponse($this->urlGenerator->generate('some_route'));
103
-        throw new Exception('TODO: provide a valid redirect inside '.__FILE__);
103
+        throw new Exception('TODO: provide a valid redirect inside ' . __FILE__);
104 104
     }
105 105
 
106 106
     protected function getLoginUrl()
Please login to merge, or discard this patch.