Completed
Push — master ( 220136...171c36 )
by Jakub
03:07
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
@@ -75,7 +75,7 @@
 block discarded – undo
75 75
    */
76 76
   public function setTemplate(string $template): void {
77 77
     if(!is_file($template)) {
78
-      throw new \RuntimeException("File $template does not exist.");
78
+      throw new \RuntimeException("file $template does not exist.");
79 79
     }
80 80
     $this->template = $template;
81 81
   }
Please login to merge, or discard this patch.