Completed
Pull Request — master (#1904)
by Rico
09:05
created
app/Module/ClippingsCartModule.php 1 patch
Spacing   +3 added lines, -3 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
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
         $this->checkModuleAccess($tree);
161 161
 
162 162
         $privatize_export = $request->get('privatize_export');
163
-        $convert          = (bool)$request->get('convert');
163
+        $convert          = (bool) $request->get('convert');
164 164
 
165 165
         $cart = Session::get('cart', []);
166 166
 
@@ -273,7 +273,7 @@  discard block
 block discarded – undo
273 273
 
274 274
         // Create a source, to indicate the source of the data.
275 275
         $filetext .= "0 @WEBTREES@ SOUR\n1 TITL " . WT_BASE_URL . "\n";
276
-        $author   = User::find($tree->getPreference('CONTACT_EMAIL'));
276
+        $author = User::find($tree->getPreference('CONTACT_EMAIL'));
277 277
         if ($author !== null) {
278 278
             $filetext .= '1 AUTH ' . $author->getRealName() . "\n";
279 279
         }
Please login to merge, or discard this patch.
app/Module/RecentChangesModule.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
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
         $days      = (int) $this->getBlockSetting($block_id, 'days', self::DEFAULT_DAYS);
59 59
         $infoStyle = $this->getBlockSetting($block_id, 'infoStyle', self::DEFAULT_INFO_STYLE);
60 60
         $sortStyle = $this->getBlockSetting($block_id, 'sortStyle', self::DEFAULT_SORT_STYLE);
61
-        $show_user = (bool)$this->getBlockSetting($block_id, 'show_user', self::DEFAULT_SHOW_USER);
61
+        $show_user = (bool) $this->getBlockSetting($block_id, 'show_user', self::DEFAULT_SHOW_USER);
62 62
 
63 63
         extract($cfg, EXTR_OVERWRITE);
64 64
 
Please login to merge, or discard this patch.
app/Module/BatchUpdate/BatchUpdateBasePlugin.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
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
      */
62 62
     public function getOptions(Request $request)
63 63
     {
64
-        $this->chan = (bool)$request->get('chan');
64
+        $this->chan = (bool) $request->get('chan');
65 65
     }
66 66
 
67 67
     /**
Please login to merge, or discard this patch.
app/Module/BatchUpdate/BatchUpdateSearchReplacePlugin.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
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
             'words'     => I18N::translate('Match the exact text, unless it occurs in the middle of a word.'),
177 177
             'wildcards' => I18N::translate('Use a “?” to match a single character, use “*” to match zero or more characters.'),
178 178
             /* I18N: http://en.wikipedia.org/wiki/Regular_expression */
179
-            'regex'     => I18N::translate('Regular expressions are an advanced pattern matching technique.') . '<br>' .  I18N::translate('See %s for more information.', '<a href="http://php.net/manual/regexp.reference.php">php.net/manual/regexp.reference.php</a>'),
179
+            'regex'     => I18N::translate('Regular expressions are an advanced pattern matching technique.') . '<br>' . I18N::translate('See %s for more information.', '<a href="http://php.net/manual/regexp.reference.php">php.net/manual/regexp.reference.php</a>'),
180 180
         ];
181 181
 
182 182
         return
Please login to merge, or discard this patch.
app/Module/ChartsBlockModule.php 1 patch
Spacing   +4 added lines, -4 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
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
                         'generations' => 3,
86 86
                         'layout'      => PedigreeChartController::PORTRAIT,
87 87
                     ]);
88
-                    $content   = view('modules/charts/chart', [
88
+                    $content = view('modules/charts/chart', [
89 89
                         'block_id'  => $block_id,
90 90
                         'chart_url' => $chart_url,
91 91
                     ]);
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
                         'generations' => 2,
99 99
                         'chart_style' => 0,
100 100
                     ]);
101
-                    $content   = view('modules/charts/chart', [
101
+                    $content = view('modules/charts/chart', [
102 102
                         'block_id'  => $block_id,
103 103
                         'chart_url' => $chart_url,
104 104
                     ]);
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
                         'generations' => 2,
112 112
                         'layout'      => PedigreeChartController::PORTRAIT,
113 113
                     ]);
114
-                    $content   = view('modules/charts/chart', [
114
+                    $content = view('modules/charts/chart', [
115 115
                         'block_id'  => $block_id,
116 116
                         'chart_url' => $chart_url,
117 117
                     ]);
Please login to merge, or discard this patch.
app/Module/UserMessagesModule.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
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
      */
57 57
     public function postDeleteMessageAction(Request $request, Tree $tree): Response
58 58
     {
59
-        $message_ids = (array)$request->get('message_id', []);
59
+        $message_ids = (array) $request->get('message_id', []);
60 60
 
61 61
         $stmt = Database::prepare("DELETE FROM `##message` WHERE user_id = :user_id AND message_id = :message_id");
62 62
 
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
 
102 102
         $content = '';
103 103
         if (!empty($users)) {
104
-            $url     = route('user-page', ['ged' => $tree->getName()]);
104
+            $url = route('user-page', ['ged' => $tree->getName()]);
105 105
             $content .= '<form onsubmit="return $(&quot;#to&quot;).val() !== &quot;&quot;">';
106 106
             $content .= '<input type="hidden" name="route" value="message">';
107 107
             $content .= '<input type="hidden" name="ged" value="' . e($tree->getName()) . '">';
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
                 $content .= '<td class="list_value_wrap"><a href="#" onclick="return expand_layer(\'message' . $message->message_id . '\');"><i id="message' . $message->message_id . '_img" class="icon-plus"></i> <b dir="auto">' . e($message->subject) . '</b></a></td>';
138 138
                 $content .= '<td class="list_value_wrap">' . FunctionsDate::formatTimestamp($message->created + WT_TIMESTAMP_OFFSET) . '</td>';
139 139
                 $content .= '<td class="list_value_wrap">';
140
-                $user    = User::findByIdentifier($message->sender);
140
+                $user = User::findByIdentifier($message->sender);
141 141
                 if ($user) {
142 142
                     $content .= '<span dir="auto">' . e($user->getRealName()) . '</span> - <span dir="auto">' . $user->getEmail() . '</span>';
143 143
                 } else {
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
                         'subject' => $message->subject,
160 160
                         'ged'     => $tree->getName(),
161 161
                     ]);
162
-                    $content   .= '<a class="btn btn-primary" href="' . e($reply_url) . '" title="' . I18N::translate('Reply') . '">' . I18N::translate('Reply') . '</a> ';
162
+                    $content .= '<a class="btn btn-primary" href="' . e($reply_url) . '" title="' . I18N::translate('Reply') . '">' . I18N::translate('Reply') . '</a> ';
163 163
                 }
164 164
                 $content .= '<button type="button" class="btn btn-danger" data-confirm="' . I18N::translate('Are you sure you want to delete this message? It cannot be retrieved later.') . '" onclick="if (confirm(this.dataset.confirm)) {$(\'#messageform :checkbox\').prop(\'checked\', false); $(\'#cb_message' . $message->message_id . '\').prop(\'checked\', true); document.messageform.submit();}">' . I18N::translate('Delete') . '</button></div></td></tr>';
165 165
             }
Please login to merge, or discard this patch.
app/Module/YahrzeitModule.php 1 patch
Spacing   +3 added lines, -3 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
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
 
70 70
         $calendar_service = new CalendarService();
71 71
 
72
-        $days      = (int)$this->getBlockSetting($block_id, 'days', self::DEFAULT_DAYS);
72
+        $days      = (int) $this->getBlockSetting($block_id, 'days', self::DEFAULT_DAYS);
73 73
         $infoStyle = $this->getBlockSetting($block_id, 'infoStyle', self::DEFAULT_STYLE);
74 74
         $calendar  = $this->getBlockSetting($block_id, 'calendar', self::DEFAULT_CALENDAR);
75 75
 
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
                         }
124 124
                         $yahrzeit_date = new Date($yahrzeit_date->format('%@ %A %O %E'));
125 125
 
126
-                        $yahrzeits[] = (object)[
126
+                        $yahrzeits[] = (object) [
127 127
                             'individual'    => $fact->getParent(),
128 128
                             'fact_date'     => $fact->getDate(),
129 129
                             'fact'          => $fact,
Please login to merge, or discard this patch.
app/Module/LoggedInUsersModule.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
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
             }
66 66
         }
67 67
         $count_logged_in = count($logged_in);
68
-        $content         .= '<div class="logged_in_count">';
68
+        $content .= '<div class="logged_in_count">';
69 69
         if ($anonymous) {
70 70
             $content .= I18N::plural('%s anonymous signed-in user', '%s anonymous signed-in users', $anonymous, I18N::number($anonymous));
71 71
             if ($count_logged_in) {
Please login to merge, or discard this patch.
app/Module/UpcomingAnniversariesModule.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
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
         $events_filter = implode('|', $event_array);
138 138
 
139 139
         $startjd = WT_CLIENT_JD + 1;
140
-        $endjd   = WT_CLIENT_JD + (int)$days;
140
+        $endjd   = WT_CLIENT_JD + (int) $days;
141 141
 
142 142
         $facts = $calendar_service->getEventsList($startjd, $endjd, $events_filter, $filter, $sortStyle, $tree);
143 143
 
Please login to merge, or discard this patch.