Code Duplication    Length = 3-3 lines in 3 locations

app/code/community/Nexcessnet/Turpentine/Model/Observer/Esi.php 3 locations

@@ 545-547 (lines=3) @@
542
    }
543
544
    public function hookToControllerActionPreDispatch($observer) {
545
        if (Mage::helper('turpentine/data')->getVclFix() == 0 && $observer->getEvent()->getControllerAction()->getFullActionName() == 'checkout_cart_add') {
546
            Mage::dispatchEvent("add_to_cart_before", array('request' => $observer->getControllerAction()->getRequest()));
547
        }
548
        if ($observer->getEvent()->getControllerAction()->getFullActionName() == 'wishlist_index_index') {
549
            Mage::dispatchEvent('wishlist_index_index_before', array('request' => $observer->getControllerAction()->getRequest()));
550
        }
@@ 548-550 (lines=3) @@
545
        if (Mage::helper('turpentine/data')->getVclFix() == 0 && $observer->getEvent()->getControllerAction()->getFullActionName() == 'checkout_cart_add') {
546
            Mage::dispatchEvent("add_to_cart_before", array('request' => $observer->getControllerAction()->getRequest()));
547
        }
548
        if ($observer->getEvent()->getControllerAction()->getFullActionName() == 'wishlist_index_index') {
549
            Mage::dispatchEvent('wishlist_index_index_before', array('request' => $observer->getControllerAction()->getRequest()));
550
        }
551
    }
552
553
    public function hookToControllerActionPostDispatch($observer) {
@@ 554-556 (lines=3) @@
551
    }
552
553
    public function hookToControllerActionPostDispatch($observer) {
554
        if ($observer->getEvent()->getControllerAction()->getFullActionName() == 'checkout_cart_add') {
555
            Mage::dispatchEvent("add_to_cart_after", array('request' => $observer->getControllerAction()->getRequest()));
556
        }
557
    }
558
    
559
    public function hookToAddToCartBefore($observer) {