@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | } elseif ($bill_id) { |
51 | 51 | # Display the page for a particular bill |
52 | 52 | $this_page = 'pbc_bill'; |
53 | - $args = [ |
|
53 | + $args = [ |
|
54 | 54 | 'id' => $bill_id, |
55 | 55 | 'title' => $this->bill, |
56 | 56 | 'session' => $this->session, |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | # Display the bills for a particular session |
70 | 70 | $this_page = 'pbc_session'; |
71 | 71 | $DATA->set_page_metadata($this_page, 'title', "Session $this->session"); |
72 | - $args = [ |
|
72 | + $args = [ |
|
73 | 73 | 'session' => $this->session, |
74 | 74 | ]; |
75 | 75 | $data = []; |
@@ -91,12 +91,12 @@ discard block |
||
91 | 91 | |
92 | 92 | protected function getSearchSections() { |
93 | 93 | return [ |
94 | - [ 'section' => 'pbc' ], |
|
94 | + ['section' => 'pbc'], |
|
95 | 95 | ]; |
96 | 96 | } |
97 | 97 | |
98 | 98 | protected function front_content() { |
99 | - return $this->list->display('recent_pbc_debates', [ 'num' => 50 ], 'none'); |
|
99 | + return $this->list->display('recent_pbc_debates', ['num' => 50], 'none'); |
|
100 | 100 | } |
101 | 101 | |
102 | 102 | protected function display_front() { |
@@ -68,7 +68,7 @@ |
||
68 | 68 | } elseif ($this->session) { |
69 | 69 | # Display the bills for a particular session |
70 | 70 | $this_page = 'pbc_session'; |
71 | - $DATA->set_page_metadata($this_page, 'title', "Session $this->session"); |
|
71 | + $DATA->set_page_metadata($this_page, 'title', "session $this->session"); |
|
72 | 72 | $args = [ |
73 | 73 | 'session' => $this->session, |
74 | 74 | ]; |
@@ -20,7 +20,7 @@ |
||
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 | } |
@@ -40,7 +40,7 @@ discard block |
||
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 |
||
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 |
||
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); |
@@ -154,7 +154,7 @@ |
||
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), |
@@ -55,13 +55,13 @@ |
||
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, |
@@ -67,7 +67,7 @@ discard block |
||
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 |
||
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 | ]; |
@@ -57,7 +57,7 @@ discard block |
||
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 |
||
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 |
||
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', |
@@ -18,7 +18,7 @@ discard block |
||
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 |
||
27 | 27 | ]; |
28 | 28 | } |
29 | 29 | |
30 | -$tabledata = [ |
|
30 | +$tabledata = [ |
|
31 | 31 | 'header' => [ |
32 | 32 | 'Query', |
33 | 33 | 'Page', |
@@ -269,10 +269,10 @@ discard block |
||
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 |
||
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, |