Completed
Branch develop (b6db7c)
by Greg
09:30
created
app/Menu.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
                     $attrs .= ' ' . $key . '="' . e($value) . '"';
70 70
                 }
71 71
 
72
-                $class    = trim('dropdown-item ' . $submenu->class);
72
+                $class = trim('dropdown-item ' . $submenu->class);
73 73
                 $submenus .= '<a class="' . $class . '" href="' . e($submenu->link) . '"' . $attrs . '>' . $submenu->label . '</a>';
74 74
             }
75 75
 
Please login to merge, or discard this patch.
app/Family.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -280,7 +280,7 @@
 block discarded – undo
280 280
     {
281 281
         $nchi = count($this->getChildren());
282 282
         foreach ($this->getFacts('NCHI') as $fact) {
283
-            $nchi = max($nchi, (int)$fact->getValue());
283
+            $nchi = max($nchi, (int) $fact->getValue());
284 284
         }
285 285
 
286 286
         return $nchi;
Please login to merge, or discard this patch.
app/Date/CalendarDate.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
 
108 108
         // Construct from an array (of three gedcom-style strings: "1900", "FEB", "4")
109 109
         if (is_array($date)) {
110
-            $this->d = (int)$date[2];
110
+            $this->d = (int) $date[2];
111 111
             if (array_key_exists($date[1], static::$MONTH_ABBREV)) {
112 112
                 $this->m = static::$MONTH_ABBREV[$date[1]];
113 113
             } else {
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
             $jd    = $date->calendar->ymdToJd($today[0], $date->m, $date->d == 0 ? $today[2] : $date->d);
155 155
         } else {
156 156
             // Complete date
157
-            $jd = (int)(($date->maxJD + $date->minJD) / 2);
157
+            $jd = (int) (($date->maxJD + $date->minJD) / 2);
158 158
         }
159 159
         list($this->y, $this->m, $this->d) = $this->calendar->jdToYmd($jd);
160 160
         // New date has same precision as original date
@@ -454,7 +454,7 @@  discard block
 block discarded – undo
454 454
      */
455 455
     protected function extractYear($year)
456 456
     {
457
-        return (int)$year;
457
+        return (int) $year;
458 458
     }
459 459
 
460 460
     /**
@@ -712,7 +712,7 @@  discard block
 block discarded – undo
712 712
                     $format = str_replace($match, $this->daysInMonth(), $format);
713 713
                     break;
714 714
                 case '%L':
715
-                    $format = str_replace($match, (int)$this->isLeapYear(), $format);
715
+                    $format = str_replace($match, (int) $this->isLeapYear(), $format);
716 716
                     break;
717 717
                 case '%Y':
718 718
                     $format = str_replace($match, $this->formatLongYear(), $format);
@@ -959,7 +959,7 @@  discard block
 block discarded – undo
959 959
     {
960 960
         if ($number < 1) {
961 961
             // Cannot convert zero/negative numbers
962
-            return (string)$number;
962
+            return (string) $number;
963 963
         }
964 964
         $roman = '';
965 965
         foreach (self::$roman_numerals as $key => $value) {
@@ -984,7 +984,7 @@  discard block
 block discarded – undo
984 984
         $num = 0;
985 985
         foreach (self::$roman_numerals as $key => $value) {
986 986
             if (strpos($roman, $value) === 0) {
987
-                $num   += $key;
987
+                $num += $key;
988 988
                 $roman = substr($roman, strlen($value));
989 989
             }
990 990
         }
Please login to merge, or discard this patch.
app/Date/JulianDate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
         } elseif (preg_match('/^(\d+) B\.C\.$/', $year, $match)) {
75 75
             return -$match[1];
76 76
         } else {
77
-            return (int)$year;
77
+            return (int) $year;
78 78
         }
79 79
     }
80 80
 
Please login to merge, or discard this patch.
app/Schema/Migration22.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
                     $_tmp_dir   = $WT_DATA_DIR;
61 61
                     while (strpos($_mf_dir, $_tmp_dir) !== 0) {
62 62
                         $_media_dir .= '../';
63
-                        $_tmp_dir   = preg_replace('~[^/\\\\]+[/\\\\]$~', '', $_tmp_dir);
63
+                        $_tmp_dir = preg_replace('~[^/\\\\]+[/\\\\]$~', '', $_tmp_dir);
64 64
                         if ($_tmp_dir == '') {
65 65
                             // Shouldn't get here - but this script is not allowed to fail...
66 66
                             continue 2;
Please login to merge, or discard this patch.
app/Location.php 1 patch
Spacing   +6 added lines, -8 removed lines patch added patch discarded remove patch
@@ -47,9 +47,9 @@  discard block
 block discarded – undo
47 47
         if ($tmp !== null) {
48 48
             $this->record = $tmp;
49 49
         } elseif (!empty($record)) {
50
-            $this->record = (object)$record;
50
+            $this->record = (object) $record;
51 51
         } else {
52
-            $this->record = (object)[
52
+            $this->record = (object) [
53 53
                 'fqpn'         => '',
54 54
                 'pl_id'        => 0,
55 55
                 'pl_parent_id' => 0,
@@ -81,12 +81,11 @@  discard block
 block discarded – undo
81 81
         switch ($format) {
82 82
             case 'signed':
83 83
                 return $this->record->pl_lati ?
84
-                    (float)strtr($this->record->pl_lati, [
84
+                    (float) strtr($this->record->pl_lati, [
85 85
                         'N' => '',
86 86
                         'S' => '-',
87 87
                         ',' => '.',
88
-                    ]) :
89
-                    $this->record->pl_lati;
88
+                    ]) : $this->record->pl_lati;
90 89
             default:
91 90
                 return $this->record->pl_lati;
92 91
         }
@@ -102,12 +101,11 @@  discard block
 block discarded – undo
102 101
         switch ($format) {
103 102
             case 'signed':
104 103
                 return $this->record->pl_long ?
105
-                    (float)strtr($this->record->pl_long, [
104
+                    (float) strtr($this->record->pl_long, [
106 105
                         'E' => '',
107 106
                         'W' => '-',
108 107
                         ',' => '.',
109
-                    ]) :
110
-                    $this->record->pl_long;
108
+                    ]) : $this->record->pl_long;
111 109
             default:
112 110
                 return $this->record->pl_long;
113 111
         }
Please login to merge, or discard this patch.
app/Date.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -448,7 +448,7 @@
 block discarded – undo
448 448
      */
449 449
     public function julianDay()
450 450
     {
451
-        return (int)(($this->minimumJulianDay() + $this->maximumJulianDay()) / 2);
451
+        return (int) (($this->minimumJulianDay() + $this->maximumJulianDay()) / 2);
452 452
     }
453 453
 
454 454
     /**
Please login to merge, or discard this patch.
app/Soundex.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3616,7 +3616,7 @@
 block discarded – undo
3616 3616
             $soundTableEntry = self::$dmsounds[$thisEntry];
3617 3617
             $workingResult   = $partialResult;
3618 3618
             $partialResult   = [];
3619
-            $currPos         += strlen($thisEntry);
3619
+            $currPos += strlen($thisEntry);
3620 3620
 
3621 3621
             // Not at beginning of input string
3622 3622
             if ($state != 1) {
Please login to merge, or discard this patch.
app/Report/ReportPdfText.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
         if ($this->wrapWidthRemaining > 0) {
123 123
             // Check with line counter too!
124 124
             // but floor the $wrapWidthRemaining first to keep it bugfree!
125
-            $wrapWidthRemaining = (int)($this->wrapWidthRemaining);
125
+            $wrapWidthRemaining = (int) ($this->wrapWidthRemaining);
126 126
             if ($lw >= $wrapWidthRemaining || $lfct > 1) {
127 127
                 $newtext = '';
128 128
                 $lines   = explode("\n", $this->text);
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
                                     $newtext .= ' ';
145 145
                                 }
146 146
                             } else {
147
-                                $lw      = $pdf->GetStringWidth($word . ' ');
147
+                                $lw = $pdf->GetStringWidth($word . ' ');
148 148
                                 $newtext .= "\n$word";
149 149
                                 if ($addspace != 0) {
150 150
                                     $newtext .= ' ';
Please login to merge, or discard this patch.