Code Duplication    Length = 15-15 lines in 2 locations

src/xsDuration.php 1 location

@@ 58-72 (lines=15) @@
55
            $sReturn .= $tint->d . 'D';
56
        }
57
58
        if ($tint->h || $tint->i || $tint->s) {
59
            $sReturn .= 'T';
60
61
            if ($this->h) {
62
                $sReturn .= $tint->h . 'H';
63
            }
64
65
            if ($this->i) {
66
                $sReturn .= $tint->i . 'M';
67
            }
68
69
            if ($this->s) {
70
                $sReturn .= $tint->s . 'S';
71
            }
72
        }
73
74
        return $sReturn;
75
    }

src/xsDayTimeDuration.php 1 location

@@ 46-60 (lines=15) @@
43
            $sReturn .= $tint->d . 'D';
44
        }
45
46
        if ($tint->h || $tint->i || $tint->s) {
47
            $sReturn .= 'T';
48
49
            if ($this->h) {
50
                $sReturn .= $tint->h . 'H';
51
            }
52
53
            if ($this->i) {
54
                $sReturn .= $tint->i . 'M';
55
            }
56
57
            if ($this->s) {
58
                $sReturn .= $tint->s . 'S';
59
            }
60
        }
61
62
        return $sReturn;
63
    }