@@ -32,7 +32,7 @@ discard block |
||
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 |
||
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; |