@@ -10,7 +10,6 @@ |
||
10 | 10 | namespace Railt\SDL\Frontend; |
11 | 11 | |
12 | 12 | use Railt\Io\Readable; |
13 | -use Railt\Parser\Ast\NodeInterface; |
|
14 | 13 | use Railt\Parser\Ast\RuleInterface; |
15 | 14 | use Railt\SDL\Exception\InternalException; |
16 | 15 | use Railt\SDL\Frontend\Builder\BuilderInterface; |
@@ -56,7 +56,7 @@ |
||
56 | 56 | * @param TypeInterface $type |
57 | 57 | * @return bool |
58 | 58 | */ |
59 | - public function instanceOf(TypeInterface $type): bool |
|
59 | + public function instanceof(TypeInterface $type): bool |
|
60 | 60 | { |
61 | 61 | return $this->is($type) || $this->parent->instanceOf($type); |
62 | 62 | } |
@@ -29,5 +29,5 @@ |
||
29 | 29 | * @param TypeInterface $type |
30 | 30 | * @return bool |
31 | 31 | */ |
32 | - public function instanceOf(TypeInterface $type): bool; |
|
32 | + public function instanceof(TypeInterface $type): bool; |
|
33 | 33 | } |
@@ -48,7 +48,7 @@ |
||
48 | 48 | */ |
49 | 49 | public function toArray(): array |
50 | 50 | { |
51 | - return \array_map(function (BaseStruct $value) { |
|
51 | + return \array_map(function(BaseStruct $value) { |
|
52 | 52 | return $value instanceof ValueObject ? $value->toArray() : $value->getValue(); |
53 | 53 | }, $this->value); |
54 | 54 | } |
@@ -55,11 +55,11 @@ |
||
55 | 55 | case 'array': |
56 | 56 | return json_encode($value); |
57 | 57 | case 'object': |
58 | - return \get_class($value) . '#' . \spl_object_hash($value); |
|
58 | + return \get_class($value).'#'.\spl_object_hash($value); |
|
59 | 59 | case 'NULL': |
60 | 60 | return 'null'; |
61 | 61 | default: |
62 | - return (string)$value; |
|
62 | + return (string) $value; |
|
63 | 63 | } |
64 | 64 | } |
65 | 65 |