Skip to content

Commit

Permalink
cs fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nadar committed Jan 24, 2018
1 parent 81d924f commit 455c01a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/helpers/ObjectHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,12 @@ public static function instanceOf($variable, $instances, $throwException = true)
{
// if instances is an object (compare object directly) we have to extra the class name to compare with instanceof later
if (is_object($instances)) {
$instances = get_class($instances);
$instances = get_class($instances);
}

$instances = (array) $instances;

foreach ($instances as $class) {

if ($variable instanceof $class) {
return true;
}
Expand Down

0 comments on commit 455c01a

Please sign in to comment.