Completed
Pull Request — master (#1856)
by Rico
20:23 queued 09:36
created
app/Module/LoginBlockModule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
         } else {
60 60
             $title   = I18N::translate('Sign in');
61 61
             $content = view('modules/login_block/sign-in', [
62
-                'allow_register' => (bool)Site::getPreference('USE_REGISTRATION_MODULE'),
62
+                'allow_register' => (bool) Site::getPreference('USE_REGISTRATION_MODULE'),
63 63
             ]);
64 64
         }
65 65
 
Please login to merge, or discard this patch.
app/Module/OnThisDayModule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@
 block discarded – undo
105 105
 
106 106
         $default_events = implode(',', self::DEFAULT_EVENTS);
107 107
 
108
-        $filter    = (bool)$this->getBlockSetting($block_id, 'filter', '1');
108
+        $filter    = (bool) $this->getBlockSetting($block_id, 'filter', '1');
109 109
         $infoStyle = $this->getBlockSetting($block_id, 'infoStyle', 'table');
110 110
         $sortStyle = $this->getBlockSetting($block_id, 'sortStyle', 'alpha');
111 111
         $events    = $this->getBlockSetting($block_id, 'events', $default_events);
Please login to merge, or discard this patch.
app/Module/TopPageViewsModule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
             " ORDER BY page_count DESC LIMIT :limit"
77 77
         )->execute([
78 78
             'tree_id' => $tree->getTreeId(),
79
-            'limit'   => (int)$num,
79
+            'limit'   => (int) $num,
80 80
         ])->fetchAssoc();
81 81
 
82 82
         $content = '<table>';
Please login to merge, or discard this patch.
app/Module/ReviewChangesModule.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
 
74 74
         if ($changes === '1' && $sendmail === '1') {
75 75
             // There are pending changes - tell moderators/managers/administrators about them.
76
-            if (WT_TIMESTAMP - (int)Site::getPreference('LAST_CHANGE_EMAIL') > (60 * 60 * 24 * $days)) {
76
+            if (WT_TIMESTAMP - (int) Site::getPreference('LAST_CHANGE_EMAIL') > (60 * 60 * 24 * $days)) {
77 77
                 // Which users have pending changes?
78 78
                 foreach (User::all() as $user) {
79 79
                     if ($user->getPreference('contactmethod') !== 'none') {
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
                                 I18N::init($user->getPreference('language'));
83 83
 
84 84
                                 $sender = new User(
85
-                                    (object)[
85
+                                    (object) [
86 86
                                         'user_id'   => null,
87 87
                                         'user_name' => '',
88 88
                                         'real_name' => $tree->getTitle(),
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
             }
120 120
             if ($sendmail === '1') {
121 121
                 $content .= I18N::translate('Last email reminder was sent ') . FunctionsDate::formatTimestamp(Site::getPreference('LAST_CHANGE_EMAIL')) . '<br>';
122
-                $content .= I18N::translate('Next email reminder will be sent after ') . FunctionsDate::formatTimestamp((int)Site::getPreference('LAST_CHANGE_EMAIL') + (60 * 60 * 24 * $days)) . '<br><br>';
122
+                $content .= I18N::translate('Next email reminder will be sent after ') . FunctionsDate::formatTimestamp((int) Site::getPreference('LAST_CHANGE_EMAIL') + (60 * 60 * 24 * $days)) . '<br><br>';
123 123
             }
124 124
             $content .= '<ul>';
125 125
             $changes = Database::prepare(
Please login to merge, or discard this patch.
app/Module/AbstractModule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -235,7 +235,7 @@
 block discarded – undo
235 235
         if ($access_level === null) {
236 236
             return $this->defaultAccessLevel();
237 237
         } else {
238
-            return (int)$access_level;
238
+            return (int) $access_level;
239 239
         }
240 240
     }
241 241
 
Please login to merge, or discard this patch.
app/Module/UserJournalModule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -153,7 +153,7 @@
 block discarded – undo
153 153
                 'user_id' => Auth::id(),
154 154
             ])->fetchOneRow();
155 155
         } else {
156
-            $row = (object)[
156
+            $row = (object) [
157 157
                 'body'    => '',
158 158
                 'subject' => '',
159 159
             ];
Please login to merge, or discard this patch.
app/Module/ChartsBlockModule.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
                         'generations' => 3,
85 85
                         'layout'      => PedigreeChartController::PORTRAIT,
86 86
                     ]);
87
-                    $content   = view('modules/charts/chart', [
87
+                    $content = view('modules/charts/chart', [
88 88
                         'block_id'  => $block_id,
89 89
                         'chart_url' => $chart_url,
90 90
                     ]);
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
                         'generations' => 2,
98 98
                         'chart_style' => 0,
99 99
                     ]);
100
-                    $content   = view('modules/charts/chart', [
100
+                    $content = view('modules/charts/chart', [
101 101
                         'block_id'  => $block_id,
102 102
                         'chart_url' => $chart_url,
103 103
                     ]);
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
                         'generations' => 2,
111 111
                         'layout'      => PedigreeChartController::PORTRAIT,
112 112
                     ]);
113
-                    $content   = view('modules/charts/chart', [
113
+                    $content = view('modules/charts/chart', [
114 114
                         'block_id'  => $block_id,
115 115
                         'chart_url' => $chart_url,
116 116
                     ]);
Please login to merge, or discard this patch.
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.