Code Duplication    Length = 17-17 lines in 2 locations

class/oledrion_utils.php 1 location

@@ 1928-1944 (lines=17) @@
1925
     * @param $info
1926
     * @return string
1927
     */
1928
    public function deliveryHtmlSelect($info)
1929
    {
1930
        $ret = '';
1931
        $ret .= '<div class="oledrion_htmlform">';
1932
        $ret .= '<img class="oledrion_htmlimage" src="' . $info['delivery_image_url'] . '" alt="' . $info['delivery_title'] . '">';
1933
        $ret .= '<h3>' . $info['delivery_title'] . '</h3>';
1934
        if ($info['delivery_price'] > 0) {
1935
            $ret .= '<p><span class="bold">' . _OLEDRION_PRICE . '</span> : ' . $info['delivery_price_fordisplay'] . '</p>';
1936
        } else {
1937
            $ret .= '<p><span class="bold">' . _OLEDRION_PRICE . '</span> : ' . _OLEDRION_FREE . '</p>';
1938
        }
1939
        $ret .= '<p><span class="bold">' . _OLEDRION_DELIVERY_TIME . '</span> : ' . $info['delivery_time'] . _OLEDRION_DELIVERY_DAY . '</p>';
1940
        $ret .= '<p>' . $info['delivery_description'] . '</p>';
1941
        $ret .= '</div>';
1942
1943
        return $ret;
1944
    }
1945
1946
    /**
1947
     * @param $info

class/utility.php 1 location

@@ 2071-2087 (lines=17) @@
2068
     * @param $info
2069
     * @return string
2070
     */
2071
    public static function deliveryHtmlSelect($info)
2072
    {
2073
        $ret = '';
2074
        $ret .= '<div class="oledrion_htmlform">';
2075
        $ret .= '<img class="oledrion_htmlimage" src="' . $info['delivery_image_url'] . '" alt="' . $info['delivery_title'] . '">';
2076
        $ret .= '<h3>' . $info['delivery_title'] . '</h3>';
2077
        if ($info['delivery_price'] > 0) {
2078
            $ret .= '<p><span class="bold">' . _OLEDRION_PRICE . '</span> : ' . $info['delivery_price_fordisplay'] . '</p>';
2079
        } else {
2080
            $ret .= '<p><span class="bold">' . _OLEDRION_PRICE . '</span> : ' . _OLEDRION_FREE . '</p>';
2081
        }
2082
        $ret .= '<p><span class="bold">' . _OLEDRION_DELIVERY_TIME . '</span> : ' . $info['delivery_time'] . _OLEDRION_DELIVERY_DAY . '</p>';
2083
        $ret .= '<p>' . $info['delivery_description'] . '</p>';
2084
        $ret .= '</div>';
2085
2086
        return $ret;
2087
    }
2088
2089
    /**
2090
     * @param $info