Skip to content

Commit

Permalink
Cleaned code.
Browse files Browse the repository at this point in the history
  • Loading branch information
7r1n17y committed Jul 9, 2017
1 parent 5da89e3 commit ac89992
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/Extender.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,10 @@ public function __get($var_name) {
public function __call($method, $args) {
foreach($this->_exts as $ext) {
if (method_exists($ext, $method)) {
return call_user_method_array($method,$ext,$args);
return call_user_method_array($method,$ext,$args);
}
}
throw new Exception("This Method {$method} doesn't exists");
}


throw new \RuntimeException(sprintf('This method "%s" doesn\'t exists', $method);
}
}
?>

0 comments on commit ac89992

Please sign in to comment.