Skip to content

Commit

Permalink
Fix PHPCS errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Jan 8, 2017
1 parent ad3dc5a commit be56d53
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions src/Routing/Route/Route.php
Expand Up @@ -374,6 +374,7 @@ public function hostMatches($host)
return true;
}
$pattern = '@^' . str_replace('\*', '.*', preg_quote($this->options['_host'], '@')) . '$@';

return preg_match($pattern, $host) !== 0;
}

Expand Down
1 change: 0 additions & 1 deletion tests/TestCase/Routing/RouteCollectionTest.php
Expand Up @@ -330,7 +330,6 @@ public function testParseRequest()
'_matchedRoute' => '/b/:id',
];
$this->assertEquals($expected, $result);

}

/**
Expand Down

0 comments on commit be56d53

Please sign in to comment.