Code Duplication    Length = 10-10 lines in 2 locations

src/Charcoal/View/AbstractView.php 2 locations

@@ 212-221 (lines=10) @@
209
     * @param mixed  $context The rendering context.
210
     * @return string The rendered template string.
211
     */
212
    public function render($templateIdent = null, $context = null)
213
    {
214
        if ($templateIdent === null) {
215
            $templateIdent = $this->templateIdent();
216
        }
217
        if ($context === null) {
218
            $context = $this->context();
219
        }
220
        return $this->engine()->render($templateIdent, $context);
221
    }
222
223
    /**
224
     * @param string $templateString Optional. The template string to render. If none then load instance's.
@@ 228-237 (lines=10) @@
225
     * @param mixed  $context The rendering context.
226
     * @return string The rendered template string.
227
     */
228
    public function renderTemplate($templateString = null, $context = null)
229
    {
230
        if ($templateString === null) {
231
            $templateString = $this->template();
232
        }
233
        if ($context === null) {
234
            $context = $this->context();
235
        }
236
        return $this->engine()->render($templateString, $context);
237
    }
238
}
239