@@ -52,7 +52,7 @@ discard block |
||
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 |
||
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 |
||
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 | /** |
@@ -78,7 +78,7 @@ |
||
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 |
@@ -109,7 +109,7 @@ |
||
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 |
@@ -41,7 +41,7 @@ |
||
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 | /** |
@@ -94,7 +94,7 @@ |
||
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; |
@@ -32,7 +32,7 @@ discard block |
||
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 |
||
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 |
||
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 | } |
@@ -16,6 +16,6 @@ |
||
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 | } |