@@ -70,7 +70,7 @@ |
||
| 70 | 70 | |
| 71 | 71 | private function getRequiredExperience(Level $level): Experience |
| 72 | 72 | { |
| 73 | - return match (true) { |
|
| 73 | + return match(true) { |
|
| 74 | 74 | $level->isGreaterThan(new Level(10)) => new Experience(2000), |
| 75 | 75 | $level->isGreaterThan(new Level(20)) => new Experience(3000), |
| 76 | 76 | default => new Experience(1000), |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | public function findWeaponMasteryForWeaponType(WeaponType $weaponType): ?WeaponMastery |
| 14 | 14 | { |
| 15 | 15 | $weaponMasteryTalents = $this->filter( |
| 16 | - static fn(Talent $talent): bool => |
|
| 16 | + static fn(Talent $talent) : bool => |
|
| 17 | 17 | $talent instanceof WeaponMastery && $talent->getType()->equals($weaponType), |
| 18 | 18 | ); |
| 19 | 19 | |
@@ -54,7 +54,7 @@ |
||
| 54 | 54 | |
| 55 | 55 | public function __toString(): string |
| 56 | 56 | { |
| 57 | - return match ($this->value) { |
|
| 57 | + return match($this->value) { |
|
| 58 | 58 | self::INEXPERIENCED => 'inexperienced', |
| 59 | 59 | self::NOVICE => 'novice', |
| 60 | 60 | self::WARRIOR => 'warrior', |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | |
| 62 | 62 | public function getRequiredEtherum(): Etherum |
| 63 | 63 | { |
| 64 | - return match ($this->value) { |
|
| 64 | + return match($this->value) { |
|
| 65 | 65 | self::FIRST_ASCENSION => new Etherum(10), |
| 66 | 66 | self::SECOND_ASCENSION => new Etherum(20), |
| 67 | 67 | self::THIRD_ASCENSION => new Etherum(40), |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | |
| 77 | 77 | public function __toString(): string |
| 78 | 78 | { |
| 79 | - return match ($this->value) { |
|
| 79 | + return match($this->value) { |
|
| 80 | 80 | self::FIRST_ASCENSION => 'First Ascension', |
| 81 | 81 | self::SECOND_ASCENSION => 'Second Ascension', |
| 82 | 82 | self::THIRD_ASCENSION => 'Third Ascension', |