Passed
Branch master (76cc2e)
by Paweł
03:12
created
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/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/Infrastructure/Cli/PlayerIO.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
         return $this->io->confirm($question);
40 40
     }
41 41
 
42
-    public function tell(string|array $message): void
42
+    public function tell(string | array $message): void
43 43
     {
44 44
         sleep(1);
45 45
         $this->io->text($message);
Please login to merge, or discard this patch.
src/Player/PlayerAction.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
 
18 18
     public function askForConfirmation(string $question): bool;
19 19
 
20
-    public function tell(string|array $message): void;
20
+    public function tell(string | array $message): void;
21 21
 
22 22
     public function list(array $items): void;
23 23
 
Please login to merge, or discard this patch.
src/Fight/Clash.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
         Fighter $attacker,
41 41
         Attack $attack,
42 42
     ): Damage {
43
-        return match (true) {
43
+        return match(true) {
44 44
             $attack instanceof MeleeAttack =>
45 45
                 (new Damage(0))
46 46
                     ->increaseBy($attack->getDamage($attacker->getWeapon() ?? throw FightException::weaponRequired()))
Please login to merge, or discard this patch.
src/Infrastructure/Persistence/DenormalizePlayer.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
             static function(array $talent): Talent {
58 58
                 $reflection = new \ReflectionClass($talent['className']);
59 59
 
60
-                $talent = match ($talent['className']) {
60
+                $talent = match($talent['className']) {
61 61
                     WeaponMastery::class =>
62 62
                         $reflection->newInstance(
63 63
                             new WeaponType($talent['type']),
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
     {
81 81
         $reflection = new \ReflectionClass($data['className']);
82 82
 
83
-        $weapon = match (true) {
83
+        $weapon = match(true) {
84 84
             $reflection->isSubclassOf(RebredirWeapon::class) =>
85 85
                 $reflection->newInstance(new Etherum($data['etherumLoad'])),
86 86
             default => $reflection->newInstance(),
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
             static function(array $item): InventoryItem {
98 98
                 $reflection = new \ReflectionClass($item['className']);
99 99
 
100
-                $item = match (true) {
100
+                $item = match(true) {
101 101
                     $reflection->isSubclassOf(Weapon::class) => self::denormalizeWeapon($item),
102 102
                     default => $reflection->newInstance(),
103 103
                 };
Please login to merge, or discard this patch.
src/Infrastructure/GameKernel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
         $projectDir = dirname(__DIR__, 2);
42 42
         $loader = new YamlFileLoader($this->container, new FileLocator("{$projectDir}/config"));
43 43
 
44
-        $loader->load(match ($this->environment) {
44
+        $loader->load(match($this->environment) {
45 45
             self::ENV_PROD => 'services.yaml',
46 46
             self::ENV_TEST => 'services_test.yaml',
47 47
             default => throw GameKernelException::unknownEnvironment($this->environment),
Please login to merge, or discard this patch.
Story/FirstChapter/MercenaryCamp/MeetMefadriel/MefadrielDialogContext.php 5 patches
Indentation   -5 removed lines patch added patch discarded remove patch
@@ -17,8 +17,3 @@
 block discarded – undo
17 17
     public function __toString(): string
18 18
     {
19 19
         return <<<'EOT'
20
-        As you came closer to the fireplace you noticed a man in heavy armor, staring at the flames without any movement.
21
-        A lot of empty bottles lays beneath his legs.
22
-        EOT;
23
-    }
24
-}
Please login to merge, or discard this patch.
Switch Indentation   -5 removed lines patch added patch discarded remove patch
@@ -17,8 +17,3 @@
 block discarded – undo
17 17
     public function __toString(): string
18 18
     {
19 19
         return <<<'EOT'
20
-        As you came closer to the fireplace you noticed a man in heavy armor, staring at the flames without any movement.
21
-        A lot of empty bottles lays beneath his legs.
22
-        EOT;
23
-    }
24
-}
Please login to merge, or discard this patch.
Spacing   -5 removed lines patch added patch discarded remove patch
@@ -17,8 +17,3 @@
 block discarded – undo
17 17
     public function __toString(): string
18 18
     {
19 19
         return <<<'EOT'
20
-        As you came closer to the fireplace you noticed a man in heavy armor, staring at the flames without any movement.
21
-        A lot of empty bottles lays beneath his legs.
22
-        EOT;
23
-    }
24
-}
Please login to merge, or discard this patch.
Braces   -5 removed lines patch added patch discarded remove patch
@@ -17,8 +17,3 @@
 block discarded – undo
17 17
     public function __toString(): string
18 18
     {
19 19
         return <<<'EOT'
20
-        As you came closer to the fireplace you noticed a man in heavy armor, staring at the flames without any movement.
21
-        A lot of empty bottles lays beneath his legs.
22
-        EOT;
23
-    }
24
-}
Please login to merge, or discard this patch.
Upper-Lower-Casing   -5 removed lines patch added patch discarded remove patch
@@ -17,8 +17,3 @@
 block discarded – undo
17 17
     public function __toString(): string
18 18
     {
19 19
         return <<<'EOT'
20
-        As you came closer to the fireplace you noticed a man in heavy armor, staring at the flames without any movement.
21
-        A lot of empty bottles lays beneath his legs.
22
-        EOT;
23
-    }
24
-}
Please login to merge, or discard this patch.