Code Duplication    Length = 15-15 lines in 2 locations

src/xsDayTimeDuration.php 1 location

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

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
    }