Skip to content

Commit

Permalink
CRM-19303: Small changes to remove inline control structures.
Browse files Browse the repository at this point in the history
  • Loading branch information
Milton Zurita authored and seamuslee001 committed Nov 17, 2016
1 parent 43d8498 commit 75c21cd
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions CRM/Utils/System/DrupalBase.php
Expand Up @@ -623,8 +623,9 @@ private function getUrl($baseUrl, $folder) {
* @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;
Expand All @@ -636,11 +637,13 @@ public function checkMultisite($root, $baseUrl, $default = "default") {
$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)) {
Expand All @@ -650,4 +653,5 @@ public function checkMultisite($root, $baseUrl, $default = "default") {
}
}
}

}

0 comments on commit 75c21cd

Please sign in to comment.