@@ -47,8 +47,7 @@ discard block |
||
47 | 47 | { |
48 | 48 | if (!isset($args[$i])) |
49 | 49 | { |
50 | - throw new MissingRequiredParameterException |
|
51 | - ( |
|
50 | + throw new MissingRequiredParameterException( |
|
52 | 51 | get_class($this->object), |
53 | 52 | $property->name |
54 | 53 | ); |
@@ -109,14 +108,12 @@ discard block |
||
109 | 108 | { |
110 | 109 | if (!$this->reflect->properties->contains($property)) |
111 | 110 | { |
112 | - throw new CannotWritePropertyException |
|
113 | - ( |
|
111 | + throw new CannotWritePropertyException( |
|
114 | 112 | get_class($this->object), $property |
115 | 113 | ); |
116 | 114 | } |
117 | 115 | |
118 | - $this->setAnyValue |
|
119 | - ( |
|
116 | + $this->setAnyValue( |
|
120 | 117 | $this->reflect->properties[$property], |
121 | 118 | $value |
122 | 119 | ); |
@@ -130,8 +127,7 @@ discard block |
||
130 | 127 | } |
131 | 128 | else |
132 | 129 | { |
133 | - $this->setNonNullValue |
|
134 | - ( |
|
130 | + $this->setNonNullValue( |
|
135 | 131 | $property->name, |
136 | 132 | $value, |
137 | 133 | $property->type |
@@ -198,8 +194,7 @@ discard block |
||
198 | 194 | } |
199 | 195 | elseif (is_object($value) && method_exists([$value, $method])) |
200 | 196 | { |
201 | - $this->setScalarValue |
|
202 | - ( |
|
197 | + $this->setScalarValue( |
|
203 | 198 | $property, |
204 | 199 | $value->$method(), |
205 | 200 | $method, |
@@ -238,8 +233,7 @@ discard block |
||
238 | 233 | |
239 | 234 | private function throwError($property, $expected, $value) |
240 | 235 | { |
241 | - throw new IllegalPropertyTypeException |
|
242 | - ( |
|
236 | + throw new IllegalPropertyTypeException( |
|
243 | 237 | get_class($this->object), |
244 | 238 | $property, |
245 | 239 | $expected, |
@@ -18,8 +18,7 @@ |
||
18 | 18 | { |
19 | 19 | public function __construct($class, $property, $previous = null) |
20 | 20 | { |
21 | - parent::__construct |
|
22 | - ( |
|
21 | + parent::__construct( |
|
23 | 22 | 'Missing required parameter in constructor. ' |
24 | 23 | . $class . ' requires a value for ' . $property, |
25 | 24 | 0, |