@@ -40,7 +40,7 @@ |
||
40 | 40 | */ |
41 | 41 | public function getContents(): string |
42 | 42 | { |
43 | - return (string) file_get_contents($this->path); |
|
43 | + return (string)file_get_contents($this->path); |
|
44 | 44 | } |
45 | 45 | |
46 | 46 | /** |
@@ -57,6 +57,6 @@ |
||
57 | 57 | return $node->value; |
58 | 58 | } |
59 | 59 | |
60 | - return (string) $node->getAttribute('originalValue'); |
|
60 | + return (string)$node->getAttribute('originalValue'); |
|
61 | 61 | } |
62 | 62 | } |
@@ -76,16 +76,16 @@ |
||
76 | 76 | $type = $this->createType($object); |
77 | 77 | } |
78 | 78 | |
79 | - return new ArgumentDescriptor((string) $object->var->name, $type, $default, $object->byRef, $object->variadic); |
|
79 | + return new ArgumentDescriptor((string)$object->var->name, $type, $default, $object->byRef, $object->variadic); |
|
80 | 80 | } |
81 | 81 | |
82 | 82 | private function createType(Param $arg, ?Context $context = null): Type |
83 | 83 | { |
84 | 84 | $typeResolver = new TypeResolver(); |
85 | 85 | if ($arg->type instanceof NullableType) { |
86 | - $typeString = '?' . $arg->type->type; |
|
86 | + $typeString = '?'.$arg->type->type; |
|
87 | 87 | } else { |
88 | - $typeString = (string) $arg->type; |
|
88 | + $typeString = (string)$arg->type; |
|
89 | 89 | } |
90 | 90 | |
91 | 91 | return $typeResolver->resolve($typeString, $context); |