Code Duplication    Length = 10-12 lines in 2 locations

application/helpers/url_helper.php 1 location

@@ 3-14 (lines=12) @@
1
<?php
2
3
if (!function_exists('site_url')) {
4
5
    /**
6
     * Site URL
7
     *
8
     * Create a local URL based on your basepath. Segments can be passed via the
9
     * first parameter either as a string or an array.
10
     *
11
     * @access    public
12
     * @param string $uri
13
     * @return string
14
     */
15
    function site_url($uri = '') {
16
        if (mb_strpos($uri, 'http') === 0) {
17
            return $uri;

application/helpers/language_helper.php 1 location

@@ 348-357 (lines=10) @@
345
346
}
347
348
if (!function_exists('tlang')) {
349
350
    /**
351
     * @param string $line
352
     * @return string
353
     */
354
    function tlang($line) {
355
356
        $CI = &get_instance();
357
        $name = $CI->config->item('template');
358
359
        return lang($line, $name);
360
    }