From 650c7f86654412f4ffc811b7cd7d31315a3f6ade Mon Sep 17 00:00:00 2001 From: Gabriel Caruso Date: Sun, 14 Oct 2018 17:05:15 -0300 Subject: [PATCH] [5.7] Simplify condition --- src/Illuminate/Routing/UrlGenerator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Illuminate/Routing/UrlGenerator.php b/src/Illuminate/Routing/UrlGenerator.php index 6c29daadc0ea..12e64578ce15 100755 --- a/src/Illuminate/Routing/UrlGenerator.php +++ b/src/Illuminate/Routing/UrlGenerator.php @@ -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, '\\');