@@ 304-306 (lines=3) @@ | ||
301 | $this->splitDuration($value, count($units) - 1) + array_fill(0, 6, null); |
|
302 | ||
303 | $duration = ''; |
|
304 | if (isset($years) && isset($units[5])) { |
|
305 | $duration .= $seperator . $years . $units[5]; |
|
306 | } |
|
307 | ||
308 | if (isset($weeks) && isset($units[4])) { |
|
309 | $duration .= $seperator . $weeks . $units[4]; |
|
@@ 308-310 (lines=3) @@ | ||
305 | $duration .= $seperator . $years . $units[5]; |
|
306 | } |
|
307 | ||
308 | if (isset($weeks) && isset($units[4])) { |
|
309 | $duration .= $seperator . $weeks . $units[4]; |
|
310 | } |
|
311 | ||
312 | if (isset($days) && isset($units[3])) { |
|
313 | $duration .= $seperator . $days . $units[3]; |
|
@@ 312-314 (lines=3) @@ | ||
309 | $duration .= $seperator . $weeks . $units[4]; |
|
310 | } |
|
311 | ||
312 | if (isset($days) && isset($units[3])) { |
|
313 | $duration .= $seperator . $days . $units[3]; |
|
314 | } |
|
315 | ||
316 | if (isset($hours) && isset($units[2])) { |
|
317 | $duration .= $seperator . $hours . $units[2]; |
|
@@ 316-318 (lines=3) @@ | ||
313 | $duration .= $seperator . $days . $units[3]; |
|
314 | } |
|
315 | ||
316 | if (isset($hours) && isset($units[2])) { |
|
317 | $duration .= $seperator . $hours . $units[2]; |
|
318 | } |
|
319 | ||
320 | if (isset($minutes) && isset($units[1])) { |
|
321 | $duration .= $seperator . $minutes . $units[1]; |
|
@@ 320-322 (lines=3) @@ | ||
317 | $duration .= $seperator . $hours . $units[2]; |
|
318 | } |
|
319 | ||
320 | if (isset($minutes) && isset($units[1])) { |
|
321 | $duration .= $seperator . $minutes . $units[1]; |
|
322 | } |
|
323 | ||
324 | if (isset($seconds) && isset($units[0])) { |
|
325 | $duration .= $seperator . $seconds . $units[0]; |
|
@@ 324-326 (lines=3) @@ | ||
321 | $duration .= $seperator . $minutes . $units[1]; |
|
322 | } |
|
323 | ||
324 | if (isset($seconds) && isset($units[0])) { |
|
325 | $duration .= $seperator . $seconds . $units[0]; |
|
326 | } |
|
327 | ||
328 | return trim($duration, $seperator); |
|
329 | } |