Passed
Push — master ( 465240...c8cc94 )
by Jakub
02:15
created
tests/bootstrap.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
2 2
 declare(strict_types=1);
3 3
 
4 4
 require __DIR__ . "/../vendor/autoload.php";
5
-Testbench\Bootstrap::setup(__DIR__ . '/_temp', function (\Nette\Configurator $configurator): void {
5
+Testbench\Bootstrap::setup(__DIR__ . '/_temp', function(\Nette\Configurator $configurator): void {
6 6
   $configurator->addParameters(["appDir" => __DIR__, ]);
7 7
   $configurator->addConfig(__DIR__ . "/tests.neon");
8 8
 });
Please login to merge, or discard this patch.
src/Character.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
   public const STATUS_POISONED = "poisoned";
76 76
   public const STATUS_HIDDEN = "hidden";
77 77
 
78
-  protected int|string $id;
78
+  protected int | string $id;
79 79
   protected string $name;
80 80
   protected string $gender = "male";
81 81
   protected string $race;
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
     $this->dodgeBase = $this->dodge;
201 201
   }
202 202
 
203
-  protected function getId(): int|string {
203
+  protected function getId(): int | string {
204 204
     return $this->id;
205 205
   }
206 206
 
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
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
   public readonly string $stat;
26 26
   public readonly int $value;
27 27
   public readonly bool $valueAbsolute;
28
-  protected int|string $duration;
28
+  protected int | string $duration;
29 29
   /** @var callable[] */
30 30
   public array $onApply = [];
31 31
   /** @var callable[] */
@@ -102,14 +102,14 @@  discard block
 block discarded – undo
102 102
     return Constants::getConstantsValues(static::class, "DURATION_");
103 103
   }
104 104
 
105
-  protected function getDuration(): int|string {
105
+  protected function getDuration(): int | string {
106 106
     return $this->duration;
107 107
   }
108 108
   
109 109
   /**
110 110
    * @throws \InvalidArgumentException
111 111
    */
112
-  protected function setDuration(string|int $value): void {
112
+  protected function setDuration(string | int $value): void {
113 113
     if(!is_int($value) && !in_array($value, $this->getDurations(), true)) {
114 114
       throw new \InvalidArgumentException("Invalid value set to CharacterEffect::\$duration. Expected string or integer.");
115 115
     }
Please login to merge, or discard this patch.