| @@ 31-33 (lines=3) @@ | ||
| 28 | } |
|
| 29 | ||
| 30 | $seconds = round($seconds, 2); |
|
| 31 | if ($seconds) { |
|
| 32 | $return .= ($return ? ' ' : '') . str_pad($seconds, 2, 0, STR_PAD_LEFT).'s'; |
|
| 33 | } |
|
| 34 | ||
| 35 | return $return; |
|
| 36 | } |
|
| @@ 161-163 (lines=3) @@ | ||
| 158 | } |
|
| 159 | ||
| 160 | $seconds = $this->getSecondsPart(); |
|
| 161 | if ($seconds) { |
|
| 162 | $return .= ($return ? ' ' : '').str_pad($seconds, 2, 0, STR_PAD_LEFT).'s'; |
|
| 163 | } |
|
| 164 | ||
| 165 | return $return; |
|
| 166 | } |
|