@@ -88,13 +88,13 @@ |
||
88 | 88 | if ($type instanceof ReflectionNamedType) { |
89 | 89 | $displayType = $type->getName(); |
90 | 90 | } else { |
91 | - $displayType = (string)$type; |
|
91 | + $displayType = (string) $type; |
|
92 | 92 | } |
93 | 93 | |
94 | 94 | $displayType = ltrim($displayType, '\\'); |
95 | 95 | |
96 | - if ($type->allowsNull() && ! $type instanceof ReflectionUnionType) { |
|
97 | - $displayType = '?' . $displayType; |
|
96 | + if ($type->allowsNull() && !$type instanceof ReflectionUnionType) { |
|
97 | + $displayType = '?'.$displayType; |
|
98 | 98 | } |
99 | 99 | |
100 | 100 | return $displayType; |
@@ -120,10 +120,10 @@ discard block |
||
120 | 120 | $defaultValue = $this->getDefaultValue(); |
121 | 121 | if (is_string($defaultValue)) { |
122 | 122 | if (strlen($defaultValue) > 18) { |
123 | - $defaultValue = substr($defaultValue, 0, 15) . '...'; |
|
123 | + $defaultValue = substr($defaultValue, 0, 15).'...'; |
|
124 | 124 | } |
125 | 125 | |
126 | - $defaultValue = "'" . $defaultValue . "'"; |
|
126 | + $defaultValue = "'".$defaultValue."'"; |
|
127 | 127 | } |
128 | 128 | |
129 | 129 | if ($defaultValue === null) { |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | if (is_array($defaultValue)) { |
134 | 134 | $defaultValueDisplay = '= Array'; |
135 | 135 | } else { |
136 | - $defaultValueDisplay = '= ' . $defaultValue; |
|
136 | + $defaultValueDisplay = '= '.$defaultValue; |
|
137 | 137 | } |
138 | 138 | } |
139 | 139 |
@@ -108,12 +108,12 @@ |
||
108 | 108 | $paramString = ''; |
109 | 109 | $indentation = str_repeat(' ', 4); |
110 | 110 | foreach ($methodParameters as $methodParameter) { |
111 | - $paramString .= "\n{$indentation}" . $methodParameter; |
|
111 | + $paramString .= "\n{$indentation}".$methodParameter; |
|
112 | 112 | } |
113 | 113 | |
114 | 114 | return sprintf( |
115 | 115 | "%sMethod [ <user%s%s>%s%s%s %s method %s ] {\n @@ %s %d - %d{$paramFormat}{$returnFormat}\n}\n", |
116 | - $this->getDocComment() ? $this->getDocComment() . "\n" : '', |
|
116 | + $this->getDocComment() ? $this->getDocComment()."\n" : '', |
|
117 | 117 | $prototype ? ", overwrites {$prototypeClass}, prototype {$prototypeClass}" : '', |
118 | 118 | $this->isConstructor() ? ', ctor' : '', |
119 | 119 | $this->isFinal() ? ' final' : '', |