Skip to content

Commit

Permalink
simplify code
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek committed Dec 7, 2023
1 parent a3c582f commit d2393c5
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions Ext.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@ public static function instantiate()
$rc = new \ReflectionClass(get_called_class());
$args = func_get_args();

return count($args) === 0 ?
$rc->newInstance() :
$rc->newInstanceArgs($args);
return $rc->newInstanceArgs($args);
}

/**
Expand All @@ -53,9 +51,7 @@ public static function inst()
$rc = new \ReflectionClass(get_called_class());
$args = func_get_args();

return count($args) === 0 ?
$rc->newInstance() :
$rc->newInstanceArgs($args);
return $rc->newInstanceArgs($args);
}

/**
Expand Down

0 comments on commit d2393c5

Please sign in to comment.