Code Duplication    Length = 6-6 lines in 2 locations

main/inc/lib/icalcreator/iCalcreator.class.php 2 locations

@@ 2144-2149 (lines=6) @@
2141
     * @since 2.4.8 - 2008-10-21
2142
     * @return string
2143
     */
2144
    function createCreated() {
2145
        if( empty( $this->created )) return FALSE;
2146
        $formatted  = $this->_format_date_time( $this->created['value'], 7 );
2147
        $attributes = $this->_createParams( $this->created['params'] );
2148
        return $this->_createElement( 'CREATED', $attributes, $formatted );
2149
    }
2150
    /**
2151
     * set calendar component property created
2152
     *
@@ 2779-2784 (lines=6) @@
2776
     * @since 2.4.8 - 2008-10-21
2777
     * @return string
2778
     */
2779
    function createLastModified() {
2780
        if( empty( $this->lastmodified )) return FALSE;
2781
        $attributes = $this->_createParams( $this->lastmodified['params'] );
2782
        $formatted  = $this->_format_date_time( $this->lastmodified['value'], 7 );
2783
        return $this->_createElement( 'LAST-MODIFIED', $attributes, $formatted );
2784
    }
2785
    /**
2786
     * set calendar component property completed
2787
     *