Passed
Push — master ( ce0915...fcbf06 )
by Matthew
06:41 queued 02:22
created
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.
www/docs/admin/popularsearches.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,13 +14,13 @@
 block discarded – undo
14 14
 
15 15
 $rows = [];
16 16
 foreach ($search_popular as $row) {
17
-    $rows[] =  [
17
+    $rows[] = [
18 18
         '<a href="' . $row['url'] . '">' . _htmlentities($row['query']) . '</a>',
19 19
         $row['c'],
20 20
     ];
21 21
 }
22 22
 
23
-$tabledata =  [
23
+$tabledata = [
24 24
     'header' =>  [
25 25
         'Query',
26 26
         'Count',
Please login to merge, or discard this patch.
www/docs/admin/index.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
         $name = _htmlspecialchars($row['firstname'] . ' ' . $row['lastname']);
74 74
     }
75 75
 
76
-    $rows[] =  [
76
+    $rows[] = [
77 77
         $name,
78 78
         '<a href="mailto:' . $row['email'] . '">' . $row['email'] . '</a>',
79 79
         $confirmed,
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
     ];
82 82
 }
83 83
 
84
-$tabledata =  [
84
+$tabledata = [
85 85
     'header' =>  [
86 86
         'Name',
87 87
         'Email',
Please login to merge, or discard this patch.
www/docs/admin/failedsearches.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
     $max_time = relative_time($row['max_time']);
21 21
     $min_time = str_replace(" ago", "", $min_time);
22 22
     $max_time = str_replace(" ago", "", $max_time);
23
-    $rows[] =  [
23
+    $rows[] = [
24 24
         $row['count_ips'],
25 25
         $row['group_count'],
26 26
         '<a href="' . $row['url'] . '">' . _htmlentities($row['query']) . '</a>',
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
     ];
30 30
 }
31 31
 
32
-$tabledata =  [
32
+$tabledata = [
33 33
     'header' =>  [
34 34
         'Distinct IPs',
35 35
         'Number of times',
Please login to merge, or discard this patch.