Completed
Branch develop (598d0f)
by Benjamin
03:23
created
src/Form/Team/TeamType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
         foreach ($new_player_list as $player) {
66 66
             $used_numbers[$player->getNumber()] = $player;
67 67
         }
68
-        for ($i=1; $i<=16; $i++) {
68
+        for ($i = 1; $i <= 16; $i++) {
69 69
             if (!isset($used_numbers[$i])) {
70 70
                 $new_player_list->add((new Player())->setNumber($i));
71 71
             }
Please login to merge, or discard this patch.
src/Contracts/Rule/TeamRuleInterface.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,8 +13,8 @@
 block discarded – undo
13 13
 {
14 14
     public function getAvailableRosters():ArrayCollection;
15 15
     public function getInjuriesTable():array;
16
-    public function calculateTeamValue(TeamVersion $version, bool $excludeDisposable = false):?int;
17
-    public function calculateTeamRate(TeamVersion $version):?int;
16
+    public function calculateTeamValue(TeamVersion $version, bool $excludeDisposable = false): ?int;
17
+    public function calculateTeamRate(TeamVersion $version): ?int;
18 18
     public function getMaxTeamCost():int;
19 19
     public function getRerollCost(Team $team):int;
20 20
     public function getApothecaryCost(Team $team):int;
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($key):?object;
15
+    public function getInjury($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, $context = null):?ArrayCollection;
22
+    public function getSppLevel(PlayerVersion $version): ?string;
23
+    public function getContextForRoll(array $roll): ?array;
24
+    public function getAvailableSkills(?PlayerVersion $version, $context = null): ?ArrayCollection;
25 25
 }
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/DependencyInjection/ObblmCoreExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
                 $config = array_merge($config, $subConfig);
33 33
             }
34 34
         }
35
-        $locator = new FileLocator(dirname(__DIR__).'/Resources/config');
35
+        $locator = new FileLocator(dirname(__DIR__) . '/Resources/config');
36 36
         $loader = new YamlFileLoader($container, $locator);
37 37
         $loader->load('services.yaml');
38 38
 
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
             $used_numbers[$player->getNumber()] = $player;
30 30
         }
31
-        for ($i=1; $i<=16; $i++) {
31
+        for ($i = 1; $i <= 16; $i++) {
32 32
             if (!isset($used_numbers[$i])) {
33 33
                 $value->addPlayer((new Player())->setNumber($i));
34 34
             }
Please login to merge, or discard this patch.
src/Helper/RuleHelper.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -143,8 +143,7 @@
 block discarded – undo
143 143
     {
144 144
         if ($item instanceof CanHaveRuleInterface) {
145 145
             $rule = $item->getRule();
146
-        }
147
-        else {
146
+        } else {
148 147
             $rule = $item;
149 148
         }
150 149
         $key = $this->getCacheKey($rule);
Please login to merge, or discard this patch.