style: fix php-cs-fixer linting (#1575)
This commit is contained in:
parent
b43cb62a2e
commit
ae5746d26d
|
@ -17,7 +17,7 @@ class SystemstatusController extends Zend_Controller_Action
|
|||
Zend_Layout::getMvcInstance()->assign('parent_page', 'Settings');
|
||||
|
||||
$partitions = Application_Model_Systemstatus::GetDiskInfo();
|
||||
$this->view->status = new StdClass();
|
||||
$this->view->status = new stdClass();
|
||||
$this->view->status->partitions = $partitions;
|
||||
$this->view->version = $this->version;
|
||||
}
|
||||
|
|
|
@ -1219,7 +1219,7 @@ SQL;
|
|||
*/
|
||||
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);
|
||||
$endDt = new DateTime($p_ends, $utcTimezone);
|
||||
$durationSeconds = intval($endDt->format('U')) - intval($startDt->format('U'));
|
||||
|
|
|
@ -213,7 +213,7 @@ class Application_Model_Systemstatus
|
|||
foreach ($musicDirs as $md) {
|
||||
$totalSpace = disk_total_space($md->getDirectory());
|
||||
if (!isset($partitions[$totalSpace])) {
|
||||
$partitions[$totalSpace] = new StdClass();
|
||||
$partitions[$totalSpace] = new stdClass();
|
||||
$partitions[$totalSpace]->totalSpace = $totalSpace;
|
||||
$partitions[$totalSpace]->totalFreeSpace = disk_free_space($md->getDirectory());
|
||||
$partitions[$totalSpace]->usedSpace = $totalSpace - $partitions[$totalSpace]->totalFreeSpace;
|
||||
|
|
Loading…
Reference in New Issue