Merge pull request #1157 from samsonasik/rem-isset-host

remove unneeded isset($options[hostname]) when next check is !empty($options[hostname])
This commit is contained in:
Lonnie Ezell 2018-08-26 22:10:26 -05:00 committed by GitHub
commit b612bf1bbe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1173,7 +1173,7 @@ class RouteCollection implements RouteCollectionInterface
$options = array_merge((array)$this->currentOptions, (array)$options);
// Hostname limiting?
if (isset($options['hostname']) && ! empty($options['hostname']))
if (! empty($options['hostname']))
{
// @todo determine if there's a way to whitelist hosts?
if (strtolower($_SERVER['HTTP_HOST']) != strtolower($options['hostname']))