Skip to content

Commit

Permalink
No need to call isset() twice. (#18204)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmichot authored and taylorotwell committed Mar 4, 2017
1 parent 311698e commit 90dcfb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ValidationServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ protected function registerValidationFactory()
// The validation presence verifier is responsible for determining the existence of
// values in a given data collection which is typically a relational database or
// other persistent data stores. It is used to check for "uniqueness" as well.
if (isset($app['db']) && isset($app['validation.presence'])) {
if (isset($app['db'], $app['validation.presence'])) {
$validator->setPresenceVerifier($app['validation.presence']);
}

Expand Down

0 comments on commit 90dcfb7

Please sign in to comment.