@@ -27,6 +27,6 @@ |
||
27 | 27 | */ |
28 | 28 | public function getValue(): ValueInterface |
29 | 29 | { |
30 | - throw new \LogicException(__METHOD__ . ' not implemented yet'); |
|
30 | + throw new \LogicException(__METHOD__.' not implemented yet'); |
|
31 | 31 | } |
32 | 32 | } |
@@ -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 | } |
@@ -125,6 +125,6 @@ |
||
125 | 125 | */ |
126 | 126 | public function __toString(): string |
127 | 127 | { |
128 | - return $this->operation . ' ' . \implode(', ', $this->operands); |
|
128 | + return $this->operation.' '.\implode(', ', $this->operands); |
|
129 | 129 | } |
130 | 130 | } |
@@ -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 |
@@ -127,7 +127,7 @@ |
||
127 | 127 | public function __toString(): string |
128 | 128 | { |
129 | 129 | if ($this->representation === null) { |
130 | - return '? of ' . $this->getType(); |
|
130 | + return '? of '.$this->getType(); |
|
131 | 131 | } |
132 | 132 | |
133 | 133 | return $this->representation; |
@@ -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 | } |
@@ -115,7 +115,7 @@ |
||
115 | 115 | |
116 | 116 | switch (true) { |
117 | 117 | case \is_callable($value): |
118 | - $result->send($this->deferred((int)$key, $value)); |
|
118 | + $result->send($this->deferred((int) $key, $value)); |
|
119 | 119 | break; |
120 | 120 | |
121 | 121 | case $value instanceof Prototype: |
@@ -113,6 +113,6 @@ |
||
113 | 113 | */ |
114 | 114 | public function __toString(): string |
115 | 115 | { |
116 | - return (string)$this->context; |
|
116 | + return (string) $this->context; |
|
117 | 117 | } |
118 | 118 | } |
@@ -83,6 +83,6 @@ |
||
83 | 83 | */ |
84 | 84 | public function __toString(): string |
85 | 85 | { |
86 | - return (string)$this->context; |
|
86 | + return (string) $this->context; |
|
87 | 87 | } |
88 | 88 | } |
@@ -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 | } |