Passed
Push — master ( 465240...c8cc94 )
by Jakub
02:15
created
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.