From: aydun Date: Tue, 24 Mar 2015 15:13:40 +0000 (+0000) Subject: Fix civilint formatting issues X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=69c53a435a97d39c348fed9a1780e63a6848ab19;p=civicrm-core.git Fix civilint formatting issues --- diff --git a/CRM/Contact/BAO/Query.php b/CRM/Contact/BAO/Query.php index ff7f82dddd..2b71a0bb43 100644 --- a/CRM/Contact/BAO/Query.php +++ b/CRM/Contact/BAO/Query.php @@ -5211,7 +5211,6 @@ SELECT COUNT( conts.total_amount ) as cancel_count, } } - if ($secondOP) { $this->_where[$grouping][] = " ( {$tableName}.{$dbFieldName} $firstOP '$firstDate' ) AND @@ -5239,7 +5238,8 @@ SELECT COUNT( conts.total_amount ) as cancel_count, // minimum age is $age: dob <= date - age "235959" $date->sub(new DateInterval("P" . $age . "Y")); return $date->format('Ymd') . "235959"; - } else { + } + else { // max age is $age: dob >= date - (age + 1y) + 1d "000000" $date->sub(new DateInterval("P" . ($age + 1) . "Y"))->add(new DateInterval("P1D")); return $date->format('Ymd') . "000000";