@@ -38,7 +38,7 @@ |
||
38 | 38 | if (!$types || $types->size() !== 1) { |
39 | 39 | return null; |
40 | 40 | } |
41 | - $type = (string)$types->values()->toArray()[0]; |
|
41 | + $type = (string) $types->values()->toArray()[0]; |
|
42 | 42 | if (!in_array($type, self::$noTypeHints, true) |
43 | 43 | || ($allowed && in_array($type, self::$php7typeHints, true))) { |
44 | 44 |
@@ -52,7 +52,7 @@ |
||
52 | 52 | if ($type !== $qualifiedType) { |
53 | 53 | $type = $qualifiedType; |
54 | 54 | } else { |
55 | - $type = '\\'.$type; |
|
55 | + $type = '\\' . $type; |
|
56 | 56 | } |
57 | 57 | } |
58 | 58 |
@@ -25,7 +25,7 @@ |
||
25 | 25 | if ($vars->size() > 0) { |
26 | 26 | $var = $vars->get(0); |
27 | 27 | $types = TypeUtils::expressionToTypes($var->getType()); |
28 | - foreach($types as $type) { |
|
28 | + foreach ($types as $type) { |
|
29 | 29 | $type = TypeUtils::guessQualifiedName($this->struct, $type); |
30 | 30 | $member->addType($type); |
31 | 31 | } |
@@ -102,7 +102,7 @@ |
||
102 | 102 | * @return $this |
103 | 103 | */ |
104 | 104 | public function addSimpleDescParameter(string $name, $types = null, string $typeDescription = null, $defaultValue = null) { |
105 | - $types = (array)$types; |
|
105 | + $types = (array) $types; |
|
106 | 106 | $parameter = new PhpParameter($name); |
107 | 107 | $parameter->setTypes($types); |
108 | 108 | $parameter->setTypeDescription($typeDescription); |