cs fixes
This commit is contained in:
parent
36b0036285
commit
71531d606b
1 changed files with 6 additions and 6 deletions
|
|
@ -180,8 +180,12 @@ abstract class ProgressHelper implements HelperInterface
|
|||
{
|
||||
$ar = array_reverse(explode(":", $rawDuration));
|
||||
$duration = floatval($ar[0]);
|
||||
if (!empty($ar[1])) $duration += intval($ar[1]) * 60;
|
||||
if (!empty($ar[2])) $duration += intval($ar[2]) * 60 * 60;
|
||||
if (!empty($ar[1])) {
|
||||
$duration += intval($ar[1]) * 60;
|
||||
}
|
||||
if (!empty($ar[2])) {
|
||||
$duration += intval($ar[2]) * 60 * 60;
|
||||
}
|
||||
|
||||
return $duration;
|
||||
}
|
||||
|
|
@ -196,10 +200,6 @@ abstract class ProgressHelper implements HelperInterface
|
|||
}
|
||||
|
||||
return array(
|
||||
/*
|
||||
'currentSize' => $this->currentSize,
|
||||
'currentTime' => $this->currentTime,
|
||||
*/
|
||||
'percent' => $this->percent,
|
||||
'remaining' => $this->remaining,
|
||||
'rate' => $this->rate
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue