@@ -99,7 +99,7 @@ |
||
| 99 | 99 | */ |
| 100 | 100 | public function getName() : string |
| 101 | 101 | { |
| 102 | - return (string) $this->property->props[$this->index]->name; |
|
| 102 | + return (string)$this->property->props[$this->index]->name; |
|
| 103 | 103 | } |
| 104 | 104 | |
| 105 | 105 | /** |
@@ -73,16 +73,16 @@ |
||
| 73 | 73 | $type = $this->createType($object); |
| 74 | 74 | } |
| 75 | 75 | |
| 76 | - return new ArgumentDescriptor((string) $object->var->name, $type, $default, $object->byRef, $object->variadic); |
|
| 76 | + return new ArgumentDescriptor((string)$object->var->name, $type, $default, $object->byRef, $object->variadic); |
|
| 77 | 77 | } |
| 78 | 78 | |
| 79 | 79 | private function createType(Param $arg, ?Context $context = null) : Type |
| 80 | 80 | { |
| 81 | 81 | $typeResolver = new TypeResolver(); |
| 82 | 82 | if ($arg->type instanceof NullableType) { |
| 83 | - $typeString = '?' . $arg->type->type; |
|
| 83 | + $typeString = '?'.$arg->type->type; |
|
| 84 | 84 | } else { |
| 85 | - $typeString = (string) $arg->type; |
|
| 85 | + $typeString = (string)$arg->type; |
|
| 86 | 86 | } |
| 87 | 87 | |
| 88 | 88 | return $typeResolver->resolve($typeString, $context); |
@@ -53,7 +53,7 @@ |
||
| 53 | 53 | */ |
| 54 | 54 | public function getName() : string |
| 55 | 55 | { |
| 56 | - return (string) $this->classConstants->consts[$this->index]->name; |
|
| 56 | + return (string)$this->classConstants->consts[$this->index]->name; |
|
| 57 | 57 | } |
| 58 | 58 | |
| 59 | 59 | /** |
@@ -50,7 +50,7 @@ |
||
| 50 | 50 | $docBlock = $this->createDocBlock($strategies, $object->getDocComment(), $context); |
| 51 | 51 | $parents = []; |
| 52 | 52 | foreach ($object->extends as $extend) { |
| 53 | - $parents['\\' . (string) $extend] = new Fqsen('\\' . (string) $extend); |
|
| 53 | + $parents['\\'.(string)$extend] = new Fqsen('\\'.(string)$extend); |
|
| 54 | 54 | } |
| 55 | 55 | |
| 56 | 56 | $interface = new InterfaceElement($object->fqsen, $parents, $docBlock, new Location($object->getLine())); |
@@ -91,7 +91,7 @@ |
||
| 91 | 91 | */ |
| 92 | 92 | public function addNamespace(Namespace_ $namespace) : void |
| 93 | 93 | { |
| 94 | - $this->namespaces[(string) $namespace->getFqsen()] = $namespace; |
|
| 94 | + $this->namespaces[(string)$namespace->getFqsen()] = $namespace; |
|
| 95 | 95 | } |
| 96 | 96 | |
| 97 | 97 | /** |