Test Failed
Push — master ( 8b4c91...55dd44 )
by Kirill
02:18
created
src/Invocation/DirectiveInvocation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,6 +34,6 @@
 block discarded – undo
34 34
      */
35 35
     public function __toString(): string
36 36
     {
37
-        return '@' . parent::__toString();
37
+        return '@'.parent::__toString();
38 38
     }
39 39
 }
Please login to merge, or discard this patch.
src/Definition/Behaviour/HasInterfaces.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
     abstract protected function fetch($type): TypeDefinition;
31 31
 
32 32
     /**
33
-     * @param string|TypeDefinition $interface
33
+     * @param TypeDefinition $interface
34 34
      * @return bool
35 35
      */
36 36
     public function isImplements($interface): bool
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
     }
48 48
 
49 49
     /**
50
-     * @return iterable|InterfaceDefinition[]
50
+     * @return \Generator
51 51
      */
52 52
     public function getInterfaces(): iterable
53 53
     {
Please login to merge, or discard this patch.
src/Stdlib/Scalar/BooleanScalar.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -46,11 +46,11 @@  discard block
 block discarded – undo
46 46
      */
47 47
     public function parse($value): bool
48 48
     {
49
-        if (! \is_scalar($value)) {
49
+        if (!\is_scalar($value)) {
50 50
             throw new TypeConflictException(\sprintf('Could not parse %s type', \gettype($value)));
51 51
         }
52 52
 
53
-        return (bool)parent::parse($value);
53
+        return (bool) parent::parse($value);
54 54
     }
55 55
 
56 56
     /**
@@ -60,11 +60,11 @@  discard block
 block discarded – undo
60 60
      */
61 61
     public function serialize($value): bool
62 62
     {
63
-        if (! \is_scalar($value)) {
63
+        if (!\is_scalar($value)) {
64 64
             throw new TypeConflictException(\sprintf('Could not serialize %s type', \gettype($value)));
65 65
         }
66 66
 
67
-        return (bool)parent::serialize($value);
67
+        return (bool) parent::serialize($value);
68 68
     }
69 69
 
70 70
     /**
Please login to merge, or discard this patch.
src/Stdlib/Scalar/FloatScalar.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -46,11 +46,11 @@  discard block
 block discarded – undo
46 46
      */
47 47
     public function parse($value): float
48 48
     {
49
-        if (! \is_scalar($value)) {
49
+        if (!\is_scalar($value)) {
50 50
             throw new TypeConflictException(\sprintf('Could not parse %s type', \gettype($value)));
51 51
         }
52 52
 
53
-        return (float)parent::parse($value);
53
+        return (float) parent::parse($value);
54 54
     }
55 55
 
56 56
     /**
@@ -60,11 +60,11 @@  discard block
 block discarded – undo
60 60
      */
61 61
     public function serialize($value): float
62 62
     {
63
-        if (! \is_scalar($value)) {
63
+        if (!\is_scalar($value)) {
64 64
             throw new TypeConflictException(\sprintf('Could not serialize %s type', \gettype($value)));
65 65
         }
66 66
 
67
-        return (float)parent::serialize($value);
67
+        return (float) parent::serialize($value);
68 68
     }
69 69
 
70 70
     /**
Please login to merge, or discard this patch.
src/Stdlib/Scalar/IntScalar.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -46,11 +46,11 @@  discard block
 block discarded – undo
46 46
      */
47 47
     public function parse($value): int
48 48
     {
49
-        if (! \is_scalar($value)) {
49
+        if (!\is_scalar($value)) {
50 50
             throw new TypeConflictException(\sprintf('Could not parse %s type', \gettype($value)));
51 51
         }
52 52
 
53
-        return (int)parent::parse($value);
53
+        return (int) parent::parse($value);
54 54
     }
55 55
 
56 56
     /**
@@ -60,11 +60,11 @@  discard block
 block discarded – undo
60 60
      */
61 61
     public function serialize($value): int
62 62
     {
63
-        if (! \is_scalar($value)) {
63
+        if (!\is_scalar($value)) {
64 64
             throw new TypeConflictException(\sprintf('Could not serialize %s type', \gettype($value)));
65 65
         }
66 66
 
67
-        return (int)parent::serialize($value);
67
+        return (int) parent::serialize($value);
68 68
     }
69 69
 
70 70
     /**
Please login to merge, or discard this patch.
src/Contracts/Definition/Behaviour/ProvidesInheritance.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,12 +22,11 @@
 block discarded – undo
22 22
     public function getParentInheritance(): ?TypeDefinition;
23 23
 
24 24
     /**
25
-     * @return iterable|TypeDefinition[]
25
+     * @return \Generator
26 26
      */
27 27
     public function getChildrenInheritance(): iterable;
28 28
 
29 29
     /**
30
-     * @param string $name
31 30
      * @return bool
32 31
      */
33 32
     public function hasParent(): bool;
Please login to merge, or discard this patch.
src/Definition/Behaviour/HasInheritance.php 1 patch
Doc Comments   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
     abstract protected function fetch($type): TypeDefinition;
35 35
 
36 36
     /**
37
-     * @return iterable|TypeDefinition[]
37
+     * @return \Generator
38 38
      */
39 39
     public function getChildrenInheritance(): iterable
40 40
     {
@@ -52,7 +52,6 @@  discard block
 block discarded – undo
52 52
     }
53 53
 
54 54
     /**
55
-     * @param string $name
56 55
      * @return bool
57 56
      */
58 57
     public function hasParent(): bool
@@ -84,7 +83,7 @@  discard block
 block discarded – undo
84 83
     }
85 84
 
86 85
     /**
87
-     * @param string|TypeDefinition $type
86
+     * @param TypeDefinition $type
88 87
      * @return bool
89 88
      */
90 89
     public function isExtends($type): bool
Please login to merge, or discard this patch.
src/Stdlib/Scalar/DateTimeScalar.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -50,11 +50,11 @@  discard block
 block discarded – undo
50 50
             return $value;
51 51
         }
52 52
 
53
-        if (! \is_scalar($value)) {
53
+        if (!\is_scalar($value)) {
54 54
             throw new TypeConflictException(\sprintf('Could not parse %s type', \gettype($value)));
55 55
         }
56 56
 
57
-        return $this->parseDateTime((string)parent::parse($value));
57
+        return $this->parseDateTime((string) parent::parse($value));
58 58
     }
59 59
 
60 60
     /**
@@ -68,11 +68,11 @@  discard block
 block discarded – undo
68 68
             return $value->format(\DateTime::RFC3339);
69 69
         }
70 70
 
71
-        if (! \is_scalar($value)) {
71
+        if (!\is_scalar($value)) {
72 72
             throw new TypeConflictException(\sprintf('Could not serialize %s type', \gettype($value)));
73 73
         }
74 74
 
75
-        return $this->parseDateTime((string)$value)
75
+        return $this->parseDateTime((string) $value)
76 76
             ->format(\DateTime::RFC3339);
77 77
     }
78 78
 
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
     private function parseDateTime(string $value): \DateTimeInterface
85 85
     {
86 86
         try {
87
-            return new \DateTime((string)$value, new \DateTimeZone('UTC'));
87
+            return new \DateTime((string) $value, new \DateTimeZone('UTC'));
88 88
         } catch (\Throwable $e) {
89 89
             $message = \str_replace('DateTime::__construct(): ', '', $e->getMessage());
90 90
 
Please login to merge, or discard this patch.
src/Stdlib/Scalar/StringScalar.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -46,11 +46,11 @@  discard block
 block discarded – undo
46 46
      */
47 47
     public function parse($value): string
48 48
     {
49
-        if (! \is_scalar($value)) {
49
+        if (!\is_scalar($value)) {
50 50
             throw new TypeConflictException(\sprintf('Could not parse %s type', \gettype($value)));
51 51
         }
52 52
 
53
-        return (string)$value;
53
+        return (string) $value;
54 54
     }
55 55
 
56 56
     /**
@@ -60,11 +60,11 @@  discard block
 block discarded – undo
60 60
      */
61 61
     public function serialize($value): string
62 62
     {
63
-        if (! \is_scalar($value)) {
63
+        if (!\is_scalar($value)) {
64 64
             throw new TypeConflictException(\sprintf('Could not serialize %s type', \gettype($value)));
65 65
         }
66 66
 
67
-        return (string)$value;
67
+        return (string) $value;
68 68
     }
69 69
 
70 70
     /**
Please login to merge, or discard this patch.