Code Duplication    Length = 8-8 lines in 2 locations

src/Theme.php 2 locations

@@ 141-148 (lines=8) @@
138
     *
139
     * @return string
140
     */
141
    public function absolutePath($theme = null)
142
    {
143
        if (is_null($theme)) {
144
            $theme = $this->getCurrent();
145
        }
146
147
        return $this->config['paths']['absolute'].'/'.$theme;
148
    }
149
150
    /**
151
     * Get Theme File Path.
@@ 158-165 (lines=8) @@
155
     *
156
     * @return string
157
     */
158
    public function path($file, $theme = null)
159
    {
160
        if (is_null($theme)) {
161
            $theme = $this->getCurrent();
162
        }
163
164
        return $this->config['paths']['base']."/$theme/$file";
165
    }
166
167
    /**
168
     * Parse Config to Object.