From 69c53a435a97d39c348fed9a1780e63a6848ab19 Mon Sep 17 00:00:00 2001 From: aydun Date: Tue, 24 Mar 2015 15:13:40 +0000 Subject: [PATCH] Fix civilint formatting issues --- CRM/Contact/BAO/Query.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"; -- 2.25.1