Completed
Push — master ( bdb72f...0472d3 )
by Jakub
02:26
created
src/TextCombatLogRender.php 1 patch
Upper-Lower-Casing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
    */
33 33
   public 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
   }
@@ -55,14 +55,14 @@  discard block
 block discarded – undo
55 55
       case CombatActions\Attack::ACTION_NAME:
56 56
         $message = ($item->result) ? "combat.log.attackHits" : "combat.log.attackFails";
57 57
         $text = $this->translator->translate($message, $item->amount, ["character1" => $character1, "character2" => $character2]);
58
-        if($item->result AND $item->character2->hitpoints < 1) {
58
+        if($item->result and $item->character2->hitpoints < 1) {
59 59
           $text .= $this->translator->translate("combat.log.characterFalls");
60 60
         }
61 61
         return $text;
62 62
       case CombatActions\SkillAttack::ACTION_NAME:
63 63
         $message = ($item->result) ? "combat.log.specialAttackHits" : "combat.log.specialAttackFails";
64 64
         $text = $this->translator->translate($message, $item->amount, ["character1" => $character1, "character2" => $character2, "name" => $item->name]);
65
-        if($item->result AND $item->character2->hitpoints < 1) {
65
+        if($item->result and $item->character2->hitpoints < 1) {
66 66
           $text .= $this->translator->translate("combat.log.characterFalls");
67 67
         }
68 68
         return $text;
Please login to merge, or discard this patch.