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));
|
$ar = array_reverse(explode(":", $rawDuration));
|
||||||
$duration = floatval($ar[0]);
|
$duration = floatval($ar[0]);
|
||||||
if (!empty($ar[1])) $duration += intval($ar[1]) * 60;
|
if (!empty($ar[1])) {
|
||||||
if (!empty($ar[2])) $duration += intval($ar[2]) * 60 * 60;
|
$duration += intval($ar[1]) * 60;
|
||||||
|
}
|
||||||
|
if (!empty($ar[2])) {
|
||||||
|
$duration += intval($ar[2]) * 60 * 60;
|
||||||
|
}
|
||||||
|
|
||||||
return $duration;
|
return $duration;
|
||||||
}
|
}
|
||||||
|
|
@ -196,10 +200,6 @@ abstract class ProgressHelper implements HelperInterface
|
||||||
}
|
}
|
||||||
|
|
||||||
return array(
|
return array(
|
||||||
/*
|
|
||||||
'currentSize' => $this->currentSize,
|
|
||||||
'currentTime' => $this->currentTime,
|
|
||||||
*/
|
|
||||||
'percent' => $this->percent,
|
'percent' => $this->percent,
|
||||||
'remaining' => $this->remaining,
|
'remaining' => $this->remaining,
|
||||||
'rate' => $this->rate
|
'rate' => $this->rate
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue