Commit 0e66517e authored by Taylor Otwell's avatar Taylor Otwell

simplify with ternary shortcut.

parent a216af62
......@@ -96,7 +96,7 @@ class URI {
$uri = static::remove($uri, $index);
}
return (($uri = trim($uri, '/')) !== '') ? $uri : '/';
return trim($uri, '/') ?: '/';
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment