Skip to content

Commit

Permalink
Merge pull request #26121 from carusogabriel/simplify-condition
Browse files Browse the repository at this point in the history
[5.7] Simplify condition
  • Loading branch information
GrahamCampbell authored Oct 15, 2018
2 parents 9a1e211 + 650c7f8 commit bc84fb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Routing/UrlGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ protected function formatAction($action)
$action = '\\'.implode('@', $action);
}

if ($this->rootNamespace && ! (strpos($action, '\\') === 0)) {
if ($this->rootNamespace && strpos($action, '\\') !== 0) {
return $this->rootNamespace.'\\'.$action;
} else {
return trim($action, '\\');
Expand Down

0 comments on commit bc84fb6

Please sign in to comment.