@@ -64,8 +64,7 @@ discard block |
||
| 64 | 64 | */ |
| 65 | 65 | public static function fromName(string $class, string $method) |
| 66 | 66 | { |
| 67 | - return new static(new PHPNativeReflectionMethod |
|
| 68 | - ( |
|
| 67 | + return new static(new PHPNativeReflectionMethod( |
|
| 69 | 68 | $class, $method |
| 70 | 69 | )); |
| 71 | 70 | } |
@@ -89,8 +88,7 @@ discard block |
||
| 89 | 88 | { |
| 90 | 89 | $this->typeParser = new TypeParser($parent); |
| 91 | 90 | $this->accessor->setRawValue('owner', $parent); |
| 92 | - $this->accessor->setRawValue |
|
| 93 | - ( |
|
| 91 | + $this->accessor->setRawValue( |
|
| 94 | 92 | 'name', |
| 95 | 93 | $this->reflector->getName() |
| 96 | 94 | ); |
@@ -118,8 +116,7 @@ discard block |
||
| 118 | 116 | $type = $this->reflector->getReturnType(); |
| 119 | 117 | if ($type) |
| 120 | 118 | { |
| 121 | - $this->accessor->setRawValue |
|
| 122 | - ( |
|
| 119 | + $this->accessor->setRawValue( |
|
| 123 | 120 | 'nativeReturnType', |
| 124 | 121 | !$type->isBuiltin() ? '\\' . $type : (string)$type |
| 125 | 122 | ); |
@@ -136,13 +133,11 @@ discard block |
||
| 136 | 133 | */ |
| 137 | 134 | protected function initParams() |
| 138 | 135 | { |
| 139 | - $this->accessor->setRawValue |
|
| 140 | - ( |
|
| 136 | + $this->accessor->setRawValue( |
|
| 141 | 137 | 'parameters', |
| 142 | 138 | new FixedList(count($this->reflector->getParameters())) |
| 143 | 139 | ); |
| 144 | - $this->accessor->setRawValue |
|
| 145 | - ( |
|
| 140 | + $this->accessor->setRawValue( |
|
| 146 | 141 | 'nativeParameters', |
| 147 | 142 | new FixedList(count($this->reflector->getParameters())) |
| 148 | 143 | ); |
@@ -163,8 +158,7 @@ discard block |
||
| 163 | 158 | |
| 164 | 159 | if (!$this->parameters->containsKey($param)) |
| 165 | 160 | { |
| 166 | - throw new \Exception |
|
| 167 | - ( |
|
| 161 | + throw new \Exception( |
|
| 168 | 162 | 'Tried to set param annotation for non existant ' |
| 169 | 163 | . 'parameter: ' . $param |
| 170 | 164 | ); |
@@ -177,8 +171,7 @@ discard block |
||
| 177 | 171 | |
| 178 | 172 | if (!$comparator->compatible($nativeType, $type)) |
| 179 | 173 | { |
| 180 | - throw new \Exception |
|
| 181 | - ( |
|
| 174 | + throw new \Exception( |
|
| 182 | 175 | 'Types are incompatible for: ' |
| 183 | 176 | . $this->reflector->getName() . '::' . $items[1] |
| 184 | 177 | ); |
@@ -193,8 +186,7 @@ discard block |
||
| 193 | 186 | * |
| 194 | 187 | * @param PHPNativeReflectionParameter $reflect |
| 195 | 188 | */ |
| 196 | - protected function addParameter |
|
| 197 | - ( |
|
| 189 | + protected function addParameter( |
|
| 198 | 190 | PHPNativeReflectionParameter $reflect |
| 199 | 191 | ) |
| 200 | 192 | : void |