Completed
Pull Request — master (#1904)
by Rico
12:08
created
app/Date/CalendarDate.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 /**
4 4
  * webtrees: online genealogy
5 5
  * Copyright (C) 2018 webtrees development team
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
 
109 109
         // Construct from an array (of three gedcom-style strings: "1900", "FEB", "4")
110 110
         if (is_array($date)) {
111
-            $this->d = (int)$date[2];
111
+            $this->d = (int) $date[2];
112 112
             if (array_key_exists($date[1], static::$MONTH_ABBREV)) {
113 113
                 $this->m = static::$MONTH_ABBREV[$date[1]];
114 114
             } else {
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
             $jd    = $date->calendar->ymdToJd($today[0], $date->m, $date->d == 0 ? $today[2] : $date->d);
156 156
         } else {
157 157
             // Complete date
158
-            $jd = (int)(($date->maxJD + $date->minJD) / 2);
158
+            $jd = (int) (($date->maxJD + $date->minJD) / 2);
159 159
         }
160 160
         list($this->y, $this->m, $this->d) = $this->calendar->jdToYmd($jd);
161 161
         // New date has same precision as original date
@@ -962,7 +962,7 @@  discard block
 block discarded – undo
962 962
     {
963 963
         if ($number < 1) {
964 964
             // Cannot convert zero/negative numbers
965
-            return (string)$number;
965
+            return (string) $number;
966 966
         }
967 967
         $roman = '';
968 968
         foreach (self::$roman_numerals as $key => $value) {
@@ -987,7 +987,7 @@  discard block
 block discarded – undo
987 987
         $num = 0;
988 988
         foreach (self::$roman_numerals as $key => $value) {
989 989
             if (strpos($roman, $value) === 0) {
990
-                $num   += $key;
990
+                $num += $key;
991 991
                 $roman = substr($roman, strlen($value));
992 992
             }
993 993
         }
Please login to merge, or discard this patch.
app/Census/CensusOfUnitedStates1790.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 /**
4 4
  * webtrees: online genealogy
5 5
  * Copyright (C) 2015 webtrees development team
Please login to merge, or discard this patch.
app/Census/CensusOfCzechRepublic1910.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 /**
4 4
  * webtrees: online genealogy
5 5
  * Copyright (C) 2016 webtrees development team
Please login to merge, or discard this patch.
app/Census/CensusColumnAgeMale5Years.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 /**
4 4
  * webtrees: online genealogy
5 5
  * Copyright (C) 2018 webtrees development team
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
                 $years -= $years % 5;
44 44
             }
45 45
 
46
-            return (string)$years;
46
+            return (string) $years;
47 47
         }
48 48
     }
49 49
 }
Please login to merge, or discard this patch.
app/Census/CensusColumnChildrenLiving.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 /**
4 4
  * webtrees: online genealogy
5 5
  * Copyright (C) 2018 webtrees development team
@@ -53,6 +53,6 @@  discard block
 block discarded – undo
53 53
             }
54 54
         }
55 55
 
56
-        return (string)$count;
56
+        return (string) $count;
57 57
     }
58 58
 }
Please login to merge, or discard this patch.
app/Census/CensusColumnYearsMarried.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 /**
4 4
  * webtrees: online genealogy
5 5
  * Copyright (C) 2018 webtrees development team
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
         if ($marriage_date === null) {
49 49
             return '';
50 50
         } else {
51
-            return (string)Date::getAge($marriage_date, $this->date(), 0);
51
+            return (string) Date::getAge($marriage_date, $this->date(), 0);
52 52
         }
53 53
     }
54 54
 }
Please login to merge, or discard this patch.
app/Census/CensusColumnAgeMale.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 /**
4 4
  * webtrees: online genealogy
5 5
  * Copyright (C) 2018 webtrees development team
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
         if ($individual->getSex() === 'F') {
39 39
             return '';
40 40
         } else {
41
-            return (string)Date::getAge($individual->getEstimatedBirthDate(), $this->date(), 0);
41
+            return (string) Date::getAge($individual->getEstimatedBirthDate(), $this->date(), 0);
42 42
         }
43 43
     }
44 44
 }
Please login to merge, or discard this patch.
app/Census/CensusColumnAge.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 /**
4 4
  * webtrees: online genealogy
5 5
  * Copyright (C) 2018 webtrees development team
@@ -35,6 +35,6 @@  discard block
 block discarded – undo
35 35
      */
36 36
     public function generate(Individual $individual, Individual $head): string
37 37
     {
38
-        return (string)Date::getAge($individual->getEstimatedBirthDate(), $this->date(), 0);
38
+        return (string) Date::getAge($individual->getEstimatedBirthDate(), $this->date(), 0);
39 39
     }
40 40
 }
Please login to merge, or discard this patch.
app/Census/CensusColumnAgeFemale.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 /**
4 4
  * webtrees: online genealogy
5 5
  * Copyright (C) 2018 webtrees development team
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
         if ($individual->getSex() === 'M') {
39 39
             return '';
40 40
         } else {
41
-            return (string)Date::getAge($individual->getEstimatedBirthDate(), $this->date(), 0);
41
+            return (string) Date::getAge($individual->getEstimatedBirthDate(), $this->date(), 0);
42 42
         }
43 43
     }
44 44
 }
Please login to merge, or discard this patch.