Skip to content

Commit

Permalink
coding standard correction
Browse files Browse the repository at this point in the history
  • Loading branch information
phpmathan committed Jul 2, 2020
1 parent eca75e9 commit bd30fd8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/stdlib/src/Helper/ObjectHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ public static function getDefaultValue(string $type)
*/
public static function toObject(array $array): stdClass
{
$object = new \stdClass;
$object = new stdClass;

if (!$array) {
return $object;
Expand All @@ -206,10 +206,10 @@ public static function toObject(array $array): stdClass
}
}
}
$object->$name = $isNumericArray ?$value :static::toObject($value);

$object->$name = $isNumericArray ? $value : static::toObject($value);
}

return $object;
}
}

0 comments on commit bd30fd8

Please sign in to comment.