Sonar fixes.

This commit is contained in:
Cody Cook 2024-05-06 23:04:45 -07:00
commit 5db46c220c
5 changed files with 13 additions and 6 deletions

View file

@ -67,5 +67,3 @@ class CustomCDN
$this->public = false;
}
}
?>

View file

@ -229,4 +229,4 @@ class DJ
{
return $this->mixes;
}
}
}

View file

@ -97,8 +97,12 @@ class Mix
if ($this->loadDJs) {
require_once 'DJ.php';
$this->djs[] = new DJ($mix['dj1'], $this->db);
if ($mix['dj2'] != null) $this->djs[] = new DJ($mix['dj2'], $this->db);
if ($mix['dj3'] != null) $this->djs[] = new DJ($mix['dj3'], $this->db);
if ($mix['dj2'] != null) {
$this->djs[] = new DJ($mix['dj2'], $this->db);
}
if ($mix['dj3'] != null) {
$this->djs[] = new DJ($mix['dj3'], $this->db);
}
$this->djs = array_filter($this->djs);
}

View file

@ -5,4 +5,4 @@ require_once 'vendor/autoload.php';
Class S3 extends Aws\S3\S3Client{
}
}

View file

@ -90,6 +90,11 @@ function social_line($social, $value): string
$color = "#39E09B";
$name = "Linktree";
break;
default:
$icon = "fa-solid fa-link";
$url = $value;
$name = "Website";
break;
}
return "