Completed
Pull Request — master (#1904)
by Rico
09:54
created
modules_v3/notes/module.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) 2018 webtrees development team
Please login to merge, or discard this patch.
modules_v3/login_block/module.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) 2018 webtrees development team
Please login to merge, or discard this patch.
app/Date/HijriDate.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) 2018 webtrees development team
Please login to merge, or discard this patch.
app/Date/GregorianDate.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) 2018 webtrees development team
Please login to merge, or discard this patch.
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/Date/RomanDate.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) 2018 webtrees development team
Please login to merge, or discard this patch.
app/Date/JalaliDate.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) 2018 webtrees development team
Please login to merge, or discard this patch.
app/Date/JewishDate.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) 2018 webtrees development team
Please login to merge, or discard this patch.
app/Date/FrenchDate.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) 2018 webtrees development team
Please login to merge, or discard this patch.