@@ -173,9 +173,9 @@ discard block |
||
| 173 | 173 | } |
| 174 | 174 | |
| 175 | 175 | // for setters, we look for the param name as well |
| 176 | - $pattern = '/@'.$annotation.'\s+([a-zA-Z0-9|\[\]\\\\]+)'; |
|
| 176 | + $pattern = '/@' . $annotation . '\s+([a-zA-Z0-9|\[\]\\\\]+)'; |
|
| 177 | 177 | if ($parameter !== null) { |
| 178 | - $pattern .= '\s+\$'.$parameter; |
|
| 178 | + $pattern .= '\s+\$' . $parameter; |
|
| 179 | 179 | } |
| 180 | 180 | $pattern .= '/'; |
| 181 | 181 | |
@@ -203,7 +203,7 @@ discard block |
||
| 203 | 203 | } |
| 204 | 204 | |
| 205 | 205 | // return the non-null type |
| 206 | - foreach(\explode('|', $type) as $potentialType) { |
|
| 206 | + foreach (\explode('|', $type) as $potentialType) { |
|
| 207 | 207 | $potentialType = \strtolower(\trim($potentialType)); |
| 208 | 208 | if ($potentialType !== 'null') { |
| 209 | 209 | return $potentialType; |
@@ -282,15 +282,15 @@ discard block |
||
| 282 | 282 | |
| 283 | 283 | // group use statement |
| 284 | 284 | if (!empty($matches['group'])) { |
| 285 | - return new TypeToken($matches['group'].$type); |
|
| 285 | + return new TypeToken($matches['group'] . $type); |
|
| 286 | 286 | } |
| 287 | 287 | |
| 288 | 288 | // grouped aliased use statement |
| 289 | 289 | if (!empty($matches['namespace']) && !empty($matches['classname'])) { |
| 290 | - return new TypeToken($matches['namespace'].$matches['classname']); |
|
| 290 | + return new TypeToken($matches['namespace'] . $matches['classname']); |
|
| 291 | 291 | } |
| 292 | 292 | |
| 293 | - return new TypeToken($namespace.'\\'.$type); |
|
| 293 | + return new TypeToken($namespace . '\\' . $type); |
|
| 294 | 294 | } |
| 295 | 295 | |
| 296 | 296 | /** |