From 75c21cd07c23285470bc9761fb9411c265430eb0 Mon Sep 17 00:00:00 2001 From: Milton Zurita Date: Mon, 26 Sep 2016 22:39:06 -0500 Subject: [PATCH] CRM-19303: Small changes to remove inline control structures. --- CRM/Utils/System/DrupalBase.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/CRM/Utils/System/DrupalBase.php b/CRM/Utils/System/DrupalBase.php index 62ddbbbdf7..19806af4c8 100644 --- a/CRM/Utils/System/DrupalBase.php +++ b/CRM/Utils/System/DrupalBase.php @@ -623,8 +623,9 @@ abstract class CRM_Utils_System_DrupalBase extends CRM_Utils_System_Base { * @param $default string */ public function checkMultisite($root, $baseUrl, $default = "default") { - if (isset($this->filesUrl)) + if (isset($this->filesUrl)) { return $this->filesUrl; + } $basepath = $this->checkBasePath($root); $correct = NULL; @@ -636,11 +637,13 @@ abstract class CRM_Utils_System_DrupalBase extends CRM_Utils_System_Base { $folders = scandir($basepath . 'sites/'); foreach ($folders as $folder) { //Ignore hidden directories/files... - if (strpos($folder, '.') === 0 || $folder == 'all') + if (strpos($folder, '.') === 0 || $folder == 'all') { continue; + } //Check if it is a directory - if (!is_dir($basepath . 'sites/' . $folder)) + if (!is_dir($basepath . 'sites/' . $folder)) { continue; + } //Check if files path exists... if ($this->checkFilesExists($basepath, $folder)) { @@ -650,4 +653,5 @@ abstract class CRM_Utils_System_DrupalBase extends CRM_Utils_System_Base { } } } + } -- 2.25.1