Skip to content

Commit

Permalink
Fixing un-reachable code
Browse files Browse the repository at this point in the history
  • Loading branch information
Rican7 committed Sep 28, 2013
1 parent 033cdfa commit a086f4f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Klein/Klein.php
Original file line number Diff line number Diff line change
Expand Up @@ -794,13 +794,13 @@ protected function error(Exception $err)
foreach (array_reverse($this->errorCallbacks) as $callback) {
if (is_callable($callback)) {
if (is_string($callback)) {
if ($callback($this, $msg, $type, $err)) {
return;
}
$callback($this, $msg, $type, $err);

return;
} else {
if (call_user_func($callback, $this, $msg, $type, $err)) {
return;
}
call_user_func($callback, $this, $msg, $type, $err);

return;
}
} else {
if (null !== $this->service && null !== $this->response) {
Expand Down

0 comments on commit a086f4f

Please sign in to comment.