Code Duplication    Length = 8-8 lines in 2 locations

lib/Dwoo/Smarty/Adapter.php 2 locations

@@ 423-430 (lines=8) @@
420
    /**
421
     * @param $callback
422
     */
423
    public function unregister_prefilter($callback)
424
    {
425
        foreach ($this->_filters['pre'] as $index => $processor) {
426
            if ($processor->callback === $callback) {
427
                $this->compiler->removePostProcessor($processor);
428
                unset($this->_filters['pre'][$index]);
429
            }
430
        }
431
    }
432
433
    /**
@@ 447-454 (lines=8) @@
444
    /**
445
     * @param $callback
446
     */
447
    public function unregister_postfilter($callback)
448
    {
449
        foreach ($this->_filters['post'] as $index => $processor) {
450
            if ($processor->callback === $callback) {
451
                $this->compiler->removePostProcessor($processor);
452
                unset($this->_filters['post'][$index]);
453
            }
454
        }
455
    }
456
457
    /**