for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
class DiscountCouponSiteTreeDOD_ProductVariation extends DataExtension
{
/**
*
* @param DiscountCouponModifier $modifier
* @return boolean
*/
public function ExcludeInDiscountCalculation(DiscountCouponModifier $modifier)
$coupon = $modifier->DiscountCouponOption();
DiscountCouponOption()
DiscountCouponModifier
myDiscountCouponOption()
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.
return ! $coupon->canBeDiscounted($this->owner->Product());
}
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.