Code Duplication    Length = 7-7 lines in 2 locations

src/Template.php 2 locations

@@ 68-74 (lines=7) @@
65
     *
66
     * @param string $path
67
     */
68
    public static function addPath($path)
69
    {
70
        $path = str_replace('//', '/', rtrim($path, '/'));
71
        if (is_dir($path) && !in_array($path, self::$paths)) {
72
            array_unshift(self::$paths, $path);
73
        }
74
    }
75
76
    /**
77
     * Prepends a searchable path to available paths list.
@@ 81-87 (lines=7) @@
78
     *
79
     * @param string $path
80
     */
81
    public static function appendPath($path)
82
    {
83
        $path = str_replace('//', '/', rtrim($path, '/'));
84
        if (is_dir($path) && !in_array($path, self::$paths)) {
85
            array_push(self::$paths, $path);
86
        }
87
    }
88
89
    /**
90
     * Gets the list of defined paths