Test Failed
Pull Request — master (#1170)
by Aleksei
19:12 queued 08:18
created
src/Reactor/src/EnumDeclaration.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
         ));
85 85
     }
86 86
 
87
-    public function addCase(string $name, string|int|null $value = null): EnumCase
87
+    public function addCase(string $name, string | int | null $value = null): EnumCase
88 88
     {
89 89
         return EnumCase::fromElement($this->element->addCase($name, $value));
90 90
     }
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
         return $this;
102 102
     }
103 103
 
104
-    public function addMember(Method|Constant|EnumCase|TraitUse $member): static
104
+    public function addMember(Method | Constant | EnumCase | TraitUse $member): static
105 105
     {
106 106
         $this->element->addMember($member->getElement());
107 107
 
Please login to merge, or discard this patch.
src/Reactor/src/ClassDeclaration.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@
 block discarded – undo
89 89
         return $this;
90 90
     }
91 91
 
92
-    public function addMember(Method|Property|Constant|TraitUse $member): static
92
+    public function addMember(Method | Property | Constant | TraitUse $member): static
93 93
     {
94 94
         $this->element->addMember($member->getElement());
95 95
 
Please login to merge, or discard this patch.
src/Reactor/src/InterfaceDeclaration.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
         $this->element = new InterfaceType($name);
20 20
     }
21 21
 
22
-    public function setExtends(string|array $names): static
22
+    public function setExtends(string | array $names): static
23 23
     {
24 24
         $this->element->setExtends($names);
25 25
 
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
         return $this;
40 40
     }
41 41
 
42
-    public function addMember(Method|Constant $member): static
42
+    public function addMember(Method | Constant $member): static
43 43
     {
44 44
         $this->element->addMember($member->getElement());
45 45
 
Please login to merge, or discard this patch.
src/Reactor/src/Partial/Visibility.php 1 patch
Upper-Lower-Casing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
 
7 7
 enum Visibility: string
8 8
 {
9
-    case PUBLIC = 'public';
10
-    case PROTECTED = 'protected';
11
-    case PRIVATE = 'private';
9
+    case public = 'public';
10
+    case protected = 'protected';
11
+    case private = 'private';
12 12
 }
Please login to merge, or discard this patch.
src/Reactor/src/Partial/EnumCase.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,14 +23,14 @@
 block discarded – undo
23 23
         $this->element = new NetteEnumCase($name);
24 24
     }
25 25
 
26
-    public function setValue(string|int|null $value): self
26
+    public function setValue(string | int | null $value): self
27 27
     {
28 28
         $this->element->setValue($value);
29 29
 
30 30
         return $this;
31 31
     }
32 32
 
33
-    public function getValue(): string|int|null|Literal
33
+    public function getValue(): string | int | null | Literal
34 34
     {
35 35
         return $this->element->getValue();
36 36
     }
Please login to merge, or discard this patch.
src/Reactor/src/Partial/Property.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
     {
59 59
         $type = $this->element->getType();
60 60
 
61
-        return $type === null ? null : (string) $type;
61
+        return $type === null ? null : (string)$type;
62 62
     }
63 63
 
64 64
     public function setNullable(bool $state = true): self
Please login to merge, or discard this patch.
src/Reactor/src/TraitDeclaration.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
         $this->element = new TraitType($name);
24 24
     }
25 25
 
26
-    public function addMember(Method|Property|Constant|TraitUse $member): static
26
+    public function addMember(Method | Property | Constant | TraitUse $member): static
27 27
     {
28 28
         $this->element->addMember($member->getElement());
29 29
 
Please login to merge, or discard this patch.
src/Reactor/src/Writer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
 {
11 11
     public function __construct(
12 12
         protected FilesInterface $files
13
-    ) {
13
+    ){
14 14
     }
15 15
 
16 16
     public function write(string $filename, FileDeclaration $file): bool
Please login to merge, or discard this patch.
src/Reactor/src/FileDeclaration.php 2 patches
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,8 @@
 block discarded – undo
63 63
 
64 64
     public function addNamespace(string|PhpNamespace $namespace): PhpNamespace
65 65
     {
66
-        if ($namespace instanceof PhpNamespace) {
66
+        if ($namespace instanceof PhpNamespace)
67
+        {
67 68
             $this->element->addNamespace($namespace->getElement());
68 69
 
69 70
             return $namespace;
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,9 +53,9 @@
 block discarded – undo
53 53
         return self::fromElement((new Factory())->fromCode(\file_get_contents($reflection->getFileName())));
54 54
     }
55 55
 
56
-    public function addNamespace(string|PhpNamespace $namespace): PhpNamespace
56
+    public function addNamespace(string | PhpNamespace $namespace): PhpNamespace
57 57
     {
58
-        if ($namespace instanceof PhpNamespace) {
58
+        if ($namespace instanceof PhpNamespace){
59 59
             $this->element->addNamespace($namespace->getElement());
60 60
 
61 61
             return $namespace;
Please login to merge, or discard this patch.