Passed
Push — master ( f05eff...e96706 )
by Paweł
02:59
created
src/Build/LevelProgress.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
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),
Please login to merge, or discard this patch.
src/Build/Talent/WeaponMastery/WeaponMasteryLevel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
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',
Please login to merge, or discard this patch.
src/Event/DecisionCollection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
     public function findByOrder(IntegerValue $order): ?Decision
13 13
     {
14 14
         return $this->filter(
15
-            static fn(Decision $decision): bool => $decision->getOrder()->equals($order),
15
+            static fn(Decision $decision) : bool => $decision->getOrder()->equals($order),
16 16
         )->getIterator()->current();
17 17
     }
18 18
 
Please login to merge, or discard this patch.
src/Build/Talent/TalentCollection.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
     public function findWeaponMasteryForWeaponType(WeaponType $weaponType): ?WeaponMastery
15 15
     {
16 16
         return $this->filter(
17
-            static fn(Talent $talent): bool =>
17
+            static fn(Talent $talent) : bool =>
18 18
                 $talent instanceof WeaponMastery && $talent->getType()->equals($weaponType),
19 19
         )->getIterator()->current();
20 20
     }
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
     public function findSecretKnowledge(): ?SecretKnowledge
23 23
     {
24 24
         return $this->filter(
25
-            static fn(Talent $talent): bool => $talent instanceof SecretKnowledge,
25
+            static fn(Talent $talent) : bool => $talent instanceof SecretKnowledge,
26 26
         )->getIterator()->current();
27 27
     }
28 28
 
Please login to merge, or discard this patch.
src/Build/Talent/SecretKnowledge/Ascension.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
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(1),
66 66
             self::SECOND_ASCENSION => new Etherum(2),
67 67
             self::THIRD_ASCENSION => new Etherum(4),
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
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',
Please login to merge, or discard this patch.
src/Player/Player.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
             return;
66 66
         }
67 67
 
68
-        $playerAscension = $this->talentCollection->findSecretKnowledge()?->getAscension()
68
+        $playerAscension = $this->talentCollection->findSecretKnowledge() ? ->getAscension()
69 69
             ?? throw PlayerException::etherumOverdose();
70 70
 
71 71
         $corruptionBoundary = $this->calculateCorruptionBoundary();
Please login to merge, or discard this patch.
src/Entity/Entity.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
78 78
 
79 79
     public function calculateCorruptionBoundary(): Etherum
80 80
     {
81
-        $ascension = $this->talentCollection->findSecretKnowledge()?->getAscension();
81
+        $ascension = $this->talentCollection->findSecretKnowledge() ? ->getAscension();
82 82
         if ($ascension === null) {
83 83
             return new Etherum(2);
84 84
         }
Please login to merge, or discard this patch.