* @return string WHERE clause component for smart group criteria.
* @throws \CRM_Core_Exception
*/
- public function addGroupContactCache($groups, $tableAlias, $joinTable = "contact_a", $op, $joinColumn = 'id') {
+ public function addGroupContactCache($groups, $tableAlias, $joinTable, $op, $joinColumn = 'id') {
$isNullOp = (strpos($op, 'NULL') !== FALSE);
$groupsIds = $groups;
$op,
$value,
$grouping,
- $daoName = NULL,
+ $daoName,
$field,
$label,
$dataType = 'String'
public static function &query(
$queryType,
$daoName,
- $fieldValues = NULL,
+ $fieldValues,
$queryData,
$additionalWhere = NULL,
$orderBy = NULL,
*
* @return array|void
*/
-function _civicrm_api3_buildprofile_submitfields($profileID, $optionsBehaviour = 1, $is_flush) {
+function _civicrm_api3_buildprofile_submitfields($profileID, $optionsBehaviour, $is_flush) {
static $profileFields = [];
if ($is_flush) {
$profileFields = [];
* @param $mail
* @return mixed
*/
- public function checkMailForStrings(array $strings, $absentStrings = [], $prefix = '', $mail) {
+ public function checkMailForStrings(array $strings, $absentStrings, $prefix, $mail) {
foreach ($strings as $string) {
- $this->_ut->assertContains($string, $mail, "$string . not found in $mail $prefix");
+ $this->_ut->assertStringContainsString($string, $mail, "$string . not found in $mail $prefix");
}
foreach ($absentStrings as $string) {
$this->_ut->assertEmpty(strstr($mail, $string), "$string incorrectly found in $mail $prefix");