Skip to content

Commit ad4aef3

Browse files
committed
Fix code style
1 parent 06d398c commit ad4aef3

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/JsonMapper.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,8 @@ public function map($json, $object)
301301
// but only a flat type (i.e. string, int)
302302
if ($this->bStrictObjectTypeChecking
303303
&& !is_subclass_of($type, \BackedEnum::class)
304-
&& (!is_subclass_of($type, \DateTimeInterface::class) || !$this->isSafeDateTime($jvalue))
304+
&& (!is_subclass_of($type, \DateTimeInterface::class)
305+
|| !$this->isSafeDateTime($jvalue))
305306
) {
306307
throw new JsonMapper_Exception(
307308
'JSON property "' . $key . '" must be an object, '
@@ -456,7 +457,8 @@ public function mapArray(
456457
$array[$key] = $jvalue;
457458
} else if ($this->bStrictObjectTypeChecking
458459
&& !is_subclass_of($class, \BackedEnum::class)
459-
&& (!is_subclass_of($class, \DateTimeInterface::class) || !$this->isSafeDateTime($jvalue))
460+
&& (!is_subclass_of($class, \DateTimeInterface::class)
461+
|| !$this->isSafeDateTime($jvalue))
460462
) {
461463
throw new JsonMapper_Exception(
462464
'JSON property'

0 commit comments

Comments
 (0)