diff --git a/system/src/Grav/Common/Data/Validation.php b/system/src/Grav/Common/Data/Validation.php index f8e0c3119..059ea92cd 100644 --- a/system/src/Grav/Common/Data/Validation.php +++ b/system/src/Grav/Common/Data/Validation.php @@ -283,7 +283,7 @@ class Validation protected static function filterFile($value, array $params, array $field) { - if (isset($field['multiple']) && $field['multiple'] == true) { + if (isset($field['multiple']) && $field['multiple'] === true) { return (array) $value; } diff --git a/system/src/Grav/Common/Grav.php b/system/src/Grav/Common/Grav.php index 669d91cee..e8a9108aa 100644 --- a/system/src/Grav/Common/Grav.php +++ b/system/src/Grav/Common/Grav.php @@ -318,7 +318,7 @@ class Grav extends Container $code = $matches[2]; } - if ($code == null) { + if ($code === null) { $code = $this['config']->get('system.pages.redirect_default_code', 301); } diff --git a/system/src/Grav/Common/Page/Page.php b/system/src/Grav/Common/Page/Page.php index c32c96360..a4c9c0b43 100644 --- a/system/src/Grav/Common/Page/Page.php +++ b/system/src/Grav/Common/Page/Page.php @@ -528,7 +528,7 @@ class Page // if no cached-content run everything - if ($this->content === false || $cache_enable == false) { + if ($this->content === false || $cache_enable === false) { $this->content = $this->raw_content; self::getGrav()->fireEvent('onPageContentRaw', new Event(['page' => $this])); @@ -1881,7 +1881,7 @@ class Page while (true) { $theParent = $topParent->parent(); - if ($theParent != null && $theParent->parent() !== null) { + if ($theParent !== null && $theParent->parent() !== null) { $topParent = $theParent; } else { break; diff --git a/system/src/Grav/Common/Uri.php b/system/src/Grav/Common/Uri.php index 16a0b31d7..4a7006447 100644 --- a/system/src/Grav/Common/Uri.php +++ b/system/src/Grav/Common/Uri.php @@ -258,7 +258,7 @@ class Uri $language = $grav['language']; // add the port to the base for non-standard ports - if ($config->get('system.reverse_proxy_setup') == false && $this->port != '80' && $this->port != '443') { + if ($config->get('system.reverse_proxy_setup') === false && $this->port != '80' && $this->port != '443') { $this->base .= ":" . $this->port; }