Passed
Push — master ( ad0ec6...39c00e )
by Matthew
06:23 queued 02:14
created
www/includes/easyparliament/metadata.php 1 patch
Spacing   +269 added lines, -269 removed lines patch added patch discarded remove patch
@@ -65,10 +65,10 @@  discard block
 block discarded – undo
65 65
 
66 66
 */
67 67
 
68
-$page = array (
68
+$page = array(
69 69
 
70 70
 // Things used on EVERY page, unless overridden for a page:
71
-    'default' => array (
71
+    'default' => array(
72 72
         'parent'	=> '',
73 73
         'session_vars' => array('super_debug'),
74 74
         'sitetitle'		=> 'TheyWorkForYou',
@@ -78,127 +78,127 @@  discard block
 block discarded – undo
78 78
 
79 79
 // KEEP THE PAGES IN ALPHABETICAL ORDER! TA.
80 80
 
81
-    'about' => array (
81
+    'about' => array(
82 82
         'title'			=> gettext('About us'),
83 83
         'url'			=> 'about/'
84 84
     ),
85
-    'parliaments' => array (
85
+    'parliaments' => array(
86 86
         'title' 	=> 'Parliaments and assemblies',
87 87
         'url'       => 'parliaments/'
88 88
     ),
89 89
 
90
-    'alert_stats' => array (
90
+    'alert_stats' => array(
91 91
         'title'			=> 'Email alerts statistics',
92 92
         'parent'		=> 'admin',
93 93
         'url'			=> 'admin/alert_stats.php',
94 94
     ),
95
-    'admin_badusers' => array (
95
+    'admin_badusers' => array(
96 96
         'title'			=> 'Bad users',
97 97
         'parent'		=> 'admin',
98 98
         'url'			=> 'admin/badusers.php'
99 99
     ),
100
-    'admin_home' => array (
100
+    'admin_home' => array(
101 101
         'title'			=> 'Home',
102 102
         'parent'		=> 'admin',
103 103
         'url'			=> 'admin/'
104 104
     ),
105
-    'admin_comments' => array (
105
+    'admin_comments' => array(
106 106
         'title'			=> 'Recent comments',
107 107
         'parent'		=> 'admin',
108 108
         'url'			=> 'admin/comments.php'
109 109
     ),
110
-    'admin_commentreport' => array (
110
+    'admin_commentreport' => array(
111 111
         'title'			=> 'Processing a comment report',
112 112
         'parent'		=> 'admin',
113 113
         'url'			=> 'admin/report.php',
114
-        'session_vars'	=> array ('rid', 'cid')
114
+        'session_vars'	=> array('rid', 'cid')
115 115
     ),
116
-    'admin_commentreports' => array (
116
+    'admin_commentreports' => array(
117 117
         'title'			=> 'Outstanding comment reports',
118 118
         'parent'		=> 'admin',
119 119
         'url'			=> 'admin/reports.php'
120 120
     ),
121
-    'admin_failedsearches' => array (
121
+    'admin_failedsearches' => array(
122 122
         'title'			=> 'Failed searches',
123 123
         'parent'		=> 'admin',
124 124
         'url'			=> 'admin/failedsearches.php'
125 125
     ),
126
-    'admin_glossary' => array (
126
+    'admin_glossary' => array(
127 127
         'title'			=> 'Manage glossary entries',
128 128
         'parent'		=> 'admin',
129 129
         'url'			=> 'admin/glossary.php'
130 130
     ),
131
-    'admin_glossary_pending' => array (
131
+    'admin_glossary_pending' => array(
132 132
         'title'			=> 'Review pending glossary entries',
133 133
         'parent'		=> 'admin',
134 134
         'url'			=> 'admin/glossary_pending.php'
135 135
     ),
136
-    'admin_searchlogs' => array (
136
+    'admin_searchlogs' => array(
137 137
         'title'			=> 'Recent searches',
138 138
         'parent'		=> 'admin',
139 139
         'url'			=> 'admin/searchlogs.php'
140 140
     ),
141
-    'admin_popularsearches' => array (
141
+    'admin_popularsearches' => array(
142 142
         'title'			=> 'Popular searches in last 30 days (first 1000)',
143 143
         'parent'		=> 'admin',
144 144
         'url'			=> 'admin/popularsearches.php'
145 145
     ),
146
-    'admin_statistics' => array (
146
+    'admin_statistics' => array(
147 147
         'title'			=> 'General statistics',
148 148
         'parent'		=> 'admin',
149 149
         'url'			=> 'admin/statistics.php'
150 150
     ),
151
-    'admin_reportstats' => array (
151
+    'admin_reportstats' => array(
152 152
         'title'			=> 'Reporting statistics',
153 153
         'parent'		=> 'admin',
154 154
         'url'			=> 'admin/reporting_stats.php'
155 155
     ),
156
-    'admin_photos' => array (
156
+    'admin_photos' => array(
157 157
         'title'			=> 'Photo upload/attribution',
158 158
         'parent'		=> 'admin',
159 159
         'url'			=> 'admin/photos.php',
160 160
     ),
161
-    'admin_profile_message' => array (
161
+    'admin_profile_message' => array(
162 162
         'title'			=> 'Profile message banner',
163 163
         'parent'		=> 'admin',
164 164
         'url'			=> 'admin/profile-message.php',
165 165
     ),
166
-    'admin_mpurls' => array (
166
+    'admin_mpurls' => array(
167 167
         'title'			=> 'MP Websites',
168 168
         'parent'		=> 'admin',
169 169
         'url'			=> 'admin/websites.php',
170 170
     ),
171
-    'admin_policies' => array (
171
+    'admin_policies' => array(
172 172
         'title'			=> 'MP Policy details',
173 173
         'parent'		=> 'admin',
174 174
         'url'			=> 'admin/policies.php',
175 175
     ),
176
-    'admin_banner' => array (
176
+    'admin_banner' => array(
177 177
         'title'			=> 'Edit Banners',
178 178
         'parent'		=> 'admin',
179 179
         'url'			=> 'admin/banner.php?editorial_option=banner',
180 180
     ),
181
-    'admin_announcement' => array (
181
+    'admin_announcement' => array(
182 182
         'title'			=> 'Edit Announcements',
183 183
         'parent'		=> 'admin',
184 184
         'url'			=> 'admin/banner.php?editorial_option=announcements',
185 185
     ),
186
-    'admin_featured' => array (
186
+    'admin_featured' => array(
187 187
         'title'			=> 'Featured debates',
188 188
         'parent'		=> 'admin',
189 189
         'url'			=> 'admin/featured.php',
190 190
     ),
191
-    'admin_topics' => array (
191
+    'admin_topics' => array(
192 192
         'title'			=> 'Topics',
193 193
         'parent'		=> 'admin',
194 194
         'url'			=> 'admin/topics.php',
195 195
     ),
196
-    'admin_edittopics' => array (
196
+    'admin_edittopics' => array(
197 197
         'title'			=> 'Edit Topic',
198 198
         'parent'		=> 'admin_topics',
199 199
         'url'			=> 'admin/edittopic.php',
200 200
     ),
201
-    'admin_wikipedia' => array (
201
+    'admin_wikipedia' => array(
202 202
         'title' => 'Wikipedia links',
203 203
         'parent' => 'admin',
204 204
         'url' => 'admin/wikipedia.php',
@@ -206,8 +206,8 @@  discard block
 block discarded – undo
206 206
 
207 207
 // Added by Richard Allan for email alert functions
208 208
 
209
-    'alert' => array (
210
-        'menu'			=> array (
209
+    'alert' => array(
210
+        'menu'			=> array(
211 211
             'text'			=> 'Email Alerts',
212 212
             'title'			=> "Set up alerts for updates on an MP or Peer by email",
213 213
             'sidebar'		=> 'alert'
@@ -216,35 +216,35 @@  discard block
 block discarded – undo
216 216
         'title'			=> 'TheyWorkForYou Email Alerts',
217 217
         'url'			=> 'alert/',
218 218
     ),
219
-    'alertwelcome' => array (
219
+    'alertwelcome' => array(
220 220
         'title'			=> 'Email Alerts',
221 221
         'url'			=> 'alert/',
222 222
     ),
223 223
 
224 224
 // End of ALERTS additions
225 225
 
226
-    'api_front'		=> array (
227
-        'menu'			=> array (
226
+    'api_front'		=> array(
227
+        'menu'			=> array(
228 228
             'text'			=> 'API',
229 229
             'title'			=> 'Access our data'
230 230
         ),
231 231
         'title'			=> 'TheyWorkForYou API',
232 232
         'url'			=> 'api/'
233 233
     ),
234
-    'api_doc_front'		=> array (
235
-        'menu'			=> array (
234
+    'api_doc_front'		=> array(
235
+        'menu'			=> array(
236 236
             'text'			=> 'API',
237 237
             'title'			=> 'Access our data'
238 238
         ),
239 239
         'parent'		=> 'api_front',
240 240
         'url'			=> 'api/'
241 241
     ),
242
-    'api_key'		=> array (
242
+    'api_key'		=> array(
243 243
         'title'			=> 'Plan and keys',
244 244
         'parent'		=> 'api_front',
245 245
         'url'			=> 'api/key'
246 246
     ),
247
-    'api_invoices'		=> array (
247
+    'api_invoices'		=> array(
248 248
         'title'			=> 'Invoices',
249 249
         'parent'		=> 'api_front',
250 250
         'url'			=> 'api/invoices'
@@ -255,69 +255,69 @@  discard block
 block discarded – undo
255 255
         'url' => 'boundaries/',
256 256
     ),
257 257
 
258
-    'calendar_summary' => array (
259
-        'menu'			=> array (
258
+    'calendar_summary' => array(
259
+        'menu'			=> array(
260 260
             'text'			=> 'Upcoming',
261 261
             'title'			=> '',
262 262
         ),
263 263
         'parent'		=> 'hansard',
264 264
         'url'			=> 'calendar/'
265 265
     ),
266
-    'calendar_future_head' => array (
266
+    'calendar_future_head' => array(
267 267
         'parent'		=> 'calendar_summary',
268 268
         'title'			=> 'Upcoming business',
269 269
         'url'			=> 'calendar/'
270 270
     ),
271
-    'calendar_future' => array (
271
+    'calendar_future' => array(
272 272
         'parent'		=> 'calendar_future_head',
273 273
         'url'			=> 'calendar/'
274 274
     ),
275
-    'calendar_today_head' => array (
275
+    'calendar_today_head' => array(
276 276
         'parent'		=> 'calendar_summary',
277 277
         'title'			=> 'Today’s business',
278 278
         'url'			=> 'calendar/'
279 279
     ),
280
-    'calendar_today' => array (
280
+    'calendar_today' => array(
281 281
         'parent'		=> 'calendar_today_head',
282 282
         'url'			=> 'calendar/'
283 283
     ),
284
-    'calendar_past_head' => array (
284
+    'calendar_past_head' => array(
285 285
         'parent'		=> 'calendar_summary',
286 286
         'title'			=> 'Previous business',
287 287
         'url'			=> 'calendar/'
288 288
     ),
289
-    'calendar_past' => array (
289
+    'calendar_past' => array(
290 290
         'parent'		=> 'calendar_past_head',
291 291
         'url'			=> 'calendar/'
292 292
     ),
293 293
 
294
-    'cards' => array (
294
+    'cards' => array(
295 295
         'title'			=> 'MP Stats Cards',
296 296
         'url'			=> 'cards/'
297 297
     ),
298 298
 
299
-    'campaign_foi' => array (
299
+    'campaign_foi' => array(
300 300
         'title'			=> 'Freedom of Information (Parliament) Order 2009',
301 301
         'url'			=> 'foiorder2009/'
302 302
     ),
303
-    'campaign' => array (
303
+    'campaign' => array(
304 304
         'title'			=> '', #Free Our Bills!',
305 305
         'url'			=> 'freeourbills/'
306 306
     ),
307
-    'campaign_edm' => array (
307
+    'campaign_edm' => array(
308 308
         'title'			=> 'Early Day Motion',
309 309
         'parent'		=> 'campaign',
310 310
         'url'			=> 'freeourbills/'
311 311
     ),
312 312
 
313
-    'commentreport' => array (
313
+    'commentreport' => array(
314 314
         'title'			=> 'Reporting a comment',
315 315
         'url'			=> 'report/',
316
-        'session_vars'	=> array ('id')
316
+        'session_vars'	=> array('id')
317 317
     ),
318 318
 
319
-    'comments_recent' => array (
320
-        'menu'			=> array (
319
+    'comments_recent' => array(
320
+        'menu'			=> array(
321 321
             'text'			=> 'Recent comments',
322 322
             'title'			=> "Recently posted comments"
323 323
         ),
@@ -326,8 +326,8 @@  discard block
 block discarded – undo
326 326
         'url'			=> 'comments/recent/'
327 327
     ),
328 328
 
329
-    'contact' => array (
330
-        'menu'			=> array (
329
+    'contact' => array(
330
+        'menu'			=> array(
331 331
             'text'			=> gettext('Contact'),
332 332
             'title'			=> '',
333 333
         ),
@@ -338,23 +338,23 @@  discard block
 block discarded – undo
338 338
         'title' => gettext('News'),
339 339
         'url' => 'https://www.mysociety.org/category/projects/theyworkforyou/'
340 340
     ),
341
-    'debate'  => array (
341
+    'debate'  => array(
342 342
         'parent'		=> 'debatesfront',
343 343
         'url'			=> 'debates/',
344
-        'session_vars'	=> array ('id'),
344
+        'session_vars'	=> array('id'),
345 345
     ),
346
-    'debates'  => array (
346
+    'debates'  => array(
347 347
         'parent'		=> 'debatesfront',
348 348
         'url'			=> 'debates/',
349
-        'session_vars'	=> array ('id'),
349
+        'session_vars'	=> array('id'),
350 350
     ),
351
-    'debatesday' => array (
351
+    'debatesday' => array(
352 352
         'parent'		=> 'debatesfront',
353
-        'session_vars'	=> array ('d'),
353
+        'session_vars'	=> array('d'),
354 354
         'url'			=> 'debates/',
355 355
     ),
356
-    'alldebatesfront' => array (
357
-        'menu'			=> array (
356
+    'alldebatesfront' => array(
357
+        'menu'			=> array(
358 358
             'text'			=> 'Debates',
359 359
             'title'			=> "Debates in the House of Commons, Westminster Hall, and the House of Lords"
360 360
         ),
@@ -363,8 +363,8 @@  discard block
 block discarded – undo
363 363
         'rss'			=> 'rss/debates.rss',
364 364
         'url'			=> 'debates/'
365 365
     ),
366
-    'debatesfront' => array (
367
-        'menu'			=> array (
366
+    'debatesfront' => array(
367
+        'menu'			=> array(
368 368
             'text'			=> 'Commons debates',
369 369
             'title'			=> "Debates in the House of Commons"
370 370
         ),
@@ -373,12 +373,12 @@  discard block
 block discarded – undo
373 373
         'rss'			=> 'rss/debates.rss',
374 374
         'url'			=> 'debates/'
375 375
     ),
376
-    'debatesyear' => array (
376
+    'debatesyear' => array(
377 377
         'parent'		=> 'debatesfront',
378 378
         'url'			=> 'debates/'
379 379
     ),
380
-    'divisions_recent' => array (
381
-        'menu'			=> array (
380
+    'divisions_recent' => array(
381
+        'menu'			=> array(
382 382
             'text'			=> 'Recent Votes',
383 383
             'title'			=> ''
384 384
         ),
@@ -386,8 +386,8 @@  discard block
 block discarded – undo
386 386
         'title'			=> 'Recent Votes',
387 387
         'url'			=> 'divisions/'
388 388
     ),
389
-    'divisions_recent_commons' => array (
390
-        'menu'			=> array (
389
+    'divisions_recent_commons' => array(
390
+        'menu'			=> array(
391 391
             'text'			=> 'Recent Votes (Commons)',
392 392
             'title'			=> 'Recent Votes (Commons)'
393 393
         ),
@@ -395,8 +395,8 @@  discard block
 block discarded – undo
395 395
         'title'			=> 'Recent Votes',
396 396
         'url'			=> 'divisions/?house=commons'
397 397
     ),
398
-    'divisions_recent_lords' => array (
399
-        'menu'			=> array (
398
+    'divisions_recent_lords' => array(
399
+        'menu'			=> array(
400 400
             'text'			=> 'Recent Votes (Lords)',
401 401
             'title'			=> 'Recent Votes (Lords)'
402 402
         ),
@@ -404,8 +404,8 @@  discard block
 block discarded – undo
404 404
         'title'			=> 'Recent Votes',
405 405
         'url'			=> 'divisions/?house=lords'
406 406
     ),
407
-    'divisions_recent_wales' => array (
408
-        'menu'			=> array (
407
+    'divisions_recent_wales' => array(
408
+        'menu'			=> array(
409 409
             'text'			=> gettext('Recent Votes'),
410 410
             'title'			=> gettext('Recent Votes')
411 411
         ),
@@ -413,8 +413,8 @@  discard block
 block discarded – undo
413 413
         'title'			=> gettext('Recent Votes'),
414 414
         'url'			=> 'divisions/?house=senedd'
415 415
     ),
416
-    'divisions_recent_sp' => array (
417
-        'menu'			=> array (
416
+    'divisions_recent_sp' => array(
417
+        'menu'			=> array(
418 418
             'text'			=> 'Recent Votes',
419 419
             'title'			=> 'Recent Votes'
420 420
         ),
@@ -422,21 +422,21 @@  discard block
 block discarded – undo
422 422
         'title'			=> 'Recent Votes',
423 423
         'url'			=> 'divisions/?house=scotland'
424 424
     ),
425
-    'divisions_vote' => array (
425
+    'divisions_vote' => array(
426 426
         'parent'		=> 'divisions_recent',
427 427
         'title'			=> 'Vote',
428 428
         'url'			=> 'divisions/division.php',
429 429
         'session_vars'	=> array('vote'),
430 430
     ),
431
-    'donate' => array (
432
-        'menu'			=> array (
431
+    'donate' => array(
432
+        'menu'			=> array(
433 433
             'text'			=> gettext('Support Us'),
434 434
             'title'			=> '',
435 435
         ),
436 436
         'title'			=> gettext('Donate'),
437 437
         'url'			=> 'support-us/',
438 438
     ),
439
-    'epvote' => array (
439
+    'epvote' => array(
440 440
         'url'			=> 'vote/'
441 441
     ),
442 442
 
@@ -445,19 +445,19 @@  discard block
 block discarded – undo
445 445
         'title'			=> 'TheyWorkForYou Google gadget',
446 446
     ),
447 447
 
448
-    'glossary' => array (
448
+    'glossary' => array(
449 449
         'heading'		=> 'Glossary',
450 450
         'parent'		=> 'help_us_out',
451 451
         'url'			=> 'glossary/'
452 452
     ),
453
-    'glossary_item' => array (
453
+    'glossary_item' => array(
454 454
         'heading'		=> 'Glossary heading',
455 455
         'parent'		=> 'help_us_out',
456 456
         'url'			=> 'glossary/',
457
-        'session_vars'	=> array ('g')
457
+        'session_vars'	=> array('g')
458 458
     ),
459
-    'hansard' => array (
460
-        'menu'			=> array (
459
+    'hansard' => array(
460
+        'menu'			=> array(
461 461
             'text'			=> 'UK Parliament',
462 462
             'title'			=> "Houses of Parliament debates, Written Answers, Statements, Westminster Hall debates, and Bill Committees"
463 463
         ),
@@ -465,16 +465,16 @@  discard block
 block discarded – undo
465 465
         'url'			=> ''
466 466
     ),
467 467
         // Hansard landing page
468
-        'hansard_landing' => array (
468
+        'hansard_landing' => array(
469 469
                 'title'                 => 'Hansard',
470 470
                 'url'                   => 'search-hansard/',
471 471
         ),
472
-    'help' => array (
472
+    'help' => array(
473 473
         'title'			=> gettext('Help - Frequently Asked Questions'),
474 474
         'url'			=> 'help/'
475 475
     ),
476
-    'help_us_out' => array (
477
-        'menu'			=> array (
476
+    'help_us_out' => array(
477
+        'menu'			=> array(
478 478
             'text'			=> 'Glossary',
479 479
             'title'			=> "Parliament's jargon explained"
480 480
         ),
@@ -483,72 +483,72 @@  discard block
 block discarded – undo
483 483
         'url'			=> 'addterm/',
484 484
         'sidebar'		=> 'glossary_add'
485 485
     ),
486
-    'home' => array (
486
+    'home' => array(
487 487
         'title'			=> "UK Parliament",
488 488
         'rss'			=> 'news/index.rdf',
489 489
         'url'			=> ''
490 490
     ),
491
-    'houserules' => array (
491
+    'houserules' => array(
492 492
         'title'			=> 'House rules',
493 493
         'url'			=> 'houserules/'
494 494
     ),
495 495
 
496
-    'linktous' => array (
496
+    'linktous' => array(
497 497
         'title'			=> gettext('Link to us'),
498 498
         'heading'		=> gettext('How to link to us'),
499 499
         'url'			=> 'help/linktous/'
500 500
     ),
501
-    'api' => array (
501
+    'api' => array(
502 502
         'title'			=> gettext('API'),
503 503
         'heading'		=> gettext('API - Query the TheyWorkForYou database'),
504 504
         'url'			=> 'api/'
505 505
     ),
506
-    'data' => array (
506
+    'data' => array(
507 507
         'title'			=> gettext('Raw Data'),
508 508
         'heading'		=> gettext('Raw data (XML) - the data behind TheyWorkForYou and Public Whip'),
509 509
         'url'			=> 'https://parser.theyworkforyou.com'
510 510
     ),
511
-    'devmailinglist' => array (
511
+    'devmailinglist' => array(
512 512
         'title'			=> gettext('Developer mailing list'),
513 513
         'url'			=> 'https://groups.google.com/a/mysociety.org/forum/#!forum/theyworkforyou'
514 514
     ),
515
-    'code' => array (
515
+    'code' => array(
516 516
         'title'			=> gettext('Source code'),
517 517
         'heading'		=> gettext('TheyWorkForYou Source code'),
518 518
         'url'			=> 'https://github.com/mysociety/theyworkforyou'
519 519
     ),
520
-    'australia' => array (
520
+    'australia' => array(
521 521
         'title'			=> 'Australia',
522 522
         'heading'		=> 'Open Australia',
523 523
         'url'			=> 'https://www.openaustralia.org/'
524 524
     ),
525
-    'ireland' => array (
525
+    'ireland' => array(
526 526
         'title'			=> 'Ireland',
527 527
         'heading'		=> 'TheyWorkForYou for the Houses of the Oireachtas',
528 528
         'url'			=> 'https://www.kildarestreet.com/'
529 529
     ),
530
-    'mzalendo' => array (
530
+    'mzalendo' => array(
531 531
         'title'			=> 'Mzalendo',
532 532
         'heading'		=> 'Keeping an eye on the Kenyan Parliament',
533 533
         'url'			=> 'https://info.mzalendo.com/'
534 534
     ),
535
-    'lordsdebate'  => array (
535
+    'lordsdebate'  => array(
536 536
         'parent'		=> 'lordsdebatesfront',
537 537
         'url'			=> 'lords/',
538
-        'session_vars'	=> array ('id'),
538
+        'session_vars'	=> array('id'),
539 539
     ),
540
-    'lordsdebates'  => array (
540
+    'lordsdebates'  => array(
541 541
         'parent'		=> 'lordsdebatesfront',
542 542
         'url'			=> 'lords/',
543
-        'session_vars'	=> array ('id'),
543
+        'session_vars'	=> array('id'),
544 544
     ),
545
-    'lordsdebatesday' => array (
545
+    'lordsdebatesday' => array(
546 546
         'parent'		=> 'lordsdebatesfront',
547
-        'session_vars'	=> array ('d'),
547
+        'session_vars'	=> array('d'),
548 548
         'url'			=> 'lords/',
549 549
     ),
550
-    'lordsdebatesfront' => array (
551
-        'menu'			=> array (
550
+    'lordsdebatesfront' => array(
551
+        'menu'			=> array(
552 552
             'text'			=> 'Lords debates',
553 553
             'title'			=> "House of Lords debates"
554 554
         ),
@@ -557,24 +557,24 @@  discard block
 block discarded – undo
557 557
         'rss'			=> 'rss/lords.rss',
558 558
         'url'			=> 'lords/'
559 559
     ),
560
-    'lordsdebatesyear' => array (
560
+    'lordsdebatesyear' => array(
561 561
         'parent'		=> 'lordsdebatesfront',
562 562
         'url'			=> 'lords/'
563 563
     ),
564 564
 
565 565
         // Parliament landing page
566
-        'parliament_landing' => array (
566
+        'parliament_landing' => array(
567 567
                 'title'                 => 'Parliament',
568 568
                 'url'                   => 'parliament/',
569 569
         ),
570 570
 
571
-    'peer' => array (
571
+    'peer' => array(
572 572
         'parent'		=> 'peers',
573 573
         'title'			=> 'Peer',
574 574
         'url'			=> 'peer/'
575 575
     ),
576
-    'peers' => array (
577
-            'menu'			=> array (
576
+    'peers' => array(
577
+            'menu'			=> array(
578 578
             'text'			=> 'Lords',
579 579
             'title'			=> "List of Lords"
580 580
         ),
@@ -582,8 +582,8 @@  discard block
 block discarded – undo
582 582
         'title'			=> '',
583 583
         'url'			=> 'peers/'
584 584
     ),
585
-'overview' => array (
586
-        'menu'			=> array (
585
+'overview' => array(
586
+        'menu'			=> array(
587 587
         'text'			=> 'Overview',
588 588
         'title'			=> "Overview of the UK Parliament"
589 589
     ),
@@ -592,50 +592,50 @@  discard block
 block discarded – undo
592 592
     'rss'			=> 'news/index.rdf',
593 593
     'url'			=> ''
594 594
 ),
595
-    'mla' => array (
595
+    'mla' => array(
596 596
         'parent'		=> 'mlas',
597 597
         'title'			=> 'Find your MLA',
598 598
         'url'			=> 'mla/'
599 599
     ),
600
-    'mlas' => array (
600
+    'mlas' => array(
601 601
         'parent'		=> 'ni_home',
602
-        'menu'			=> array (
602
+        'menu'			=> array(
603 603
             'text'			=> 'MLAs',
604 604
             'title'			=> "List of Members of the Northern Ireland Assembly (MLAs)"
605 605
         ),
606 606
         'title'			=> '',
607 607
         'url'			=> 'mlas/'
608 608
     ),
609
-    'msps' => array (
609
+    'msps' => array(
610 610
         'parent'		=> 'sp_home',
611
-        'menu'			=> array (
611
+        'menu'			=> array(
612 612
             'text'			=> 'MSPs',
613 613
             'title'			=> "List of Members of the Scottish Parliament (MSPs)"
614 614
         ),
615 615
         'title'			=> '',
616 616
         'url'			=> 'msps/'
617 617
     ),
618
-    'msp' => array (
618
+    'msp' => array(
619 619
         'parent'		=> 'msps',
620 620
         'title'			=> 'Find your MSP',
621 621
         'url'			=> 'msp/'
622 622
     ),
623 623
     /* Not 'Your MP', whose name is 'yourmp'... */
624
-    'mp' => array (
624
+    'mp' => array(
625 625
         'parent'			=> 'mps',
626 626
         'title'			=> 'Find your MP',
627 627
         'url'			=> 'mp/'
628 628
     ),
629
-    'emailfriend' => array (
629
+    'emailfriend' => array(
630 630
         'title'			=> 'Send this page to a friend',
631 631
         'url'			=> 'email/'
632 632
     ),
633 633
     // The directory MPs' RSS feeds are stored in.
634
-    'mp_rss' => array (
634
+    'mp_rss' => array(
635 635
         'url'			=> 'rss/mp/'
636 636
     ),
637
-    'mps' => array (
638
-            'menu'			=> array (
637
+    'mps' => array(
638
+            'menu'			=> array(
639 639
             'text'			=> 'MPs',
640 640
             'title'			=> "List of Members of Parliament (MPs)"
641 641
         ),
@@ -646,16 +646,16 @@  discard block
 block discarded – undo
646 646
 
647 647
     /* Northern Ireland Assembly */
648 648
     'ni_home' => array(
649
-        'menu'			=> array (
649
+        'menu'			=> array(
650 650
             'text'			=> 'Northern Ireland Assembly',
651 651
             'title'			=> 'Full authority over <em>transferred matters</em>, which include agriculture, education, employment, the environment and health'
652 652
         ),
653 653
         'title'			=> 'Northern Ireland Assembly',
654 654
         'url'			=> 'ni/'
655 655
     ),
656
-    'nioverview' => array (
656
+    'nioverview' => array(
657 657
         'parent'		=> 'ni_home',
658
-        'menu'			=> array (
658
+        'menu'			=> array(
659 659
             'text'			=> 'Debates',
660 660
             'title'			=> "Debates in the Northern Ireland Assembly"
661 661
         ),
@@ -663,23 +663,23 @@  discard block
 block discarded – undo
663 663
         'rss'			=> 'rss/ni.rss',
664 664
         'url'			=> 'ni/?more=1'
665 665
     ),
666
-    'nidebate'  => array (
666
+    'nidebate'  => array(
667 667
         'parent'		=> 'nidebatesfront',
668 668
         'url'			=> 'ni/',
669
-        'session_vars'	=> array ('id'),
669
+        'session_vars'	=> array('id'),
670 670
     ),
671
-    'nidebates'  => array (
671
+    'nidebates'  => array(
672 672
         'parent'		=> 'nidebatesfront',
673 673
         'url'			=> 'ni/',
674
-        'session_vars'	=> array ('id'),
674
+        'session_vars'	=> array('id'),
675 675
     ),
676
-    'nidebatesday' => array (
676
+    'nidebatesday' => array(
677 677
         'parent'		=> 'nidebatesfront',
678
-        'session_vars'	=> array ('d'),
678
+        'session_vars'	=> array('d'),
679 679
         'url'			=> 'ni/',
680 680
     ),
681
-    'nidebatesfront' => array (
682
-        'menu'			=> array (
681
+    'nidebatesfront' => array(
682
+        'menu'			=> array(
683 683
             'text'			=> 'Debates',
684 684
             'title'			=> "Northern Ireland Assembly debates"
685 685
         ),
@@ -688,7 +688,7 @@  discard block
 block discarded – undo
688 688
         'rss'			=> 'rss/ni.rss',
689 689
         'url'			=> 'ni/'
690 690
     ),
691
-    'nidebatesyear' => array (
691
+    'nidebatesyear' => array(
692 692
         'parent'		=> 'nidebatesfront',
693 693
         'url'			=> 'ni/'
694 694
     ),
@@ -696,7 +696,7 @@  discard block
 block discarded – undo
696 696
     /* London Assembly */
697 697
 
698 698
     'london_home' => array(
699
-        'menu'          => array (
699
+        'menu'          => array(
700 700
             'text'      => 'London Assembly',
701 701
             'title'     => 'Members of the London Assembly, answers from the Mayor of London'
702 702
         ),
@@ -704,9 +704,9 @@  discard block
 block discarded – undo
704 704
         'url'           => 'london/'
705 705
     ),
706 706
 
707
-    'london-assembly-members' => array (
707
+    'london-assembly-members' => array(
708 708
         'parent'        => 'london_home',
709
-        'menu'          => array (
709
+        'menu'          => array(
710 710
             'text'      => 'London Assembly Members',
711 711
             'title'     => "List of Members of the London Assembly)"
712 712
         ),
@@ -714,48 +714,48 @@  discard block
 block discarded – undo
714 714
         'url'           => 'london-assembly-members/'
715 715
     ),
716 716
 
717
-    'london-assembly-member' => array (
717
+    'london-assembly-member' => array(
718 718
         'parent'        => 'london-assembly-members',
719 719
         'title'         => 'Find your London Assembly Member',
720 720
         'url'           => 'london-assembly-member/'
721 721
     ),
722 722
 
723
-    'lmqs' => array (
723
+    'lmqs' => array(
724 724
         'parent'		=> 'london_home',
725 725
         'url'			=> 'london/',
726
-        'session_vars'	=> array ('id')
726
+        'session_vars'	=> array('id')
727 727
     ),
728
-    'lmqsday'  => array (
728
+    'lmqsday'  => array(
729 729
         'parent'		=> 'london_home',
730 730
         'url'			=> 'london/',
731 731
     ),
732
-    'lmqsfront' => array (
732
+    'lmqsfront' => array(
733 733
         'parent'		=> 'london_home',
734
-        'menu'			=> array (
734
+        'menu'			=> array(
735 735
             'text'			=> 'Questions to the Mayor of London',
736 736
             'title'			=> "Questions to the Mayor of London"
737 737
         ),
738 738
         'title'			=> 'questions to the Mayor of London',
739 739
         'url'			=> 'london/',
740 740
     ),
741
-    'lmqsyear' => array (
741
+    'lmqsyear' => array(
742 742
         'parent'		=> 'london_home',
743 743
         'url'			=> 'london/',
744 744
     ),
745 745
 
746
-    'otheruseredit' => array (
746
+    'otheruseredit' => array(
747 747
         'pg'			=> 'editother',
748 748
         'title'			=> "Editing a user's data",
749 749
         'url'			=> 'user/'
750 750
     ),
751
-    'privacy' => array (
751
+    'privacy' => array(
752 752
         'title'			=> gettext('Privacy Policy'),
753 753
         'url'			=> 'privacy/'
754 754
     ),
755 755
 
756 756
     /* Public bill committees */
757
-    'pbc_front' => array (
758
-        'menu'			=> array (
757
+    'pbc_front' => array(
758
+        'menu'			=> array(
759 759
             'text'			=> 'Bill Committees',
760 760
             'title'			=> "Public Bill Committees (formerly Standing Committees) debates"
761 761
         ),
@@ -773,17 +773,17 @@  discard block
 block discarded – undo
773 773
         'title' => '',
774 774
         'url' => 'pbc/',
775 775
         'parent' => 'pbc_front',
776
-        'session_vars'	=> array ('bill'),
776
+        'session_vars'	=> array('bill'),
777 777
     ),
778 778
     'pbc_clause' => array(
779 779
         'parent'		=> 'pbc_front',
780 780
         'url'			=> 'pbc/',
781
-        'session_vars'	=> array ('id'),
781
+        'session_vars'	=> array('id'),
782 782
     ),
783 783
     'pbc_speech' => array(
784 784
         'parent'		=> 'pbc_front',
785 785
         'url'			=> 'pbc/',
786
-        'session_vars'	=> array ('id'),
786
+        'session_vars'	=> array('id'),
787 787
     ),
788 788
 
789 789
     'people' => array(
@@ -795,57 +795,57 @@  discard block
 block discarded – undo
795 795
         'url'			=> '',
796 796
     ),
797 797
 
798
-    'raw' => array (
798
+    'raw' => array(
799 799
         'title'			=> 'Raw data',
800 800
         'url'			=> 'raw/'
801 801
     ),
802 802
 
803
-    'regmem' => array (
803
+    'regmem' => array(
804 804
         'title'			=> 'Changes to the Register of Members\' Interests',
805 805
         'url'			=> 'regmem/'
806 806
     ),
807 807
 
808
-    'regmem_date' => array (
808
+    'regmem_date' => array(
809 809
         'url'			=> 'regmem/',
810 810
         'parent'		=> 'regmem'
811 811
     ),
812 812
 
813
-    'regmem_mp' => array (
813
+    'regmem_mp' => array(
814 814
         'url'			=> 'regmem/',
815 815
         'parent'		=> 'regmem'
816 816
     ),
817 817
 
818
-    'regmem_diff' => array (
818
+    'regmem_diff' => array(
819 819
         'url'			=> 'regmem/',
820 820
         'parent'		=> 'regmem'
821 821
     ),
822 822
 
823
-    'royal' => array (
823
+    'royal' => array(
824 824
         'parent'        => 'hansard',
825 825
         'title'         => 'Royal',
826 826
         'url'           => 'royal/',
827 827
     ),
828 828
 
829
-    'topic' => array (
829
+    'topic' => array(
830 830
         'parent'        => 'topics',
831 831
         'url'           => 'topic/topic.php',
832 832
     ),
833 833
 
834
-    'topics' => array (
834
+    'topics' => array(
835 835
         'title'        => 'Topics',
836 836
         'url'          => 'topic/',
837 837
     ),
838 838
 
839
-    'search'		=> array (
839
+    'search'		=> array(
840 840
         'sidebar'		=> 'search',
841 841
         'url'			=> 'search/',
842 842
         'robots'		=> 'noindex, nofollow',
843 843
         'heading'		=> '',
844
-        'session_vars'	=> array ('q', 'o', 'pop')
844
+        'session_vars'	=> array('q', 'o', 'pop')
845 845
     ),
846 846
 
847
-    'sitenews'		=> array (
848
-        'menu'			=> array (
847
+    'sitenews'		=> array(
848
+        'menu'			=> array(
849 849
             'text'			=> 'TheyWorkForYou news',
850 850
             'title'			=> "News about changes to this website"
851 851
         ),
@@ -855,68 +855,68 @@  discard block
 block discarded – undo
855 855
         'title'			=> 'TheyWorkForYou news',
856 856
         'url'			=> 'news/'
857 857
     ),
858
-    'sitenews_archive'		=> array (
858
+    'sitenews_archive'		=> array(
859 859
         'parent'		=> 'sitenews',
860 860
         'rss'			=> 'news/index.rdf',
861 861
         'sidebar'		=> 'sitenews',
862 862
         'title'			=> 'Archive',
863 863
         'url'			=> 'news/archives/'
864 864
     ),
865
-    'sitenews_atom' 	=> array (
865
+    'sitenews_atom' 	=> array(
866 866
         'url'			=> 'news/atom.xml'
867 867
     ),
868
-    'sitenews_date'	=> array (
868
+    'sitenews_date'	=> array(
869 869
         'parent'		=> 'sitenews',
870 870
         'rss'			=> 'news/index.rdf',
871 871
         'sidebar'		=> 'sitenews'
872 872
     ),
873
-    'sitenews_individual'	=> array (
873
+    'sitenews_individual'	=> array(
874 874
         'parent'		=> 'sitenews',
875 875
         'rss'			=> 'news/index.rdf',
876 876
         'sidebar'		=> 'sitenews',
877 877
     ),
878
-    'sitenews_rss1' 	=> array (
878
+    'sitenews_rss1' 	=> array(
879 879
         'url'			=> 'news/index.rdf'
880 880
     ),
881
-    'sitenews_rss2' 	=> array (
881
+    'sitenews_rss2' 	=> array(
882 882
         'url'			=> 'news/index.xml'
883 883
     ),
884 884
 
885 885
     /* Scottish Parliament */
886 886
     'sp_home' => array(
887
-        'menu'			=> array (
887
+        'menu'			=> array(
888 888
             'text'			=> 'Scottish Parliament',
889 889
             'title'			=> 'Scottish education, health, agriculture, justice, prisons and other devolved areas. Some tax-varying powers'
890 890
         ),
891 891
         'title'			=> 'Scottish Parliament',
892 892
         'url'			=> 'scotland/'
893 893
     ),
894
-    'spoverview' => array (
894
+    'spoverview' => array(
895 895
         'parent'		=> 'sp_home',
896
-        'menu'			=> array (
896
+        'menu'			=> array(
897 897
             'text'			=> 'Overview',
898 898
             'title'			=> "Overview of the Scottish Parliament"
899 899
         ),
900 900
         'title'			=> '',
901 901
         'url'			=> 'scotland/'
902 902
     ),
903
-    'spdebate'  => array (
903
+    'spdebate'  => array(
904 904
         'parent'		=> 'spdebatesfront',
905 905
         'url'			=> 'sp/',
906
-        'session_vars'	=> array ('id'),
906
+        'session_vars'	=> array('id'),
907 907
     ),
908
-    'spdebates'  => array (
908
+    'spdebates'  => array(
909 909
         'parent'		=> 'spdebatesfront',
910 910
         'url'			=> 'sp/',
911
-        'session_vars'	=> array ('id'),
911
+        'session_vars'	=> array('id'),
912 912
     ),
913
-    'spdebatesday' => array (
913
+    'spdebatesday' => array(
914 914
         'parent'		=> 'spdebatesfront',
915
-        'session_vars'	=> array ('d'),
915
+        'session_vars'	=> array('d'),
916 916
         'url'			=> 'sp/',
917 917
     ),
918
-    'spdebatesfront' => array (
919
-        'menu'			=> array (
918
+    'spdebatesfront' => array(
919
+        'menu'			=> array(
920 920
             'text'			=> 'Debates',
921 921
             'title'			=> 'Debates in the Scottish Parliament'
922 922
         ),
@@ -925,21 +925,21 @@  discard block
 block discarded – undo
925 925
         'url'			=> 'sp/'
926 926
     ),
927 927
 
928
-    'spdebatesyear' => array (
928
+    'spdebatesyear' => array(
929 929
         'parent'		=> 'spdebatesfront',
930 930
         'url'			=> 'sp/'
931 931
     ),
932
-    'spwrans'  => array (
932
+    'spwrans'  => array(
933 933
         'parent'		=> 'spwransfront',
934 934
         'url'			=> 'spwrans/',
935 935
         #'session_vars'	=> array ('id'),
936 936
     ),
937
-    'spwransday'  => array (
937
+    'spwransday'  => array(
938 938
         'parent'		=> 'spwransfront',
939 939
         'url'			=> 'spwrans/'
940 940
     ),
941
-    'spwransfront'  => array (
942
-        'menu'			=> array (
941
+    'spwransfront'  => array(
942
+        'menu'			=> array(
943 943
             'text'			=> 'Written Answers',
944 944
             'title'			=> 'Written Answers and Statements'
945 945
         ),
@@ -952,31 +952,31 @@  discard block
 block discarded – undo
952 952
         'title'			=> 'For questions asked by ',
953 953
         'url'			=> 'spwrans/'
954 954
     ),
955
-    'spwransyear' => array (
955
+    'spwransyear' => array(
956 956
         'parent'		=> 'spwransfront',
957 957
         'url'			=> 'spwrans/'
958 958
     ),
959 959
 
960 960
     // Topic pages
961 961
 
962
-    'topic' => array (
962
+    'topic' => array(
963 963
         'url'           => 'topic/',
964 964
         'title'         => 'Topics'
965 965
     ),
966 966
 
967
-    'topicbenefits' => array (
967
+    'topicbenefits' => array(
968 968
         'url'           => 'topic/benefits',
969 969
         'parent'        => 'topic',
970 970
         'title'         => 'Benefits'
971 971
     ),
972 972
 
973
-    'topiccrimestats' => array (
973
+    'topiccrimestats' => array(
974 974
         'url'           => 'topic/crime-stats',
975 975
         'parent'        => 'topic',
976 976
         'title'         => 'Crime Statistics'
977 977
     ),
978 978
 
979
-    'topicnhs' => array (
979
+    'topicnhs' => array(
980 980
         'url'           => 'topic/nhs',
981 981
         'parent'        => 'topic',
982 982
         'title'         => 'NHS'
@@ -991,29 +991,29 @@  discard block
 block discarded – undo
991 991
         'url'			=> 'user/alerts/',
992 992
         'parent'		=> 'userviewself'
993 993
     ),
994
-    'userchangepc' => array (
994
+    'userchangepc' => array(
995 995
         'title'			=> 'Change your postcode',
996 996
         'url'			=> 'user/changepc/'
997 997
     ),
998
-    'userconfirm' => array (
998
+    'userconfirm' => array(
999 999
         'url'			=> 'user/confirm/'
1000 1000
     ),
1001
-    'userconfirmed' => array (
1001
+    'userconfirmed' => array(
1002 1002
         'sidebar'		=> 'userconfirmed',
1003 1003
         'title'			=> 'Welcome to TheyWorkForYou!',
1004 1004
         'url'			=> 'user/confirm/'
1005 1005
     ),
1006
-    'userconfirmfailed' => array (
1006
+    'userconfirmfailed' => array(
1007 1007
         'title'			=> 'Oops!',
1008 1008
         'url'			=> 'user/confirm/'
1009 1009
     ),
1010
-    'useredit' => array (
1010
+    'useredit' => array(
1011 1011
         'pg'			=> 'edit',
1012 1012
         'title'			=> 'Edit your details',
1013 1013
         'url'			=> 'user/'
1014 1014
     ),
1015
-    'userjoin' => array (
1016
-                'menu'                  => array (
1015
+    'userjoin' => array(
1016
+                'menu'                  => array(
1017 1017
                         'text'                  => gettext('Join'),
1018 1018
                         'title'                 => gettext("Joining is free and allows you to manage your email alerts")
1019 1019
                 ),
@@ -1022,8 +1022,8 @@  discard block
 block discarded – undo
1022 1022
                 'title'                 => gettext('Join TheyWorkForYou'),
1023 1023
                 'url'                   => 'user/'
1024 1024
         ),
1025
-    'userlogin' => array (
1026
-        'menu'			=> array (
1025
+    'userlogin' => array(
1026
+        'menu'			=> array(
1027 1027
             'text'			=> gettext('Sign in'),
1028 1028
             'title'			=> gettext("If you've already joined, sign in to your account")
1029 1029
         ),
@@ -1032,33 +1032,33 @@  discard block
 block discarded – undo
1032 1032
         'url'			=> 'user/login/'
1033 1033
     ),
1034 1034
 
1035
-    'userlogout' => array (
1036
-        'menu'			=> array (
1035
+    'userlogout' => array(
1036
+        'menu'			=> array(
1037 1037
             'text'			=> 'Sign out',
1038 1038
             'title'			=> "Sign out"
1039 1039
         ),
1040 1040
         'url'			=> 'user/logout/'
1041 1041
     ),
1042
-    'userpassword' => array (
1042
+    'userpassword' => array(
1043 1043
         'title'			=> 'Change password',
1044 1044
         'url'			=> 'user/password/'
1045 1045
     ),
1046
-    'userprompt' => array (
1046
+    'userprompt' => array(
1047 1047
         'title'			=> 'Please sign in',
1048 1048
         'url'			=> 'user/prompt/'
1049 1049
     ),
1050
-    'userview' => array (
1050
+    'userview' => array(
1051 1051
         'session_vars'	=> array('u'),
1052 1052
         'url'			=> 'user/'
1053 1053
     ),
1054
-    'userviewself' => array (
1055
-        'menu'			=> array (
1054
+    'userviewself' => array(
1055
+        'menu'			=> array(
1056 1056
             'text'			=> 'Your details',
1057 1057
             'title'			=> "View and edit your details"
1058 1058
         ),
1059 1059
         'url'			=> 'user/'
1060 1060
     ),
1061
-    'userwelcome' => array (
1061
+    'userwelcome' => array(
1062 1062
         'title'			=> 'Welcome!',
1063 1063
         'url'			=> 'user/'
1064 1064
     ),
@@ -1072,31 +1072,31 @@  discard block
 block discarded – undo
1072 1072
         'title' => 'Senedd Cymru / Welsh Parliament',
1073 1073
         'url' => 'senedd/'
1074 1074
     ),
1075
-    'mss' => array (
1075
+    'mss' => array(
1076 1076
         'parent' => 'wales_home',
1077
-        'menu' => array (
1077
+        'menu' => array(
1078 1078
             'text' => gettext('MSs'),
1079 1079
             'title' => gettext("List of Members of the Senedd (MSs)")
1080 1080
         ),
1081 1081
         'title' => '',
1082 1082
         'url' => 'mss/'
1083 1083
     ),
1084
-    'wales_debates' => array (
1084
+    'wales_debates' => array(
1085 1085
         'parent' => 'wales_home',
1086
-        'menu' => array (
1086
+        'menu' => array(
1087 1087
             'text' => gettext('Debates'),
1088 1088
             'title' => gettext("Debates in the Senedd")
1089 1089
         ),
1090 1090
         'title' => '',
1091 1091
         'url' => 'senedd/?more=1'
1092 1092
     ),
1093
-    'ms' => array (
1093
+    'ms' => array(
1094 1094
         'parent' => 'mss',
1095 1095
         'title' => gettext('Find your MS'),
1096 1096
         'url' => 'ms/'
1097 1097
     ),
1098
-    'yourms' => array (
1099
-        'menu'			=> array (
1098
+    'yourms' => array(
1099
+        'menu'			=> array(
1100 1100
             'text'		=> gettext('Your MSs'),
1101 1101
             'title'		=> gettext("Find out about your Members of the Senedd")
1102 1102
         ),
@@ -1106,9 +1106,9 @@  discard block
 block discarded – undo
1106 1106
         'url'			=> 'ms/'
1107 1107
     ),
1108 1108
 
1109
-    'seneddoverview' => array (
1109
+    'seneddoverview' => array(
1110 1110
         'parent' => 'wales_home',
1111
-        'menu' => array (
1111
+        'menu' => array(
1112 1112
             'text' => gettext('Overview'),
1113 1113
             'title' => gettext("Overview of the Senedd debates")
1114 1114
         ),
@@ -1116,23 +1116,23 @@  discard block
 block discarded – undo
1116 1116
         'rss' => 'rss/senedd.rss',
1117 1117
         'url' => 'senedd/'
1118 1118
     ),
1119
-    'senedddebate'  => array (
1119
+    'senedddebate'  => array(
1120 1120
         'parent' => 'senedddebatesfront',
1121 1121
         'url' => 'senedd/',
1122
-        'session_vars' => array ('id'),
1122
+        'session_vars' => array('id'),
1123 1123
     ),
1124
-    'senedddebates'  => array (
1124
+    'senedddebates'  => array(
1125 1125
         'parent' => 'senedddebatesfront',
1126 1126
         'url' => 'senedd/',
1127
-        'session_vars' => array ('id'),
1127
+        'session_vars' => array('id'),
1128 1128
     ),
1129
-    'senedddebatesday' => array (
1129
+    'senedddebatesday' => array(
1130 1130
         'parent' => 'senedddebatesfront',
1131
-        'session_vars' => array ('d'),
1131
+        'session_vars' => array('d'),
1132 1132
         'url' => 'senedd/',
1133 1133
     ),
1134
-    'senedddebatesfront' => array (
1135
-        'menu' => array (
1134
+    'senedddebatesfront' => array(
1135
+        'menu' => array(
1136 1136
             'text' => 'Debates',
1137 1137
             'title' => gettext("Senedd debates")
1138 1138
         ),
@@ -1141,29 +1141,29 @@  discard block
 block discarded – undo
1141 1141
         'rss' => 'rss/senedd.rss',
1142 1142
         'url' => 'senedd/'
1143 1143
     ),
1144
-    'senedddebatesyear' => array (
1144
+    'senedddebatesyear' => array(
1145 1145
         'parent' => 'senedddebatesfront',
1146 1146
         'url' => 'senedd/'
1147 1147
     ),
1148 1148
 
1149 1149
     /* Westminster Hall */
1150
-    'whall'  => array (
1150
+    'whall'  => array(
1151 1151
         'parent'		=> 'whallfront',
1152 1152
         'url'			=> 'whall/',
1153
-        'session_vars'	=> array ('id'),
1153
+        'session_vars'	=> array('id'),
1154 1154
     ),
1155
-    'whalls'  => array (
1155
+    'whalls'  => array(
1156 1156
         'parent'		=> 'whallfront',
1157 1157
         'url'			=> 'whall/',
1158
-        'session_vars'	=> array ('id'),
1158
+        'session_vars'	=> array('id'),
1159 1159
     ),
1160
-    'whallday' => array (
1160
+    'whallday' => array(
1161 1161
         'parent'		=> 'whallfront',
1162
-        'session_vars'	=> array ('d'),
1162
+        'session_vars'	=> array('d'),
1163 1163
         'url'			=> 'whall/',
1164 1164
     ),
1165
-    'whallfront' => array (
1166
-        'menu'			=> array (
1165
+    'whallfront' => array(
1166
+        'menu'			=> array(
1167 1167
             'text'			=> 'Westminster Hall',
1168 1168
             'title'			=> "Westminster Hall debates"
1169 1169
         ),
@@ -1172,23 +1172,23 @@  discard block
 block discarded – undo
1172 1172
         'rss'			=> 'rss/whall.rss',
1173 1173
         'url'			=> 'whall/'
1174 1174
     ),
1175
-    'whallyear' => array (
1175
+    'whallyear' => array(
1176 1176
         'parent'		=> 'whallfront',
1177 1177
         'url'			=> 'whall/'
1178 1178
     ),
1179 1179
 
1180
-    'wms' => array (
1180
+    'wms' => array(
1181 1181
         'parent'		=> 'wranswmsfront',
1182 1182
         'url'			=> 'wms/',
1183 1183
         'session_vars'	=> array('id')
1184 1184
     ),
1185
-    'wmsday' => array (
1185
+    'wmsday' => array(
1186 1186
         'parent'		=> 'wmsfront',
1187 1187
         'session_vars'	=> array('d'),
1188 1188
         'url'			=> 'wms/'
1189 1189
     ),
1190
-    'wmsfront' => array (
1191
-        'menu'			=> array (
1190
+    'wmsfront' => array(
1191
+        'menu'			=> array(
1192 1192
             'text'			=> 'Written Ministerial Statements',
1193 1193
             'title'			=> ''
1194 1194
         ),
@@ -1197,22 +1197,22 @@  discard block
 block discarded – undo
1197 1197
         'rss'			=> 'rss/wms.rss',
1198 1198
         'url'			=> 'wms/'
1199 1199
     ),
1200
-    'wmsyear' => array (
1200
+    'wmsyear' => array(
1201 1201
         'parent'		=> 'wmsfront',
1202 1202
         'url'			=> 'wms/'
1203 1203
     ),
1204 1204
 
1205
-    'wrans'  => array (
1205
+    'wrans'  => array(
1206 1206
         'parent'		=> 'wranswmsfront',
1207 1207
         'url'			=> 'wrans/',
1208
-        'session_vars'	=> array ('id')
1208
+        'session_vars'	=> array('id')
1209 1209
     ),
1210
-    'wransday'  => array (
1210
+    'wransday'  => array(
1211 1211
         'parent'		=> 'wransfront',
1212 1212
         'url'			=> 'wrans/'
1213 1213
     ),
1214
-    'wransfront'  => array (
1215
-        'menu'			=> array (
1214
+    'wransfront'  => array(
1215
+        'menu'			=> array(
1216 1216
             'text'			=> 'Written Answers',
1217 1217
             'title'			=> "Written Answers"
1218 1218
         ),
@@ -1225,13 +1225,13 @@  discard block
 block discarded – undo
1225 1225
         'title'			=> 'For questions asked by ',
1226 1226
         'url'			=> 'wrans/'
1227 1227
     ),
1228
-    'wransyear' => array (
1228
+    'wransyear' => array(
1229 1229
         'parent'		=> 'wransfront',
1230 1230
         'url'			=> 'wrans/'
1231 1231
     ),
1232 1232
 
1233
-    'wranswmsfront'  => array (
1234
-        'menu'			=> array (
1233
+    'wranswmsfront'  => array(
1234
+        'menu'			=> array(
1235 1235
             'text'			=> 'Written Answers',
1236 1236
             'title'			=> 'Written Answers and Statements',
1237 1237
         ),
@@ -1248,8 +1248,8 @@  discard block
 block discarded – undo
1248 1248
         'title' => 'Your representative',
1249 1249
         'url' => 'your/',
1250 1250
     ),
1251
-    'yourmp' => array (
1252
-        'menu'			=> array (
1251
+    'yourmp' => array(
1252
+        'menu'			=> array(
1253 1253
             'text'			=> gettext('Your MP'),
1254 1254
             'title'			=> gettext("Find out about your Member of Parliament")
1255 1255
         ),
@@ -1258,8 +1258,8 @@  discard block
 block discarded – undo
1258 1258
         'url'			=> 'mp/',
1259 1259
         'parent'			=> 'mps',
1260 1260
     ),
1261
-    'yourmp_recent' => array (
1262
-        'menu'			=> array (
1261
+    'yourmp_recent' => array(
1262
+        'menu'			=> array(
1263 1263
             'text'			=> 'Recent appearances',
1264 1264
             'title'			=> "Recent speeches and written answers by this MP"
1265 1265
         ),
@@ -1267,8 +1267,8 @@  discard block
 block discarded – undo
1267 1267
         'title'			=> "Your MP's recent appearances in parliament",
1268 1268
         'url'			=> 'mp/?recent=1'
1269 1269
     ),
1270
-    'yourmsp' => array (
1271
-        'menu'			=> array (
1270
+    'yourmsp' => array(
1271
+        'menu'			=> array(
1272 1272
             'text'			=> 'Your MSPs',
1273 1273
             'title'			=> "Find out about your Members of the Scottish Parliament"
1274 1274
         ),
@@ -1277,8 +1277,8 @@  discard block
 block discarded – undo
1277 1277
         'title'			=> 'Your MSPs',
1278 1278
         'url'			=> 'msp/'
1279 1279
     ),
1280
-    'yourmla' => array (
1281
-        'menu'			=> array (
1280
+    'yourmla' => array(
1281
+        'menu'			=> array(
1282 1282
             'text'			=> 'Your MLAs',
1283 1283
             'title'			=> "Find out about your Members of the Legislative Assembly"
1284 1284
         ),
@@ -1294,38 +1294,38 @@  discard block
 block discarded – undo
1294 1294
 // The text displayed on the page itself will also be this,
1295 1295
 // UNLESS the section has a 'heading', in which case that's used instead.
1296 1296
 
1297
-$section = array (
1297
+$section = array(
1298 1298
 
1299 1299
 
1300
-    'about' => array (
1300
+    'about' => array(
1301 1301
         'title' 	=> 'About Us'
1302 1302
     ),
1303
-    'admin' => array (
1303
+    'admin' => array(
1304 1304
         'title'		=> 'Admin'
1305 1305
     ),
1306
-    'debates' => array (
1306
+    'debates' => array(
1307 1307
         'title' 	=> 'Debates',
1308 1308
         'heading'	=> 'House of Commons Debates'
1309 1309
     ),
1310
-    'help_us_out' => array (
1310
+    'help_us_out' => array(
1311 1311
         'title' 	=> 'Help Us Out'
1312 1312
     ),
1313
-    'hansard' => array (
1313
+    'hansard' => array(
1314 1314
         'title' 	=> 'Hansard'
1315 1315
     ),
1316
-    'home' => array (
1316
+    'home' => array(
1317 1317
         'title' 	=> 'Home'
1318 1318
     ),
1319
-    'mp' => array (
1319
+    'mp' => array(
1320 1320
         'title' 	=> 'Your MP'
1321 1321
     ),
1322
-    'search' => array (
1322
+    'search' => array(
1323 1323
         'title' 	=> 'Search'
1324 1324
     ),
1325
-    'sitenews' => array (
1325
+    'sitenews' => array(
1326 1326
         'title' 	=> 'TheyWorkForYou news'
1327 1327
     ),
1328
-    'wrans' => array (
1328
+    'wrans' => array(
1329 1329
         'title' 	=> 'Written Answers'
1330 1330
     )
1331 1331
 
Please login to merge, or discard this patch.
www/docs/vote/index.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
         voteerror("Your browser must be able to accept cookies before you can register a vote.");
32 32
     } else {
33 33
         // Delete the test cookie.
34
-        setcookie ('testcookie', '');
34
+        setcookie('testcookie', '');
35 35
     }
36 36
     // On with the voting...!
37 37
 
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
     // We need to check the user can accept cookies, so...
41 41
 
42 42
     // Set a cookie
43
-    setcookie ('testcookie', 'true');
43
+    setcookie('testcookie', 'true');
44 44
 
45 45
     $ret = get_http_var('ret');
46 46
     $id = get_http_var('id');
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
 
68 68
     $PAGE->page_start();
69 69
 
70
-    $message = array (
70
+    $message = array(
71 71
         'title'	=> 'Sorry',
72 72
         'text'	=> $text
73 73
     );
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
         $prev_epvotes[] = $epobject_id;
159 159
         $new_cookie = implode('+', $prev_epvotes);
160 160
 
161
-        setcookie ("epvotes", $new_cookie, time()+60*60*24*365, "/", COOKIEDOMAIN);
161
+        setcookie("epvotes", $new_cookie, time() + 60 * 60 * 24 * 365, "/", COOKIEDOMAIN);
162 162
 
163 163
 
164 164
     } else {
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
 
190 190
 $PAGE->page_start();
191 191
 
192
-$message = array (
192
+$message = array(
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/includes/easyparliament/templates/html/postcode/index.php 2 patches
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
         if ($current) {
55 55
             if ($house == HOUSE_TYPE_NI) {
56 56
                 echo '<li>' . sprintf(gettext('Your <strong>%s MLAs</strong> (Members of the Legislative Assembly) are:'), $areas[$area_type]);
57
-            } elseif ($house == HOUSE_TYPE_WALES){
57
+            } elseif ($house == HOUSE_TYPE_WALES) {
58 58
                 echo '<li>' . sprintf(gettext('Your <strong>%s region MSs</strong> are:'), gettext($areas[$area_type]));
59 59
             } else {
60 60
                 echo '<li>' . sprintf(gettext('Your <strong>%s %s</strong> are:'), gettext($areas[$area_type]), $member_names['plural']);
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
         } else {
63 63
             if ($house == HOUSE_TYPE_NI) {
64 64
                 echo '<li>' . sprintf(gettext('Your <strong>%s MLAs</strong> (Members of the Legislative Assembly) were:'), $areas[$area_type]);
65
-            } elseif ($house == HOUSE_TYPE_WALES){
65
+            } elseif ($house == HOUSE_TYPE_WALES) {
66 66
                 echo '<li>' . sprintf(gettext('Your <strong>%s region MSs</strong> were:'), gettext($areas[$area_type]));
67 67
             } else {
68 68
                 echo '<li>' . sprintf(gettext('Your <strong>%s %s</strong> were:'), gettext($areas[$area_type]), $member_names['plural']);
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
     // If image_url is null, render nothing
34 34
     $image_url = image_from_person_id($person_id);
35 35
     if ($image_url) {
36
-        echo '<a class="postcode-rep-list__link" href="' . $person_url . '"><img src="' . $image_url . '" height=80 width=60 alt="' . $person_name .'"></a>';
36
+        echo '<a class="postcode-rep-list__link" href="' . $person_url . '"><img src="' . $image_url . '" height=80 width=60 alt="' . $person_name . '"></a>';
37 37
     }
38 38
 }
39 39
 
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
                 echo 'They are standing down at the general election.';
63 63
             } ?>
64 64
             </span>
65
-            <?php member_image_box($mp["person_id"], '/mp/?p=' . $mp['person_id'],  $mp['name']) ?>
65
+            <?php member_image_box($mp["person_id"], '/mp/?p=' . $mp['person_id'], $mp['name']) ?>
66 66
         </li>
67 67
 <?php } else { ?>
68 68
         <li>Your MP is currently unknown.</li>
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
         if ($current) {
100 100
             if ($house == HOUSE_TYPE_NI) {
101 101
                 echo '<li>' . sprintf(gettext('Your <strong>%s MLAs</strong> (Members of the Legislative Assembly) are:'), $areas[$area_type]);
102
-            } elseif ($house == HOUSE_TYPE_WALES){
102
+            } elseif ($house == HOUSE_TYPE_WALES) {
103 103
                 echo '<li>' . sprintf(gettext('Your <strong>%s region MSs</strong> are:'), gettext($areas[$area_type]));
104 104
             } else {
105 105
                 echo '<li>' . sprintf(gettext('Your <strong>%s %s</strong> are:'), gettext($areas[$area_type]), $member_names['plural']);
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
         } else {
108 108
             if ($house == HOUSE_TYPE_NI) {
109 109
                 echo '<li>' . sprintf(gettext('Your <strong>%s MLAs</strong> (Members of the Legislative Assembly) were:'), $areas[$area_type]);
110
-            } elseif ($house == HOUSE_TYPE_WALES){
110
+            } elseif ($house == HOUSE_TYPE_WALES) {
111 111
                 echo '<li>' . sprintf(gettext('Your <strong>%s region MSs</strong> were:'), gettext($areas[$area_type]));
112 112
             } else {
113 113
                 echo '<li>' . sprintf(gettext('Your <strong>%s %s</strong> were:'), gettext($areas[$area_type]), $member_names['plural']);
@@ -117,8 +117,8 @@  discard block
 block discarded – undo
117 117
         foreach ($mreg as $reg) {
118 118
             $url = $urlp . $reg['person_id'];
119 119
             $name = $reg['given_name'] . ' ' . $reg['family_name'];
120
-            echo '<li><span class="postcode-rep-list__sub-item"><a href="' . $url . '">' . $name  . '</a>';
121
-            member_image_box($reg["person_id"], $url, $name );
120
+            echo '<li><span class="postcode-rep-list__sub-item"><a href="' . $url . '">' . $name . '</a>';
121
+            member_image_box($reg["person_id"], $url, $name);
122 122
             echo '</span></li>';
123 123
         }
124 124
         echo '</ul>';
Please login to merge, or discard this patch.
www/docs/postcode/index.php 2 patches
Braces   +18 added lines, -7 removed lines patch added patch discarded remove patch
@@ -40,9 +40,13 @@  discard block
 block discarded – undo
40 40
 
41 41
 $data['ballot'] = null;
42 42
 foreach ($dc_data->dates as $date) {
43
-    if ($date->date != '2024-07-04') continue;
43
+    if ($date->date != '2024-07-04') {
44
+        continue;
45
+    }
44 46
     foreach ($date->ballots as $b) {
45
-        if ($b->election_id != 'parl.2024-07-04') continue;
47
+        if ($b->election_id != 'parl.2024-07-04') {
48
+            continue;
49
+        }
46 50
         $data['ballot'] = $b;
47 51
     }
48 52
 }
@@ -223,7 +227,9 @@  discard block
 block discarded – undo
223 227
     $url = str_replace('{s}', $address, OPTION_MAPIT_UPRN_LOOKUP);
224 228
     $file = web_lookup($url);
225 229
     $r = json_decode($file);
226
-    if (isset($r->error)) return mapit_postcode($pc);
230
+    if (isset($r->error)) {
231
+        return mapit_postcode($pc);
232
+    }
227 233
     $filename = 'point/4326/' . $r->wgs84_lon . ',' . $r->wgs84_lat;
228 234
     return mapit_lookup('point', $filename);
229 235
 }
@@ -232,14 +238,19 @@  discard block
 block discarded – undo
232 238
     global $mapit_ids;
233 239
     $file = web_lookup(OPTION_MAPIT_URL . $filename);
234 240
     $r = json_decode($file);
235
-    if (isset($r->error)) return '';
236
-    if ($type == 'postcode' && !isset($r->areas)) return '';
241
+    if (isset($r->error)) {
242
+        return '';
243
+    }
244
+    if ($type == 'postcode' && !isset($r->areas)) {
245
+        return '';
246
+    }
237 247
 
238 248
     $input = ($type == 'postcode') ? $r->areas : $r;
239 249
     $areas = array();
240 250
     foreach ($input as $row) {
241
-        if (in_array($row->type, array('WMC', 'WMCF', 'SPC', 'SPE', 'NIE', 'WAC', 'WAE')))
242
-            $areas[$row->type] = $row->name;
251
+        if (in_array($row->type, array('WMC', 'WMCF', 'SPC', 'SPE', 'NIE', 'WAC', 'WAE'))) {
252
+                    $areas[$row->type] = $row->name;
253
+        }
243 254
         if ($row->type == 'WMC') {
244 255
             $mapit_ids['old'] = $row->id;
245 256
         }
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
 
17 17
 $pc = preg_replace('#[^a-z0-9]#i', '', $pc);
18 18
 if (!validate_postcode($pc)) {
19
-    twfy_debug ('MP', "Can't display an MP because the submitted postcode wasn't of a valid form.");
19
+    twfy_debug('MP', "Can't display an MP because the submitted postcode wasn't of a valid form.");
20 20
     postcode_error("Sorry, " . _htmlentities($pc) . " isn't a valid postcode");
21 21
 }
22 22
 
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
     exit;
89 89
 }
90 90
 
91
-function fetch_mp($pc, $constituencies, $house=null) {
91
+function fetch_mp($pc, $constituencies, $house = null) {
92 92
     global $THEUSER;
93 93
     $args = array('constituency' => $constituencies['WMC']);
94 94
     if ($house) {
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
     }
97 97
     try {
98 98
         $MEMBER = new MEMBER($args);
99
-    } catch (MySociety\TheyWorkForYou\MemberException $e){
99
+    } catch (MySociety\TheyWorkForYou\MemberException $e) {
100 100
         postcode_error($e->getMessage());
101 101
     }
102 102
     if ($MEMBER->person_id()) {
@@ -112,13 +112,13 @@  discard block
 block discarded – undo
112 112
     $member_names = \MySociety\TheyWorkForYou\Utility\House::house_to_members($house);
113 113
     if ($house == HOUSE_TYPE_SCOTLAND) {
114 114
         $urlp = 'msp';
115
-        $a = [ $areas['SPC'], $areas['SPE'] ];
115
+        $a = [$areas['SPC'], $areas['SPE']];
116 116
     } elseif ($house == HOUSE_TYPE_WALES) {
117 117
         $urlp = 'ms';
118
-        $a = [ $areas['WAC'], $areas['WAE'] ];
118
+        $a = [$areas['WAC'], $areas['WAE']];
119 119
     } elseif ($house == HOUSE_TYPE_NI) {
120 120
         $urlp = 'mla';
121
-        $a = [ $areas['NIE'] ];
121
+        $a = [$areas['NIE']];
122 122
     }
123 123
     $urlpl = $urlp . 's';
124 124
     $urlp = "/$urlp/?p=";
Please login to merge, or discard this patch.
www/includes/easyparliament/templates/html/mp/_profile_footer.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -5,9 +5,9 @@  discard block
 block discarded – undo
5 5
 
6 6
     <p><?= gettext('For an explanation of the vote descriptions please see our page about <a href="/voting-information">voting information on TheyWorkForYou</a>.') ?></p>
7 7
 
8
-  <?php if(isset($data['photo_attribution_text'])) { ?>
8
+  <?php if (isset($data['photo_attribution_text'])) { ?>
9 9
     <p>
10
-      <?php if(isset($data['photo_attribution_link'])) { ?>
10
+      <?php if (isset($data['photo_attribution_link'])) { ?>
11 11
         <?= gettext('Profile photo:') ?>
12 12
         <a href="<?= $data['photo_attribution_link'] ?>"><?= $data['photo_attribution_text'] ?></a>
13 13
       <?php } else { ?>
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
       <?php } ?>
16 16
     </p>
17 17
   <?php } ?>
18
-  <?php if(!$image || !$image['exists']) { ?>
18
+  <?php if (!$image || !$image['exists']) { ?>
19 19
     <p>
20 20
         We&rsquo;re missing a photo of <?= $full_name ?>.
21 21
         If you have a photo <em>that you can release under
Please login to merge, or discard this patch.
www/includes/easyparliament/templates/html/postcode/ge2024.php 1 patch
Braces   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -11,9 +11,12 @@
 block discarded – undo
11 11
 }
12 12
 </style>
13 13
 <p><a href='#current'>See your current <?php
14
-    if (isset($mcon) || isset($mreg)) echo 'representatives';
15
-    else echo 'MP';
16
-?></a></p>
14
+    if (isset($mcon) || isset($mreg)) {
15
+        echo 'representatives';
16
+    } else {
17
+        echo 'MP';
18
+    }
19
+    ?></a></p>
17 20
 
18 21
 <p>There is a UK general election on <strong>4th July 2024</strong>
19 22
 <?php
Please login to merge, or discard this patch.
classes/Renderer/Header.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
         if (isset($nextprev[$linktype]) && isset($nextprev[$linktype]['url'])) {
145 145
 
146 146
             if (isset($nextprev[$linktype]['body'])) {
147
-                $linktitle = _htmlentities( trim_characters($nextprev[$linktype]['body'], 0, 40) );
147
+                $linktitle = _htmlentities(trim_characters($nextprev[$linktype]['body'], 0, 40));
148 148
                 if (isset($nextprev[$linktype]['speaker']) &&
149 149
                     count($nextprev[$linktype]['speaker']) > 0) {
150 150
                     $linktitle = $nextprev[$linktype]['speaker']['name'] . ': ' . $linktitle;
@@ -171,10 +171,10 @@  discard block
 block discarded – undo
171 171
 
172 172
         if ($nextprev) {
173 173
             // Four different kinds of back/forth links we might build.
174
-            $links = array ("first", "prev", "up", "next", "last");
174
+            $links = array("first", "prev", "up", "next", "last");
175 175
 
176 176
             foreach ($links as $type) {
177
-                if ( $link = $this->generate_next_prev_link( $nextprev, $type ) ) {
177
+                if ($link = $this->generate_next_prev_link($nextprev, $type)) {
178 178
 
179 179
                     $this->data['header_links'][] = $link;
180 180
                 }
@@ -309,9 +309,9 @@  discard block
 block discarded – undo
309 309
         // Page names mapping to those in metadata.php.
310 310
         // Links in the top menu, and the sublinks we see if
311 311
         // we're within that section.
312
-        $nav_items = array (
312
+        $nav_items = array(
313 313
             array('home'),
314
-            array('hansard', 'mps', 'peers', 'alldebatesfront', 'wranswmsfront', 'pbc_front', 'divisions_recent_commons', 'divisions_recent_lords',  'calendar_summary'),
314
+            array('hansard', 'mps', 'peers', 'alldebatesfront', 'wranswmsfront', 'pbc_front', 'divisions_recent_commons', 'divisions_recent_lords', 'calendar_summary'),
315 315
             array('sp_home', 'spoverview', 'msps', 'spdebatesfront', 'spwransfront', 'divisions_recent_sp'),
316 316
             array('ni_home', 'nioverview', 'mlas'),
317 317
             array('wales_home', 'seneddoverview', 'mss', 'wales_debates', 'divisions_recent_wales'),
@@ -345,7 +345,7 @@  discard block
 block discarded – undo
345 345
             // we need to escape back to the english site
346 346
             $URL = new \MySociety\TheyWorkForYou\Url($toppage);
347 347
             $url = $URL->generate();
348
-            if (LANGUAGE == 'cy' && strpos($url, '/senedd/') === false ) {
348
+            if (LANGUAGE == 'cy' && strpos($url, '/senedd/') === false) {
349 349
                 $url = "//" . DOMAIN . $url;
350 350
             }
351 351
 
Please login to merge, or discard this patch.