Passed
Pull Request — master (#1932)
by Struan
05:36
created
classes/SectionView/LondonView.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
 
21 21
     protected function getSearchSections() {
22 22
         return [
23
-            [ 'section' => 'lmqs', 'title' => 'Mayoral Questions' ],
23
+            ['section' => 'lmqs', 'title' => 'Mayoral Questions'],
24 24
         ];
25 25
     }
26 26
 }
Please login to merge, or discard this patch.
classes/SectionView/SeneddView.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 
41 41
     protected function getSearchSections() {
42 42
         return [
43
-            [ 'section' => 'wales' ],
43
+            ['section' => 'wales'],
44 44
         ];
45 45
     }
46 46
 
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
 
62 62
         $debates = $DEBATELIST->display('recent_debates', ['days' => 30, 'num' => 6], 'none');
63 63
         $MOREURL = new \MySociety\TheyWorkForYou\Url('senedddebatesfront');
64
-        $MOREURL->insert([ 'more' => 1 ]);
64
+        $MOREURL->insert(['more' => 1]);
65 65
 
66 66
         // this makes sure that we don't repeat this debate in the list below
67 67
         $random_debate = null;
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
         }
96 96
 
97 97
         $data['featured'] = $featured;
98
-        $data['debates'] = [ 'recent' => $recent];
98
+        $data['debates'] = ['recent' => $recent];
99 99
 
100 100
         $data['regional'] = $this->getMSList();
101 101
         $data['search_box'] = $this->getSearchBox($data);
Please login to merge, or discard this patch.
scripts/alertmpchanged.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -154,7 +154,7 @@
 block discarded – undo
154 154
     global $globalsuccess, $sentemails, $nomail, $start_time;
155 155
 
156 156
     $sentemails++;
157
-    mlog("SEND $sentemails : Sending email to $current[email] ... ");
157
+    mlog("send $sentemails : Sending email to $current[email] ... ");
158 158
     $d = ['to' => $current['email'], 'template' => $template];
159 159
     $m = [
160 160
         'DATA' => join("\n", $data),
Please login to merge, or discard this patch.
www/docs/email/index.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,13 +55,13 @@
 block discarded – undo
55 55
     } elseif ($MEMBER->house_disp == 3) {
56 56
         $rep_name .= ' MLA';
57 57
     }
58
-    $data =  [
58
+    $data = [
59 59
         'template'      => 'email_a_friend',
60 60
         'to'            => $recipient_email,
61 61
         'subject'       => 'Find out all about ' . $rep_name,
62 62
     ];
63 63
     $url = $MEMBER->url(true);
64
-    $merge =  [
64
+    $merge = [
65 65
         'NAME' => $sender_name,
66 66
         'EMAIL' => $sender_email,
67 67
         'REP_NAME' => $rep_name,
Please login to merge, or discard this patch.
www/docs/vote/index.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
 
68 68
     $PAGE->page_start();
69 69
 
70
-    $message =  [
70
+    $message = [
71 71
         'title'	=> 'Sorry',
72 72
         'text'	=> $text,
73 73
     ];
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
 
190 190
 $PAGE->page_start();
191 191
 
192
-$message =  [
192
+$message = [
193 193
     'title'	=> "Thanks for your vote",
194 194
     'text'	=> "<strong>Would you like to ask a question like this yourself?</strong> Use our <a href=\"https://www.whatdotheyknow.com\">Freedom of Information site</a>.",
195 195
 ];
Please login to merge, or discard this patch.
www/docs/admin/badusers.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
 
58 58
     $USERURL->insert(['u' => $user_id]);
59 59
 
60
-    $rows[] =  [
60
+    $rows[] = [
61 61
         '<a href="' . $USERURL->generate() . '">' . $row['firstname'] . ' ' . $row['lastname'] . '</a>',
62 62
         $totalcomments,
63 63
         $row['deletedcount'],
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
     ];
67 67
 }
68 68
 
69
-$tabledata =  [
69
+$tabledata = [
70 70
     'header' =>  [
71 71
         'Name',
72 72
         'Total comments',
@@ -114,14 +114,14 @@  discard block
 block discarded – undo
114 114
                     WHERE	user_id = '$user_id'
115 115
                     AND		upheld = '1'")->first();
116 116
 
117
-    $rows[] =  [
117
+    $rows[] = [
118 118
         '<a href="' . $USERURL->generate() . '">' . $row['firstname'] . ' ' . $row['lastname'] . '</a>',
119 119
         $row['rejectedcount'],
120 120
         $r['upheldcount'],
121 121
     ];
122 122
 
123 123
 }
124
-$tabledata =  [
124
+$tabledata = [
125 125
     'header' =>  [
126 126
         'Name',
127 127
         'Reports not upheld',
Please login to merge, or discard this patch.
www/docs/admin/searchlogs.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
     $host = trim_characters($host, strlen($host) - 25, 100);
19 19
     $time = relative_time($row['query_time']);
20 20
     $time = str_replace(" ago", "", $time);
21
-    $rows[] =  [
21
+    $rows[] = [
22 22
         '<a href="' . $row['url'] . '">' . _htmlentities($row['query']) . '</a>',
23 23
         $row['page_number'],
24 24
         $row['count_hits'],
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
     ];
28 28
 }
29 29
 
30
-$tabledata =  [
30
+$tabledata = [
31 31
     'header' =>  [
32 32
         'Query',
33 33
         'Page',
Please login to merge, or discard this patch.
www/docs/admin/report.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -269,10 +269,10 @@  discard block
 block discarded – undo
269 269
             }
270 270
 
271 271
             // Prepare the data needed for either email.
272
-            $data =  [
272
+            $data = [
273 273
                 'to' 			=> $email,
274 274
             ];
275
-            $merge =  [
275
+            $merge = [
276 276
                 'REPORTBODY' 	=> strip_tags($REPORT->body()),
277 277
             ];
278 278
 
@@ -306,12 +306,12 @@  discard block
 block discarded – undo
306 306
             // Remove the anchor for their now deleted comment.
307 307
             $addcommentsurl = 'https://' . DOMAIN . preg_replace("/#.*$/", '#addcomment', $COMMENT->url());
308 308
 
309
-            $data =  [
309
+            $data = [
310 310
                 'to' => $USER->email(),
311 311
                 'template' => 'comment_deleted_blank',
312 312
                 'subject' => 'One of your comments has been deleted',
313 313
             ];
314
-            $merge =  [
314
+            $merge = [
315 315
                 'REPLYBODY' => get_http_var('commentermail'),
316 316
                 #				'DELETEDREASON'	=> get_http_var('deletedreason'),
317 317
                 'ADDCOMMENTURL'	=> $addcommentsurl,
Please login to merge, or discard this patch.
www/docs/admin/glossary_pending.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
 
9 9
 $EDITQUEUE = new \MySociety\TheyWorkForYou\GlossaryEditQueue();
10 10
 
11
-$args =  [
11
+$args = [
12 12
     'sort' => "regexp_replace",
13 13
 ];
14 14
 $GLOSSARY = new GLOSSARY($args);
@@ -23,18 +23,18 @@  discard block
 block discarded – undo
23 23
 if (get_http_var('approve')) {
24 24
     $approve = get_http_var('approve', '', true);
25 25
     if (!is_array($approve)) {
26
-        $approve =  [ $approve ];
26
+        $approve = [$approve];
27 27
     }
28 28
     // Add all approved items
29
-    $data =  [
29
+    $data = [
30 30
         'approvals' => $approve,
31 31
         'epobject_type' => 2,
32 32
     ];
33 33
     $EDITQUEUE->approve($data);
34 34
 } elseif (get_http_var('decline')) {
35
-    $decline =  [get_http_var('decline')];
35
+    $decline = [get_http_var('decline')];
36 36
     // Dump all declined items
37
-    $data =  [
37
+    $data = [
38 38
         'declines' => $decline,
39 39
         'epobject_type' => 2,
40 40
     ];
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
 
112 112
     // add a modification to the database
113 113
     if (get_http_var('submitterm') && get_http_var('modify')) {
114
-        $data =  [
114
+        $data = [
115 115
             'user_id'	=> get_http_var('userid'),
116 116
             'title'		=> get_http_var('g'),
117 117
             'body'		=> get_http_var('definition'),
Please login to merge, or discard this patch.