@@ 70-74 (lines=5) @@ | ||
67 | $minutes = $this->minutes + $time->minutes; |
|
68 | $seconds = $this->seconds + $time->seconds; |
|
69 | ||
70 | if ($seconds > self::$seconds_max) { |
|
71 | $factor = self::$seconds_max + 1; |
|
72 | $minutes += intval($seconds / $factor); |
|
73 | $seconds %= $factor; |
|
74 | } |
|
75 | if ($minutes > self::$minutes_max) { |
|
76 | $factor = self::$minutes_max + 1; |
|
77 | $hours += intval($minutes / $factor); |
|
@@ 75-79 (lines=5) @@ | ||
72 | $minutes += intval($seconds / $factor); |
|
73 | $seconds %= $factor; |
|
74 | } |
|
75 | if ($minutes > self::$minutes_max) { |
|
76 | $factor = self::$minutes_max + 1; |
|
77 | $hours += intval($minutes / $factor); |
|
78 | $minutes %= $factor; |
|
79 | } |
|
80 | $factor = self::$hours_max + 1; |
|
81 | $hours %= $factor; |
|
82 |