/** * Method used to detect if recorded lead has been created by a test or not * @param Leads $lead * @return bool */ public function isTestLead(Leads $lead) { if (stristr($lead->getUserAgent(), 'phantomjs')) { return true; } return false; }
/** * Method used to detect if recorded lead has been created by a test or not * @param Leads $lead * @return bool */ public function isTestLead(Leads $lead) { if (stristr($lead->getUserAgent(), 'phantomjs')) { return true; } return false; }