Skip to content

Commit

Permalink
style: Compliance for the linter
Browse files Browse the repository at this point in the history
Signed-off-by: Grégory Marigot <gmarigot@teicee.com>
  • Loading branch information
proxyconcept authored Apr 5, 2024
1 parent bfa19fd commit 8dbf2bf
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions lib/Os.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,13 @@ public function getDiskInfo(): array {
foreach (explode(':', $filters) as $filter) {
// convert special filters to their corresponding paths
switch ($filter) {
case 'DOCROOT': $path = isset($_SERVER['SCRIPT_FILENAME']) ? dirname($_SERVER['SCRIPT_FILENAME']) : (isset(
$_SERVER['DOCUMENT_ROOT']) ? $_SERVER['DOCUMENT_ROOT'] : '');
case 'DOCROOT': $path = '';
if (isset($_SERVER['SCRIPT_FILENAME'])) {
$path = dirname($_SERVER['SCRIPT_FILENAME']);
}
elseif (isset($_SERVER['DOCUMENT_ROOT'])) {
$path = $_SERVER['DOCUMENT_ROOT'];
}
break;
case 'DATADIR': $path = $this->config->getSystemValue('datadirectory', '');
break;
Expand Down

0 comments on commit 8dbf2bf

Please sign in to comment.