Completed
Pull Request — master (#1857)
by Rico
09:47
created
app/Module/FamilyTreeNewsModule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -161,7 +161,7 @@
 block discarded – undo
161 161
                 'tree_id' => $tree->getTreeId(),
162 162
             ])->fetchOneRow();
163 163
         } else {
164
-            $row = (object)[
164
+            $row = (object) [
165 165
                 'body'    => '',
166 166
                 'subject' => '',
167 167
             ];
Please login to merge, or discard this patch.
app/FactLocation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -165,7 +165,7 @@
 block discarded – undo
165 165
             $f1     = preg_match("/\d LATI (.*)/", $gedcom, $match1);
166 166
             $f2     = preg_match("/\d LONG (.*)/", $gedcom, $match2);
167 167
             if ($f1 && $f2) {
168
-                $coords = (object)[
168
+                $coords = (object) [
169 169
                     'latitude'  => $match1[1],
170 170
                     'longitude' => $match2[1],
171 171
                 ];
Please login to merge, or discard this patch.
app/GedcomRecord.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1153,11 +1153,11 @@
 block discarded – undo
1153 1153
             // The record does have a CHAN event
1154 1154
             $d = $chan->getDate()->minimumDate();
1155 1155
             if (preg_match('/\n3 TIME (\d\d):(\d\d):(\d\d)/', $chan->getGedcom(), $match)) {
1156
-                $t = mktime((int)$match[1], (int)$match[2], (int)$match[3], (int)$d->format('%n'), (int)$d->format('%j'), (int)$d->format('%Y'));
1156
+                $t = mktime((int) $match[1], (int) $match[2], (int) $match[3], (int) $d->format('%n'), (int) $d->format('%j'), (int) $d->format('%Y'));
1157 1157
             } elseif (preg_match('/\n3 TIME (\d\d):(\d\d)/', $chan->getGedcom(), $match)) {
1158
-                $t = mktime((int)$match[1], (int)$match[2], 0, (int)$d->format('%n'), (int)$d->format('%j'), (int)$d->format('%Y'));
1158
+                $t = mktime((int) $match[1], (int) $match[2], 0, (int) $d->format('%n'), (int) $d->format('%j'), (int) $d->format('%Y'));
1159 1159
             } else {
1160
-                $t = mktime(0, 0, 0, (int)$d->format('%n'), (int)$d->format('%j'), (int)$d->format('%Y'));
1160
+                $t = mktime(0, 0, 0, (int) $d->format('%n'), (int) $d->format('%j'), (int) $d->format('%Y'));
1161 1161
             }
1162 1162
             if ($sorting) {
1163 1163
                 return $t;
Please login to merge, or discard this patch.
app/Module.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -243,7 +243,7 @@
 block discarded – undo
243 243
                     DebugBar::addThrowable($ex);
244 244
 
245 245
                     // The module has been deleted or is broken? Disable it.
246
-                    Log::addConfigurationLog("Module {$module_name} is missing or broken - disabling it. " . $ex->getMessage(), null);
246
+                    Log::addConfigurationLog("module {$module_name} is missing or broken - disabling it. " . $ex->getMessage(), null);
247 247
                     Database::prepare(
248 248
                         "UPDATE `##module` SET status = 'disabled' WHERE module_name = :module_name"
249 249
                     )->execute([
Please login to merge, or discard this patch.
app/Statement.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
                     $this->pdo_statement->bindValue($key, $bind_variable, PDO::PARAM_NULL);
72 72
                     break;
73 73
                 case 'boolean':
74
-                    $this->pdo_statement->bindValue($key, (int)$bind_variable, PDO::PARAM_INT);
74
+                    $this->pdo_statement->bindValue($key, (int) $bind_variable, PDO::PARAM_INT);
75 75
                     break;
76 76
                 case 'integer':
77 77
                     $this->pdo_statement->bindValue($key, $bind_variable, PDO::PARAM_INT);
Please login to merge, or discard this patch.
app/Census/CensusColumnAgeFemale.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
         if ($individual->getSex() === 'M') {
38 38
             return '';
39 39
         } else {
40
-            return (string)Date::getAge($individual->getEstimatedBirthDate(), $this->date(), 0);
40
+            return (string) Date::getAge($individual->getEstimatedBirthDate(), $this->date(), 0);
41 41
         }
42 42
     }
43 43
 }
Please login to merge, or discard this patch.
app/Census/AbstractCensusColumnCondition.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@
 block discarded – undo
97 97
      */
98 98
     private function isChild(Individual $individual)
99 99
     {
100
-        $age = (int)Date::getAge($individual->getEstimatedBirthDate(), $this->date(), 0);
100
+        $age = (int) Date::getAge($individual->getEstimatedBirthDate(), $this->date(), 0);
101 101
 
102 102
         return $age < $this->age_adult;
103 103
     }
Please login to merge, or discard this patch.
app/Census/CensusColumnChildrenDied.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,6 +53,6 @@
 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   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
         if ($marriage_date === null) {
48 48
             return '';
49 49
         } else {
50
-            return (string)Date::getAge($marriage_date, $this->date(), 0);
50
+            return (string) Date::getAge($marriage_date, $this->date(), 0);
51 51
         }
52 52
     }
53 53
 }
Please login to merge, or discard this patch.