Skip to content

Commit

Permalink
Merge pull request #1 from drunomics/feature/LDP-159
Browse files Browse the repository at this point in the history
LDP-159: CS fixes.
  • Loading branch information
fago authored Mar 28, 2019
2 parents 22bf6e4 + 1057aab commit 9fb54cb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/RequestMatchException.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
/**
* The exceptions thrown when the request cannot be matched.
*/
class RequestMatchException extends \Exception {
class RequestMatchException extends \Exception {

}
10 changes: 4 additions & 6 deletions src/RequestMatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace drunomics\MultisiteRequestMatcher;


use Drupal\Core\Render\Markup;
use Symfony\Component\HttpFoundation\Request;

/**
Expand All @@ -16,7 +14,7 @@ class RequestMatcher {
*
* @var static
*/
static $instance;
private static $instance;

/**
* Gets an instance, while making sure there is only one instantiated.
Expand Down Expand Up @@ -120,7 +118,7 @@ private function getRequestFromGlobals() {
$server['CONTENT_TYPE'] = $_SERVER['HTTP_CONTENT_TYPE'];
}
}
return (new Request($_GET, $_POST, array(), $_COOKIE, $_FILES, $server));
return (new Request($_GET, $_POST, [], $_COOKIE, $_FILES, $server));
}

/**
Expand Down Expand Up @@ -186,9 +184,9 @@ public static function printSiteVariables() {
* - SITE
* - SITE_VARIANT
* - SITE_HOST
* - SITE_MAIN_HOST
* - SITE_MAIN_HOST.
*
* @param \Symfony\Component\HttpFoundation\Request|NULL $request
* @param \Symfony\Component\HttpFoundation\Request|null $request
* (optional) The request object.
*
* @return string
Expand Down

0 comments on commit 9fb54cb

Please sign in to comment.