Skip to content

Commit

Permalink
[5.2] Router actionReferencesController() - Minor change
Browse files Browse the repository at this point in the history
Avoids useless logical operations.
  • Loading branch information
KennedyTedesco committed May 1, 2016
1 parent 0d422f1 commit 9daafce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Routing/Router.php
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@ protected function actionReferencesController($action)
return false;
}

return is_string($action) || is_string(isset($action['uses']) ? $action['uses'] : null);
return is_string($action) || isset($action['uses']) && is_string($action['uses']);
}

/**
Expand Down

0 comments on commit 9daafce

Please sign in to comment.