Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.2] Router actionReferencesController() - Minor change #13397

Merged
merged 1 commit into from
May 2, 2016
Merged

[5.2] Router actionReferencesController() - Minor change #13397

merged 1 commit into from
May 2, 2016

Conversation

KennedyTedesco
Copy link
Contributor

Avoids useless logical operations.

@@ -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']);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't that second group by wrapped in parens since you have an OR?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not necessarily. But it's good for reading. 👍

@taylorotwell taylorotwell merged commit 9daafce into laravel:5.2 May 2, 2016
@KennedyTedesco KennedyTedesco deleted the router-5.2 branch May 2, 2016 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants