From 3426ff1e6c369065098b925d19df750f81a26a52 Mon Sep 17 00:00:00 2001 From: David Buchmann Date: Wed, 2 Mar 2016 04:36:12 -0500 Subject: [PATCH] Applied fixes from StyleCI --- src/RequestMatcher/RegexRequestMatcher.php | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/src/RequestMatcher/RegexRequestMatcher.php b/src/RequestMatcher/RegexRequestMatcher.php index 1947466..52fb3b9 100644 --- a/src/RequestMatcher/RegexRequestMatcher.php +++ b/src/RequestMatcher/RegexRequestMatcher.php @@ -26,31 +26,31 @@ final class RegexRequestMatcher implements RequestMatcher /** * @var array */ - private $methods = array(); + private $methods = []; /** * @var string */ - private $ips = array(); + private $ips = []; /** * @var array */ - private $attributes = array(); + private $attributes = []; /** * @var string[] */ - private $schemes = array(); + private $schemes = []; /** * The regular expressions used for path or host must be specified without delimiter. * You do not need to escape the forward slash / to match it. * - * @param string|null $path Regular expression for the path - * @param string|null $host Regular expression for the hostname - * @param string|string[]|null $methods Method or list of methods to match - * @param string|string[]|null $schemes Scheme or list of schemes to match (e.g. http or https) + * @param string|null $path Regular expression for the path + * @param string|null $host Regular expression for the hostname + * @param string|string[]|null $methods Method or list of methods to match + * @param string|string[]|null $schemes Scheme or list of schemes to match (e.g. http or https) */ public function __construct($path = null, $host = null, $methods = [], $schemes = []) { @@ -76,7 +76,6 @@ public function matches(RequestInterface $request) } if (null !== $this->path && !preg_match('{'.$this->path.'}', rawurldecode($request->getUri()->getPath()))) { - return false; }