@@ -196,7 +196,9 @@ enable this feature by using :class:`Symfony\\Component\\PropertyAccess\\Propert
196
196
{
197
197
$property = lcfirst(substr($name, 3));
198
198
if ('get' === substr($name, 0, 3)) {
199
- return isset($this->children[$property]) ? $this->children[$property] : null;
199
+ return isset($this->children[$property])
200
+ ? $this->children[$property]
201
+ : null;
200
202
} elseif ('set' === substr($name, 0, 3)) {
201
203
$value = 1 == count($args) ? $args[0] : null;
202
204
$this->children[$property] = $value;
@@ -289,7 +291,9 @@ see `Enable other Features`_.
289
291
{
290
292
$property = lcfirst(substr($name, 3));
291
293
if ('get' === substr($name, 0, 3)) {
292
- return isset($this->children[$property]) ? $this->children[$property] : null;
294
+ return isset($this->children[$property])
295
+ ? $this->children[$property]
296
+ : null;
293
297
} elseif ('set' === substr($name, 0, 3)) {
294
298
$value = 1 == count($args) ? $args[0] : null;
295
299
$this->children[$property] = $value;
@@ -307,7 +311,7 @@ see `Enable other Features`_.
307
311
308
312
$accessor->setValue($person, 'wouter', array(...));
309
313
310
- echo $person->getWouter() // array(...)
314
+ echo $person->getWouter(); // array(...)
311
315
312
316
Mixing Objects and Arrays
313
317
-------------------------
0 commit comments