@@ -58,7 +58,7 @@ |
||
| 58 | 58 | */ |
| 59 | 59 | public function getName(): string |
| 60 | 60 | { |
| 61 | - return (string) $this->classConstants->consts[$this->index]->name; |
|
| 61 | + return (string)$this->classConstants->consts[$this->index]->name; |
|
| 62 | 62 | } |
| 63 | 63 | |
| 64 | 64 | /** |
@@ -104,7 +104,7 @@ |
||
| 104 | 104 | */ |
| 105 | 105 | public function getName(): string |
| 106 | 106 | { |
| 107 | - return (string) $this->property->props[$this->index]->name; |
|
| 107 | + return (string)$this->property->props[$this->index]->name; |
|
| 108 | 108 | } |
| 109 | 109 | |
| 110 | 110 | /** |
@@ -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 | /** |
@@ -77,13 +77,13 @@ discard block |
||
| 77 | 77 | { |
| 78 | 78 | switch (get_class($node)) { |
| 79 | 79 | case Namespace_::class: |
| 80 | - $this->resetState('\\' . $node->name . '\\'); |
|
| 80 | + $this->resetState('\\'.$node->name.'\\'); |
|
| 81 | 81 | $node->fqsen = new Fqsen($this->buildName()); |
| 82 | 82 | break; |
| 83 | 83 | case Class_::class: |
| 84 | 84 | case Trait_::class: |
| 85 | 85 | case Interface_::class: |
| 86 | - $this->parts->push((string) $node->name); |
|
| 86 | + $this->parts->push((string)$node->name); |
|
| 87 | 87 | |
| 88 | 88 | if (empty($node->name)) { |
| 89 | 89 | return NodeTraverser::DONT_TRAVERSE_CHILDREN; |
@@ -92,11 +92,11 @@ discard block |
||
| 92 | 92 | $node->fqsen = new Fqsen($this->buildName()); |
| 93 | 93 | break; |
| 94 | 94 | case Function_::class: |
| 95 | - $this->parts->push($node->name . '()'); |
|
| 95 | + $this->parts->push($node->name.'()'); |
|
| 96 | 96 | $node->fqsen = new Fqsen($this->buildName()); |
| 97 | 97 | break; |
| 98 | 98 | case ClassMethod::class: |
| 99 | - $this->parts->push('::' . $node->name . '()'); |
|
| 99 | + $this->parts->push('::'.$node->name.'()'); |
|
| 100 | 100 | $node->fqsen = new Fqsen($this->buildName()); |
| 101 | 101 | break; |
| 102 | 102 | case ClassConst::class: |
@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | $node->fqsen = new Fqsen($this->buildName()); |
| 108 | 108 | break; |
| 109 | 109 | case PropertyProperty::class: |
| 110 | - $this->parts->push('::$' . $node->name); |
|
| 110 | + $this->parts->push('::$'.$node->name); |
|
| 111 | 111 | $node->fqsen = new Fqsen($this->buildName()); |
| 112 | 112 | break; |
| 113 | 113 | } |
@@ -134,6 +134,6 @@ discard block |
||
| 134 | 134 | $name .= $part; |
| 135 | 135 | } |
| 136 | 136 | |
| 137 | - return rtrim((string) $name, '\\'); |
|
| 137 | + return rtrim((string)$name, '\\'); |
|
| 138 | 138 | } |
| 139 | 139 | } |
@@ -68,6 +68,6 @@ |
||
| 68 | 68 | $default = $this->valueConverter->prettyPrintExpr($object->default); |
| 69 | 69 | } |
| 70 | 70 | |
| 71 | - return new ArgumentDescriptor((string) $object->var->name, $default, $object->byRef, $object->variadic); |
|
| 71 | + return new ArgumentDescriptor((string)$object->var->name, $default, $object->byRef, $object->variadic); |
|
| 72 | 72 | } |
| 73 | 73 | } |
@@ -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 | } |