fix indentation and misc errors according to PSR2 coding style guide

This commit is contained in:
Marc Tobias Metten
2016-09-14 03:16:46 +02:00
parent 74c06ef877
commit 4a321487f3
21 changed files with 406 additions and 374 deletions

View File

@@ -4,9 +4,10 @@ class ParameterParser
{
private $aParams;
function __construct($aParams = NULL)
function __construct($aParams = null)
{
$this->aParams = ($aParams === NULL) ? $_GET : $aParams;
$this->aParams = ($aParams === null) ? $_GET : $aParams;
}
function getBool($sName, $bDefault = false)
@@ -77,9 +78,9 @@ class ParameterParser
return $aDefault;
}
function getPreferredLanguages($sFallback = NULL)
function getPreferredLanguages($sFallback = null)
{
if ($sFallback === NULL && isset($_SERVER["HTTP_ACCEPT_LANGUAGE"])) {
if ($sFallback === null && isset($_SERVER["HTTP_ACCEPT_LANGUAGE"])) {
$sFallback = $_SERVER["HTTP_ACCEPT_LANGUAGE"];
}