Code Duplication    Length = 3-3 lines in 3 locations

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

@@ 532-534 (lines=3) @@
529
    }
530
531
    public function hookToControllerActionPreDispatch($observer) {
532
        if (Mage::helper('turpentine/data')->getVclFix() == 0 && $observer->getEvent()->getControllerAction()->getFullActionName() == 'checkout_cart_add') {
533
            Mage::dispatchEvent("add_to_cart_before", array('request' => $observer->getControllerAction()->getRequest()));
534
        }
535
        if ($observer->getEvent()->getControllerAction()->getFullActionName() == 'wishlist_index_index') {
536
            Mage::dispatchEvent('wishlist_index_index_before', array('request' => $observer->getControllerAction()->getRequest()));
537
        }
@@ 535-537 (lines=3) @@
532
        if (Mage::helper('turpentine/data')->getVclFix() == 0 && $observer->getEvent()->getControllerAction()->getFullActionName() == 'checkout_cart_add') {
533
            Mage::dispatchEvent("add_to_cart_before", array('request' => $observer->getControllerAction()->getRequest()));
534
        }
535
        if ($observer->getEvent()->getControllerAction()->getFullActionName() == 'wishlist_index_index') {
536
            Mage::dispatchEvent('wishlist_index_index_before', array('request' => $observer->getControllerAction()->getRequest()));
537
        }
538
    }
539
540
    public function hookToControllerActionPostDispatch($observer) {
@@ 541-543 (lines=3) @@
538
    }
539
540
    public function hookToControllerActionPostDispatch($observer) {
541
        if ($observer->getEvent()->getControllerAction()->getFullActionName() == 'checkout_cart_add') {
542
            Mage::dispatchEvent("add_to_cart_after", array('request' => $observer->getControllerAction()->getRequest()));
543
        }
544
    }
545
    
546
    public function hookToAddToCartBefore($observer) {