Skip to content

Commit

Permalink
LDP-159: CS fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
pagachdrunomics committed Mar 28, 2019
1 parent e91fe70 commit 1057aab
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 1057aab

Please sign in to comment.