From f6a7bddd8dbc3d769830b3f394c7c2e88b7336f8 Mon Sep 17 00:00:00 2001 From: Aaron Carlino Date: Wed, 20 Mar 2019 14:33:34 +1300 Subject: [PATCH] Linting --- src/Forms/GridField/GridFieldLevelup.php | 2 +- src/includes/constants.php | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Forms/GridField/GridFieldLevelup.php b/src/Forms/GridField/GridFieldLevelup.php index d16d41a88..84d92af19 100644 --- a/src/Forms/GridField/GridFieldLevelup.php +++ b/src/Forms/GridField/GridFieldLevelup.php @@ -88,7 +88,7 @@ class GridFieldLevelup implements GridField_HTMLProvider $template = SSViewer::get_templates_by_class($this, '', __CLASS__); return array( 'before' => $forTemplate->renderWith($template), - ); + ); } public function setAttributes($attrs) diff --git a/src/includes/constants.php b/src/includes/constants.php index a619db5f2..277230b3d 100644 --- a/src/includes/constants.php +++ b/src/includes/constants.php @@ -139,11 +139,11 @@ if (!defined('BASE_URL')) { ) { $requestURI = $_SERVER['REQUEST_URI']; // Check if /base/public or /base are in the request - foreach ([$baseURL, dirname($baseURL)] as $candidate) { - if (stripos($requestURI, $candidate) === 0) { - return $candidate; - } + foreach ([$baseURL, dirname($baseURL)] as $candidate) { + if (stripos($requestURI, $candidate) === 0) { + return $candidate; } + } // Ambiguous return ''; }