@@ -31,6 +31,6 @@ |
||
31 | 31 | */ |
32 | 32 | public function getType(): TypeInterface |
33 | 33 | { |
34 | - return Type::of(Type::INTERFACE); |
|
34 | + return Type::of(Type::interface); |
|
35 | 35 | } |
36 | 36 | } |
@@ -37,7 +37,7 @@ |
||
37 | 37 | * @param TypeDefinition $type |
38 | 38 | * @return bool |
39 | 39 | */ |
40 | - public function instanceOf(TypeDefinition $type): bool; |
|
40 | + public function instanceof(TypeDefinition $type): bool; |
|
41 | 41 | |
42 | 42 | /** |
43 | 43 | * @param TypeInterface $type |
@@ -108,7 +108,7 @@ |
||
108 | 108 | * @param TypeDefinition $type |
109 | 109 | * @return bool |
110 | 110 | */ |
111 | - public function instanceOf(TypeDefinition $type): bool |
|
111 | + public function instanceof(TypeDefinition $type): bool |
|
112 | 112 | { |
113 | 113 | return $this->type->instanceOf($type); |
114 | 114 | } |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | */ |
100 | 100 | public function compile(Readable $file): DocumentInterface |
101 | 101 | { |
102 | - return $this->store->memoize($file, function (Readable $file): DocumentInterface { |
|
102 | + return $this->store->memoize($file, function(Readable $file): DocumentInterface { |
|
103 | 103 | return $this->generate($file, $this->ir($file)); |
104 | 104 | }); |
105 | 105 | } |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | */ |
115 | 115 | public function generate(Readable $file, iterable $opcodes): DocumentInterface |
116 | 116 | { |
117 | - return $this->wrap(function () use ($file, $opcodes) { |
|
117 | + return $this->wrap(function() use ($file, $opcodes) { |
|
118 | 118 | return $this->back->run($file, $opcodes); |
119 | 119 | }); |
120 | 120 | } |
@@ -149,7 +149,7 @@ discard block |
||
149 | 149 | */ |
150 | 150 | public function ir(Readable $readable): iterable |
151 | 151 | { |
152 | - return $this->wrap(function () use ($readable) { |
|
152 | + return $this->wrap(function() use ($readable) { |
|
153 | 153 | return $this->front->load($readable); |
154 | 154 | }); |
155 | 155 | } |
@@ -34,7 +34,7 @@ |
||
34 | 34 | |
35 | 35 | /** |
36 | 36 | * @param Context $context |
37 | - * @return iterable |
|
37 | + * @return \Generator |
|
38 | 38 | */ |
39 | 39 | public function getOpcodes(Context $context): iterable |
40 | 40 | { |
@@ -34,7 +34,7 @@ |
||
34 | 34 | |
35 | 35 | /** |
36 | 36 | * @param Context $context |
37 | - * @return iterable |
|
37 | + * @return \Generator |
|
38 | 38 | */ |
39 | 39 | public function getOpcodes(Context $context): iterable |
40 | 40 | { |
@@ -40,7 +40,7 @@ |
||
40 | 40 | } |
41 | 41 | |
42 | 42 | /** |
43 | - * @return iterable|ValueInterface[] |
|
43 | + * @return \Generator |
|
44 | 44 | */ |
45 | 45 | private function getInnerValues(): iterable |
46 | 46 | { |
@@ -44,7 +44,7 @@ |
||
44 | 44 | } |
45 | 45 | |
46 | 46 | /** |
47 | - * @return ValueInterface|null |
|
47 | + * @return ValueInterface |
|
48 | 48 | */ |
49 | 49 | protected function getFullNameValue(): ?ValueInterface |
50 | 50 | { |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | { |
17 | 17 | /** |
18 | 18 | * InputValue constructor. |
19 | - * @param iterable $values |
|
19 | + * @param \Generator $values |
|
20 | 20 | * @param int $offset |
21 | 21 | */ |
22 | 22 | public function __construct(iterable $values, int $offset = 0) |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | } |
59 | 59 | |
60 | 60 | /** |
61 | - * @return iterable |
|
61 | + * @return \Generator |
|
62 | 62 | */ |
63 | 63 | public function getValue(): iterable |
64 | 64 | { |
@@ -51,7 +51,7 @@ |
||
51 | 51 | * @var ValueInterface $value |
52 | 52 | */ |
53 | 53 | foreach ($this->getValue() as $key => $value) { |
54 | - $result[] = $key->toString() . ': ' . (string)$value; |
|
54 | + $result[] = $key->toString().': '.(string) $value; |
|
55 | 55 | } |
56 | 56 | |
57 | 57 | return \sprintf('{%s}', \implode(', ', $result)); |