summaryrefslogtreecommitdiff
path: root/library/WT/Date.php
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@gmail.com>2014-10-28 16:57:55 +0000
committerGreg Roach <fisharebest@gmail.com>2014-10-28 16:57:55 +0000
commit265f951c2221c285e890348e2fd58393da579c8d (patch)
tree9e22987c3adddfb1ed712e35abd9fb1ddf590177 /library/WT/Date.php
parentddf1efd7d8700a7d4f6d31180b6dcbd06bb71175 (diff)
downloadwebtrees-265f951c2221c285e890348e2fd58393da579c8d.tar.gz
webtrees-265f951c2221c285e890348e2fd58393da579c8d.tar.bz2
webtrees-265f951c2221c285e890348e2fd58393da579c8d.zip
PSR-1
Diffstat (limited to 'library/WT/Date.php')
-rw-r--r--library/WT/Date.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/library/WT/Date.php b/library/WT/Date.php
index 5ab7d5dca9..ced75044e1 100644
--- a/library/WT/Date.php
+++ b/library/WT/Date.php
@@ -56,14 +56,14 @@ class WT_Date {
}
if (preg_match('/^(FROM|BET) (.+) (AND|TO) (.+)/', $date, $match)) {
$this->qual1 = $match[1];
- $this->date1 = $this->ParseDate($match[2]);
+ $this->date1 = $this->parseDate($match[2]);
$this->qual2 = $match[3];
- $this->date2 = $this->ParseDate($match[4]);
+ $this->date2 = $this->parseDate($match[4]);
} elseif (preg_match('/^(FROM|BET|TO|AND|BEF|AFT|CAL|EST|INT|ABT) (.+)/', $date, $match)) {
$this->qual1 = $match[1];
- $this->date1 = $this->ParseDate($match[2]);
+ $this->date1 = $this->parseDate($match[2]);
} else {
- $this->date1 = $this->ParseDate($date);
+ $this->date1 = $this->parseDate($date);
}
}
@@ -88,7 +88,7 @@ class WT_Date {
* @return WT_Date_Calendar
* @throws Exception
*/
- static function ParseDate($date) {
+ static function parseDate($date) {
// Valid calendar escape specified? - use it
if (preg_match('/^(@#D(?:GREGORIAN|JULIAN|HEBREW|HIJRI|JALALI|FRENCH R|ROMAN|JALALI)+@) ?(.*)/', $date, $match)) {
$cal = $match[1];