Passed
Push — master ( 465240...c8cc94 )
by Jakub
02:15
created
src/Team.php 1 patch
Upper-Lower-Casing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -77,11 +77,11 @@
 block discarded – undo
77 77
    */
78 78
   public function setCharacterPosition($id, int $row, int $column): void {
79 79
     if(!$this->hasItems(["id" => $id])) {
80
-      throw new \OutOfBoundsException("Character $id is not in the team");
80
+      throw new \OutOfBoundsException("character $id is not in the team");
81 81
     } elseif(count($this->getItems(["positionRow" => $row])) >= $this->maxRowSize) {
82
-      throw new InvalidCharacterPositionException("Row $row is full.", InvalidCharacterPositionException::ROW_FULL);
82
+      throw new InvalidCharacterPositionException("row $row is full.", InvalidCharacterPositionException::ROW_FULL);
83 83
     } elseif($this->hasItems(["positionRow" => $row, "positionColumn" => $column])) {
84
-      throw new InvalidCharacterPositionException("Row $row column $column is occupied.", InvalidCharacterPositionException::POSITION_OCCUPIED);
84
+      throw new InvalidCharacterPositionException("row $row column $column is occupied.", InvalidCharacterPositionException::POSITION_OCCUPIED);
85 85
     }
86 86
     $character = $this->getItems(["id" => $id])[0];
87 87
     $character->positionRow = $row;
Please login to merge, or discard this patch.
src/TextCombatLogRender.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
    */
33 33
   protected function setTemplate(string $template): void {
34 34
     if(!is_file($template)) {
35
-      throw new \RuntimeException("File $template does not exist.");
35
+      throw new \RuntimeException("file $template does not exist.");
36 36
     }
37 37
     $this->template = $template;
38 38
   }
Please login to merge, or discard this patch.
tests/HeroesofAbenez/Combat/RandomSuccessCalculatorTest.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
   
21 21
   protected function generateCharacter(int $id): Character {
22 22
     $stats = [
23
-      "id" => $id, "name" => "Player $id", "level" => 1, "initiativeFormula" => "1d2+DEX/4", "strength" => 10,
23
+      "id" => $id, "name" => "player $id", "level" => 1, "initiativeFormula" => "1d2+DEX/4", "strength" => 10,
24 24
       "dexterity" => 10, "constitution" => 10, "intelligence" => 10, "charisma" => 10
25 25
     ];
26 26
     return new Character($stats);
Please login to merge, or discard this patch.
tests/HeroesofAbenez/Combat/InitiativeFormulaParserTest.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
 final class InitiativeFormulaParserTest extends \Tester\TestCase {
15 15
   protected function generateCharacter(int $id): Character {
16 16
     $stats = [
17
-      "id" => $id, "name" => "Player $id", "level" => 1, "initiativeFormula" => "1d4+DEX/4", "strength" => 10,
17
+      "id" => $id, "name" => "player $id", "level" => 1, "initiativeFormula" => "1d4+DEX/4", "strength" => 10,
18 18
       "dexterity" => 12, "constitution" => 10, "intelligence" => 10, "charisma" => 10
19 19
     ];
20 20
     return new Character($stats);
Please login to merge, or discard this patch.
tests/HeroesofAbenez/Combat/TeamTest.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
 final class TeamTest extends \Tester\TestCase {
15 15
   protected function generateCharacter(int $id): Character {
16 16
     $stats = [
17
-      "id" => $id, "name" => "Player $id", "level" => 1, "initiativeFormula" => "1d2+DEX/4", "strength" => 10,
17
+      "id" => $id, "name" => "player $id", "level" => 1, "initiativeFormula" => "1d2+DEX/4", "strength" => 10,
18 18
       "dexterity" => 10, "constitution" => 10, "intelligence" => 10, "charisma" => 10
19 19
     ];
20 20
     return new Character($stats);
Please login to merge, or discard this patch.
tests/HeroesofAbenez/Combat/CharacterEffectTest.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
 final class CharacterEffectTest extends \Tester\TestCase {
15 15
   protected function generateCharacter(int $id): Character {
16 16
     $stats = [
17
-      "id" => $id, "name" => "Player $id", "level" => 1, "initiativeFormula" => "1d2+DEX/4", "strength" => 10,
17
+      "id" => $id, "name" => "player $id", "level" => 1, "initiativeFormula" => "1d2+DEX/4", "strength" => 10,
18 18
       "dexterity" => 10, "constitution" => 10, "intelligence" => 10, "charisma" => 10
19 19
     ];
20 20
     return new Character($stats);
Please login to merge, or discard this patch.
tests/HeroesofAbenez/Combat/CombatBaseTest.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
   
23 23
   protected function generateCharacter(int $id): Character {
24 24
     $stats = [
25
-      "id" => $id, "name" => "Player $id", "level" => 1, "initiativeFormula" => "1d2+DEX/4", "strength" => 10,
25
+      "id" => $id, "name" => "player $id", "level" => 1, "initiativeFormula" => "1d2+DEX/4", "strength" => 10,
26 26
       "dexterity" => 10, "constitution" => 10, "intelligence" => 10, "charisma" => 10
27 27
     ];
28 28
     $petStats = [
Please login to merge, or discard this patch.
tests/HeroesofAbenez/Combat/CombatActions/SkillAttackTest.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
 
30 30
   protected function generateCharacter(int $id): Character {
31 31
     $stats = [
32
-      "id" => $id, "name" => "Player $id", "level" => 1, "initiativeFormula" => "1d2+DEX/4", "strength" => 10,
32
+      "id" => $id, "name" => "player $id", "level" => 1, "initiativeFormula" => "1d2+DEX/4", "strength" => 10,
33 33
       "dexterity" => 10, "constitution" => 10, "intelligence" => 10, "charisma" => 10
34 34
     ];
35 35
     $skillData = [
Please login to merge, or discard this patch.
tests/HeroesofAbenez/Combat/CharacterTest.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
 final class CharacterTest extends \Tester\TestCase {
15 15
   protected function generateCharacter(int $id): Character {
16 16
     $stats = [
17
-      "id" => $id, "name" => "Player $id", "level" => 1, "initiativeFormula" => "1d2+DEX/4", "strength" => 10,
17
+      "id" => $id, "name" => "player $id", "level" => 1, "initiativeFormula" => "1d2+DEX/4", "strength" => 10,
18 18
       "dexterity" => 10, "constitution" => 10, "intelligence" => 10, "charisma" => 10
19 19
     ];
20 20
     return new Character($stats);
Please login to merge, or discard this patch.