style: fix php-cs-fixer linting (#1575)

This commit is contained in:
Jonas L 2022-02-08 10:14:59 +01:00 committed by GitHub
parent b43cb62a2e
commit ae5746d26d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -17,7 +17,7 @@ class SystemstatusController extends Zend_Controller_Action
Zend_Layout::getMvcInstance()->assign('parent_page', 'Settings'); Zend_Layout::getMvcInstance()->assign('parent_page', 'Settings');
$partitions = Application_Model_Systemstatus::GetDiskInfo(); $partitions = Application_Model_Systemstatus::GetDiskInfo();
$this->view->status = new StdClass(); $this->view->status = new stdClass();
$this->view->status->partitions = $partitions; $this->view->status->partitions = $partitions;
$this->view->version = $this->version; $this->view->version = $this->version;
} }

View File

@ -1219,7 +1219,7 @@ SQL;
*/ */
private static function getPercentScheduled($p_starts, $p_ends, $p_time_filled) private static function getPercentScheduled($p_starts, $p_ends, $p_time_filled)
{ {
$utcTimezone = new DatetimeZone('UTC'); $utcTimezone = new DateTimeZone('UTC');
$startDt = new DateTime($p_starts, $utcTimezone); $startDt = new DateTime($p_starts, $utcTimezone);
$endDt = new DateTime($p_ends, $utcTimezone); $endDt = new DateTime($p_ends, $utcTimezone);
$durationSeconds = intval($endDt->format('U')) - intval($startDt->format('U')); $durationSeconds = intval($endDt->format('U')) - intval($startDt->format('U'));

View File

@ -213,7 +213,7 @@ class Application_Model_Systemstatus
foreach ($musicDirs as $md) { foreach ($musicDirs as $md) {
$totalSpace = disk_total_space($md->getDirectory()); $totalSpace = disk_total_space($md->getDirectory());
if (!isset($partitions[$totalSpace])) { if (!isset($partitions[$totalSpace])) {
$partitions[$totalSpace] = new StdClass(); $partitions[$totalSpace] = new stdClass();
$partitions[$totalSpace]->totalSpace = $totalSpace; $partitions[$totalSpace]->totalSpace = $totalSpace;
$partitions[$totalSpace]->totalFreeSpace = disk_free_space($md->getDirectory()); $partitions[$totalSpace]->totalFreeSpace = disk_free_space($md->getDirectory());
$partitions[$totalSpace]->usedSpace = $totalSpace - $partitions[$totalSpace]->totalFreeSpace; $partitions[$totalSpace]->usedSpace = $totalSpace - $partitions[$totalSpace]->totalFreeSpace;