summaryrefslogtreecommitdiff
path: root/app/Date
diff options
context:
space:
mode:
authorScrutinizer Auto-Fixer <auto-fixer@scrutinizer-ci.com>2018-09-24 14:21:17 +0200
committerGreg Roach <fisharebest@gmail.com>2018-09-24 13:21:17 +0100
commit0ea23b7829d8bd38dc862b61285e14b0e1858a16 (patch)
tree020a3662510e0a877c0ddf73d42f58f4ab58a7c1 /app/Date
parent5ac00337f57c6f7c400b3eff271c8cbd6be018b3 (diff)
downloadwebtrees-0ea23b7829d8bd38dc862b61285e14b0e1858a16.tar.gz
webtrees-0ea23b7829d8bd38dc862b61285e14b0e1858a16.tar.bz2
webtrees-0ea23b7829d8bd38dc862b61285e14b0e1858a16.zip
Scrutinizer Auto-Fixes (#1929)
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
Diffstat (limited to 'app/Date')
-rw-r--r--app/Date/CalendarDate.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/Date/CalendarDate.php b/app/Date/CalendarDate.php
index f3fde47417..4c4132e301 100644
--- a/app/Date/CalendarDate.php
+++ b/app/Date/CalendarDate.php
@@ -107,7 +107,7 @@ class CalendarDate
// Construct from an array (of three gedcom-style strings: "1900", "FEB", "4")
if (is_array($date)) {
- $this->d = (int)$date[2];
+ $this->d = (int) $date[2];
if (array_key_exists($date[1], static::$MONTH_ABBREV)) {
$this->m = static::$MONTH_ABBREV[$date[1]];
} else {
@@ -155,7 +155,7 @@ class CalendarDate
$jd = $date->calendar->ymdToJd($today[0], $date->m, $date->d == 0 ? $today[2] : $date->d);
} else {
// Complete date
- $jd = (int)(($date->maxJD + $date->minJD) / 2);
+ $jd = (int) (($date->maxJD + $date->minJD) / 2);
}
list($this->y, $this->m, $this->d) = $this->calendar->jdToYmd($jd);
// New date has same precision as original date
@@ -1034,7 +1034,7 @@ class CalendarDate
{
if ($number < 1) {
// Cannot convert zero/negative numbers
- return (string)$number;
+ return (string) $number;
}
$roman = '';
foreach (self::$roman_numerals as $key => $value) {
@@ -1059,7 +1059,7 @@ class CalendarDate
$num = 0;
foreach (self::$roman_numerals as $key => $value) {
if (strpos($roman, $value) === 0) {
- $num += $key;
+ $num += $key;
$roman = substr($roman, strlen($value));
}
}