diff options
| author | Greg Roach <fisharebest@gmail.com> | 2015-03-02 14:44:29 +0000 |
|---|---|---|
| committer | Greg Roach <fisharebest@gmail.com> | 2015-03-02 14:44:29 +0000 |
| commit | 7091fc7d9689c53d49926f23899c212ee642e020 (patch) | |
| tree | 7c07c40006d01ddc1dca8bc05908bab815a8c50d /app/Date.php | |
| parent | f5b60dec5b2008942bb21825ea56f175562be22a (diff) | |
| download | webtrees-7091fc7d9689c53d49926f23899c212ee642e020.tar.gz webtrees-7091fc7d9689c53d49926f23899c212ee642e020.tar.bz2 webtrees-7091fc7d9689c53d49926f23899c212ee642e020.zip | |
PSR-1
Diffstat (limited to 'app/Date.php')
| -rw-r--r-- | app/Date.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/Date.php b/app/Date.php index c36e778171..5191ff431c 100644 --- a/app/Date.php +++ b/app/Date.php @@ -484,13 +484,13 @@ class Date { * * @return string */ - public static function GetAgeGedcom(Date $d1, Date $d2 = null, $warn_on_negative = true) { + public static function getAgeGedcom(Date $d1, Date $d2 = null, $warn_on_negative = true) { if (is_null($d2)) { - return $d1->date1->GetAge(true, WT_CLIENT_JD, $warn_on_negative); + return $d1->date1->getAge(true, WT_CLIENT_JD, $warn_on_negative); } else { // If dates overlap, then can’t calculate age. if (self::compare($d1, $d2)) { - return $d1->date1->GetAge(true, $d2->minimumJulianDay(), $warn_on_negative); + return $d1->date1->getAge(true, $d2->minimumJulianDay(), $warn_on_negative); } elseif (self::compare($d1, $d2) == 0 && $d1->date1->minJD == $d2->minimumJulianDay()) { return '0d'; } else { |
