Passed
Push — master ( d9f7c4...0d8198 )
by Jakub
02:57
created
src/Pet.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace HeroesofAbenez\Combat;
5 5
 
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
   protected $bonusValue;
36 36
   
37 37
   public function __construct(array $data) {
38
-    $allStats = ["id", "deployed", "bonusStat", "bonusValue",];
38
+    $allStats = ["id", "deployed", "bonusStat", "bonusValue", ];
39 39
     $resolver = new OptionsResolver();
40 40
     $resolver->setRequired($allStats);
41 41
     $resolver->setAllowedTypes("id", "integer");
Please login to merge, or discard this patch.
src/CharacterEffect.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace HeroesofAbenez\Combat;
5 5
 
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
   protected $duration;
41 41
   
42 42
   public function __construct(array $effect) {
43
-    $allStats = ["id", "type", "source", "value", "duration", "stat",];
43
+    $allStats = ["id", "type", "source", "value", "duration", "stat", ];
44 44
     $resolver = new OptionsResolver();
45 45
     $resolver->setRequired($allStats);
46 46
     $resolver->setAllowedTypes("id", "string");
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
   
78 78
   protected function getAllowedStats(): array {
79 79
     $stats = Constants::getConstantsValues(SkillSpecial::class, "STAT_");
80
-    $stats = array_merge($stats, ["strength", "dexterity", "constitution", "intelligence", "charisma",]);
80
+    $stats = array_merge($stats, ["strength", "dexterity", "constitution", "intelligence", "charisma", ]);
81 81
     return $stats;
82 82
   }
83 83
   
Please login to merge, or discard this patch.
src/CombatAction.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace HeroesofAbenez\Combat;
5 5
 
@@ -46,9 +46,9 @@  discard block
 block discarded – undo
46 46
   protected $message;
47 47
   
48 48
   public function __construct(ITranslator $translator, array $action) {
49
-    $requiredStats = ["action", "result", "character1", "character2",];
49
+    $requiredStats = ["action", "result", "character1", "character2", ];
50 50
     $resolver = new OptionsResolver();
51
-    $resolver->setDefined(["amount", "name",]);
51
+    $resolver->setDefined(["amount", "name", ]);
52 52
     $resolver->setRequired($requiredStats);
53 53
     $resolver->setAllowedTypes("action", "string");
54 54
     $resolver->setAllowedValues("action", function(string $value) {
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
         $text = $this->translator->translate("combat.log.poison", $this->amount, ["character1" => $character1]);
151 151
         break;
152 152
     }
153
-    $this->message =  $text;
153
+    $this->message = $text;
154 154
   }
155 155
   
156 156
   public function __toString(): string {
Please login to merge, or discard this patch.
src/Equipment.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace HeroesofAbenez\Combat;
5 5
 
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
   protected $worn;
51 51
   
52 52
   public function __construct(array $data) {
53
-    $allStats = ["id", "name", "slot", "type", "strength", "worn",];
53
+    $allStats = ["id", "name", "slot", "type", "strength", "worn", ];
54 54
     $resolver = new OptionsResolver();
55 55
     $resolver->setRequired($allStats);
56 56
     $resolver->setAllowedTypes("id", "integer");
Please login to merge, or discard this patch.