Completed
Push — master ( 9c7d46...b7ab7b )
by Kirill
09:13 queued 06:53
created
src/Frontend/AST/Scalar/NumberValueNode.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
                 return $this->parseInt($value->getValue());
53 53
         }
54 54
 
55
-        return (float)$value->getValue();
55
+        return (float) $value->getValue();
56 56
     }
57 57
 
58 58
     /**
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
      */
80 80
     private function parseExponential(string $value): float
81 81
     {
82
-        return (float)$value;
82
+        return (float) $value;
83 83
     }
84 84
 
85 85
     /**
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
      */
89 89
     private function parseFloat(string $value): float
90 90
     {
91
-        return (float)$value;
91
+        return (float) $value;
92 92
     }
93 93
 
94 94
     /**
Please login to merge, or discard this patch.
src/Frontend/Type/Type.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
78 78
      */
79 79
     private function bootInheritance(\SplStack $stack, array $children = []): void
80 80
     {
81
-        $push = function (string $type) use ($stack): void {
81
+        $push = function(string $type) use ($stack): void {
82 82
             self::$inheritance[$type]   = \array_values(\iterator_to_array($stack));
83 83
             self::$inheritance[$type][] = static::ROOT_TYPE;
84 84
 
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@
 block discarded – undo
109 109
     /**
110 110
      * {@inheritDoc}
111 111
      */
112
-    public function instanceOf(TypeInterface $type): bool
112
+    public function instanceof(TypeInterface $type): bool
113 113
     {
114 114
         $needle = $type->getName()->getFullyQualifiedName();
115 115
 
Please login to merge, or discard this patch.
src/Frontend/Builder/DefinitionBuilder.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
      */
42 42
     public function match(RuleInterface $rule): bool
43 43
     {
44
-        return (bool)(self::TYPE_DEFINITIONS[$rule->getName()] ?? false);
44
+        return (bool) (self::TYPE_DEFINITIONS[$rule->getName()] ?? false);
45 45
     }
46 46
 
47 47
     /**
Please login to merge, or discard this patch.
src/Frontend/Builder/ImportBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@
 block discarded – undo
94 94
             return $inclusion;
95 95
         }
96 96
 
97
-        $pathname = \dirname($file->getPathname()) . \DIRECTORY_SEPARATOR . $inclusion;
97
+        $pathname = \dirname($file->getPathname()).\DIRECTORY_SEPARATOR.$inclusion;
98 98
         $pathname = \str_replace('/./', '/', $pathname);
99 99
 
100 100
         return $pathname;
Please login to merge, or discard this patch.
src/Frontend/Type/TypeInterface.php 1 patch
Upper-Lower-Casing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
     /**
33 33
      * @var string
34 34
      */
35
-    public const INTERFACE = 'Interface';
35
+    public const interface = 'Interface';
36 36
 
37 37
     /**
38 38
      * @var string
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
      * @var string[]|array[]
64 64
      */
65 65
     public const INHERITANCE_TREE = [
66
-        self::INTERFACE => [
66
+        self::interface => [
67 67
             self::OBJECT => [
68 68
                 self::INPUT_OBJECT,
69 69
             ],
@@ -103,5 +103,5 @@  discard block
 block discarded – undo
103 103
      * @param TypeInterface $type
104 104
      * @return bool
105 105
      */
106
-    public function instanceOf(self $type): bool;
106
+    public function instanceof(self $type): bool;
107 107
 }
Please login to merge, or discard this patch.
src/Frontend/AST/Scalar/ConstantValueNode.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,6 +16,6 @@
 block discarded – undo
16 16
 {
17 17
     protected function parse(): void
18 18
     {
19
-        throw new \LogicException(__METHOD__ . ' not implemented yet');
19
+        throw new \LogicException(__METHOD__.' not implemented yet');
20 20
     }
21 21
 }
Please login to merge, or discard this patch.