Passed
Push — master ( 5f2bd1...7c2064 )
by
unknown
13:34
created
www/includes/easyparliament/metadata.php 1 patch
Spacing   +270 added lines, -270 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,77 +483,77 @@  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'			=> 'http://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
-    'irc' => array (
520
+    'irc' => array(
521 521
         'title'			=> 'IRC chat channel',
522 522
         'heading'		=> 'IRC chat channel',
523 523
         'url'			=> 'http://www.irc.mysociety.org/'
524 524
     ),
525
-    'australia' => array (
525
+    'australia' => array(
526 526
         'title'			=> 'Australia',
527 527
         'heading'		=> 'Open Australia',
528 528
         'url'			=> 'http://www.openaustralia.org/'
529 529
     ),
530
-    'ireland' => array (
530
+    'ireland' => array(
531 531
         'title'			=> 'Ireland',
532 532
         'heading'		=> 'TheyWorkForYou for the Houses of the Oireachtas',
533 533
         'url'			=> 'http://www.kildarestreet.com/'
534 534
     ),
535
-    'mzalendo' => array (
535
+    'mzalendo' => array(
536 536
         'title'			=> 'Mzalendo',
537 537
         'heading'		=> 'Keeping an eye on the Kenyan Parliament',
538 538
         'url'			=> 'http://info.mzalendo.com/'
539 539
     ),
540
-    'lordsdebate'  => array (
540
+    'lordsdebate'  => array(
541 541
         'parent'		=> 'lordsdebatesfront',
542 542
         'url'			=> 'lords/',
543
-        'session_vars'	=> array ('id'),
543
+        'session_vars'	=> array('id'),
544 544
     ),
545
-    'lordsdebates'  => array (
545
+    'lordsdebates'  => array(
546 546
         'parent'		=> 'lordsdebatesfront',
547 547
         'url'			=> 'lords/',
548
-        'session_vars'	=> array ('id'),
548
+        'session_vars'	=> array('id'),
549 549
     ),
550
-    'lordsdebatesday' => array (
550
+    'lordsdebatesday' => array(
551 551
         'parent'		=> 'lordsdebatesfront',
552
-        'session_vars'	=> array ('d'),
552
+        'session_vars'	=> array('d'),
553 553
         'url'			=> 'lords/',
554 554
     ),
555
-    'lordsdebatesfront' => array (
556
-        'menu'			=> array (
555
+    'lordsdebatesfront' => array(
556
+        'menu'			=> array(
557 557
             'text'			=> 'Lords debates',
558 558
             'title'			=> "House of Lords debates"
559 559
         ),
@@ -562,24 +562,24 @@  discard block
 block discarded – undo
562 562
         'rss'			=> 'rss/lords.rss',
563 563
         'url'			=> 'lords/'
564 564
     ),
565
-    'lordsdebatesyear' => array (
565
+    'lordsdebatesyear' => array(
566 566
         'parent'		=> 'lordsdebatesfront',
567 567
         'url'			=> 'lords/'
568 568
     ),
569 569
 
570 570
         // Parliament landing page
571
-        'parliament_landing' => array (
571
+        'parliament_landing' => array(
572 572
                 'title'                 => 'Parliament',
573 573
                 'url'                   => 'parliament/',
574 574
         ),
575 575
 
576
-    'peer' => array (
576
+    'peer' => array(
577 577
         'parent'		=> 'peers',
578 578
         'title'			=> 'Peer',
579 579
         'url'			=> 'peer/'
580 580
     ),
581
-    'peers' => array (
582
-            'menu'			=> array (
581
+    'peers' => array(
582
+            'menu'			=> array(
583 583
             'text'			=> 'Lords',
584 584
             'title'			=> "List of Lords"
585 585
         ),
@@ -587,8 +587,8 @@  discard block
 block discarded – undo
587 587
         'title'			=> '',
588 588
         'url'			=> 'peers/'
589 589
     ),
590
-'overview' => array (
591
-        'menu'			=> array (
590
+'overview' => array(
591
+        'menu'			=> array(
592 592
         'text'			=> 'Overview',
593 593
         'title'			=> "Overview of the UK Parliament"
594 594
     ),
@@ -597,50 +597,50 @@  discard block
 block discarded – undo
597 597
     'rss'			=> 'news/index.rdf',
598 598
     'url'			=> ''
599 599
 ),
600
-    'mla' => array (
600
+    'mla' => array(
601 601
         'parent'		=> 'mlas',
602 602
         'title'			=> 'Find your MLA',
603 603
         'url'			=> 'mla/'
604 604
     ),
605
-    'mlas' => array (
605
+    'mlas' => array(
606 606
         'parent'		=> 'ni_home',
607
-        'menu'			=> array (
607
+        'menu'			=> array(
608 608
             'text'			=> 'MLAs',
609 609
             'title'			=> "List of Members of the Northern Ireland Assembly (MLAs)"
610 610
         ),
611 611
         'title'			=> '',
612 612
         'url'			=> 'mlas/'
613 613
     ),
614
-    'msps' => array (
614
+    'msps' => array(
615 615
         'parent'		=> 'sp_home',
616
-        'menu'			=> array (
616
+        'menu'			=> array(
617 617
             'text'			=> 'MSPs',
618 618
             'title'			=> "List of Members of the Scottish Parliament (MSPs)"
619 619
         ),
620 620
         'title'			=> '',
621 621
         'url'			=> 'msps/'
622 622
     ),
623
-    'msp' => array (
623
+    'msp' => array(
624 624
         'parent'		=> 'msps',
625 625
         'title'			=> 'Find your MSP',
626 626
         'url'			=> 'msp/'
627 627
     ),
628 628
     /* Not 'Your MP', whose name is 'yourmp'... */
629
-    'mp' => array (
629
+    'mp' => array(
630 630
         'parent'			=> 'mps',
631 631
         'title'			=> 'Find your MP',
632 632
         'url'			=> 'mp/'
633 633
     ),
634
-    'emailfriend' => array (
634
+    'emailfriend' => array(
635 635
         'title'			=> 'Send this page to a friend',
636 636
         'url'			=> 'email/'
637 637
     ),
638 638
     // The directory MPs' RSS feeds are stored in.
639
-    'mp_rss' => array (
639
+    'mp_rss' => array(
640 640
         'url'			=> 'rss/mp/'
641 641
     ),
642
-    'mps' => array (
643
-            'menu'			=> array (
642
+    'mps' => array(
643
+            'menu'			=> array(
644 644
             'text'			=> 'MPs',
645 645
             'title'			=> "List of Members of Parliament (MPs)"
646 646
         ),
@@ -651,16 +651,16 @@  discard block
 block discarded – undo
651 651
 
652 652
     /* Northern Ireland Assembly */
653 653
     'ni_home' => array(
654
-        'menu'			=> array (
654
+        'menu'			=> array(
655 655
             'text'			=> 'Northern Ireland Assembly',
656 656
             'title'			=> 'Full authority over <em>transferred matters</em>, which include agriculture, education, employment, the environment and health'
657 657
         ),
658 658
         'title'			=> 'Northern Ireland Assembly',
659 659
         'url'			=> 'ni/'
660 660
     ),
661
-    'nioverview' => array (
661
+    'nioverview' => array(
662 662
         'parent'		=> 'ni_home',
663
-        'menu'			=> array (
663
+        'menu'			=> array(
664 664
             'text'			=> 'Debates',
665 665
             'title'			=> "Debates in the Northern Ireland Assembly"
666 666
         ),
@@ -668,23 +668,23 @@  discard block
 block discarded – undo
668 668
         'rss'			=> 'rss/ni.rss',
669 669
         'url'			=> 'ni/?more=1'
670 670
     ),
671
-    'nidebate'  => array (
671
+    'nidebate'  => array(
672 672
         'parent'		=> 'nidebatesfront',
673 673
         'url'			=> 'ni/',
674
-        'session_vars'	=> array ('id'),
674
+        'session_vars'	=> array('id'),
675 675
     ),
676
-    'nidebates'  => array (
676
+    'nidebates'  => array(
677 677
         'parent'		=> 'nidebatesfront',
678 678
         'url'			=> 'ni/',
679
-        'session_vars'	=> array ('id'),
679
+        'session_vars'	=> array('id'),
680 680
     ),
681
-    'nidebatesday' => array (
681
+    'nidebatesday' => array(
682 682
         'parent'		=> 'nidebatesfront',
683
-        'session_vars'	=> array ('d'),
683
+        'session_vars'	=> array('d'),
684 684
         'url'			=> 'ni/',
685 685
     ),
686
-    'nidebatesfront' => array (
687
-        'menu'			=> array (
686
+    'nidebatesfront' => array(
687
+        'menu'			=> array(
688 688
             'text'			=> 'Debates',
689 689
             'title'			=> "Northern Ireland Assembly debates"
690 690
         ),
@@ -693,7 +693,7 @@  discard block
 block discarded – undo
693 693
         'rss'			=> 'rss/ni.rss',
694 694
         'url'			=> 'ni/'
695 695
     ),
696
-    'nidebatesyear' => array (
696
+    'nidebatesyear' => array(
697 697
         'parent'		=> 'nidebatesfront',
698 698
         'url'			=> 'ni/'
699 699
     ),
@@ -701,7 +701,7 @@  discard block
 block discarded – undo
701 701
     /* London Assembly */
702 702
 
703 703
     'london_home' => array(
704
-        'menu'          => array (
704
+        'menu'          => array(
705 705
             'text'      => 'London Assembly',
706 706
             'title'     => 'Members of the London Assembly, answers from the Mayor of London'
707 707
         ),
@@ -709,9 +709,9 @@  discard block
 block discarded – undo
709 709
         'url'           => 'london/'
710 710
     ),
711 711
 
712
-    'london-assembly-members' => array (
712
+    'london-assembly-members' => array(
713 713
         'parent'        => 'london_home',
714
-        'menu'          => array (
714
+        'menu'          => array(
715 715
             'text'      => 'London Assembly Members',
716 716
             'title'     => "List of Members of the London Assembly)"
717 717
         ),
@@ -719,48 +719,48 @@  discard block
 block discarded – undo
719 719
         'url'           => 'london-assembly-members/'
720 720
     ),
721 721
 
722
-    'london-assembly-member' => array (
722
+    'london-assembly-member' => array(
723 723
         'parent'        => 'london-assembly-members',
724 724
         'title'         => 'Find your London Assembly Member',
725 725
         'url'           => 'london-assembly-member/'
726 726
     ),
727 727
 
728
-    'lmqs' => array (
728
+    'lmqs' => array(
729 729
         'parent'		=> 'london_home',
730 730
         'url'			=> 'london/',
731
-        'session_vars'	=> array ('id')
731
+        'session_vars'	=> array('id')
732 732
     ),
733
-    'lmqsday'  => array (
733
+    'lmqsday'  => array(
734 734
         'parent'		=> 'london_home',
735 735
         'url'			=> 'london/',
736 736
     ),
737
-    'lmqsfront' => array (
737
+    'lmqsfront' => array(
738 738
         'parent'		=> 'london_home',
739
-        'menu'			=> array (
739
+        'menu'			=> array(
740 740
             'text'			=> 'Questions to the Mayor of London',
741 741
             'title'			=> "Questions to the Mayor of London"
742 742
         ),
743 743
         'title'			=> 'questions to the Mayor of London',
744 744
         'url'			=> 'london/',
745 745
     ),
746
-    'lmqsyear' => array (
746
+    'lmqsyear' => array(
747 747
         'parent'		=> 'london_home',
748 748
         'url'			=> 'london/',
749 749
     ),
750 750
 
751
-    'otheruseredit' => array (
751
+    'otheruseredit' => array(
752 752
         'pg'			=> 'editother',
753 753
         'title'			=> "Editing a user's data",
754 754
         'url'			=> 'user/'
755 755
     ),
756
-    'privacy' => array (
756
+    'privacy' => array(
757 757
         'title'			=> gettext('Privacy Policy'),
758 758
         'url'			=> 'privacy/'
759 759
     ),
760 760
 
761 761
     /* Public bill committees */
762
-    'pbc_front' => array (
763
-        'menu'			=> array (
762
+    'pbc_front' => array(
763
+        'menu'			=> array(
764 764
             'text'			=> 'Bill Committees',
765 765
             'title'			=> "Public Bill Committees (formerly Standing Committees) debates"
766 766
         ),
@@ -778,17 +778,17 @@  discard block
 block discarded – undo
778 778
         'title' => '',
779 779
         'url' => 'pbc/',
780 780
         'parent' => 'pbc_front',
781
-        'session_vars'	=> array ('bill'),
781
+        'session_vars'	=> array('bill'),
782 782
     ),
783 783
     'pbc_clause' => array(
784 784
         'parent'		=> 'pbc_front',
785 785
         'url'			=> 'pbc/',
786
-        'session_vars'	=> array ('id'),
786
+        'session_vars'	=> array('id'),
787 787
     ),
788 788
     'pbc_speech' => array(
789 789
         'parent'		=> 'pbc_front',
790 790
         'url'			=> 'pbc/',
791
-        'session_vars'	=> array ('id'),
791
+        'session_vars'	=> array('id'),
792 792
     ),
793 793
 
794 794
     'people' => array(
@@ -800,57 +800,57 @@  discard block
 block discarded – undo
800 800
         'url'			=> '',
801 801
     ),
802 802
 
803
-    'raw' => array (
803
+    'raw' => array(
804 804
         'title'			=> 'Raw data',
805 805
         'url'			=> 'raw/'
806 806
     ),
807 807
 
808
-    'regmem' => array (
808
+    'regmem' => array(
809 809
         'title'			=> 'Changes to the Register of Members\' Interests',
810 810
         'url'			=> 'regmem/'
811 811
     ),
812 812
 
813
-    'regmem_date' => array (
813
+    'regmem_date' => array(
814 814
         'url'			=> 'regmem/',
815 815
         'parent'		=> 'regmem'
816 816
     ),
817 817
 
818
-    'regmem_mp' => array (
818
+    'regmem_mp' => array(
819 819
         'url'			=> 'regmem/',
820 820
         'parent'		=> 'regmem'
821 821
     ),
822 822
 
823
-    'regmem_diff' => array (
823
+    'regmem_diff' => array(
824 824
         'url'			=> 'regmem/',
825 825
         'parent'		=> 'regmem'
826 826
     ),
827 827
 
828
-    'royal' => array (
828
+    'royal' => array(
829 829
         'parent'        => 'hansard',
830 830
         'title'         => 'Royal',
831 831
         'url'           => 'royal/',
832 832
     ),
833 833
 
834
-    'topic' => array (
834
+    'topic' => array(
835 835
         'parent'        => 'topics',
836 836
         'url'           => 'topic/topic.php',
837 837
     ),
838 838
 
839
-    'topics' => array (
839
+    'topics' => array(
840 840
         'title'        => 'Topics',
841 841
         'url'          => 'topic/',
842 842
     ),
843 843
 
844
-    'search'		=> array (
844
+    'search'		=> array(
845 845
         'sidebar'		=> 'search',
846 846
         'url'			=> 'search/',
847 847
         'robots'		=> 'noindex, nofollow',
848 848
         'heading'		=> '',
849
-        'session_vars'	=> array ('q', 'o', 'pop')
849
+        'session_vars'	=> array('q', 'o', 'pop')
850 850
     ),
851 851
 
852
-    'sitenews'		=> array (
853
-        'menu'			=> array (
852
+    'sitenews'		=> array(
853
+        'menu'			=> array(
854 854
             'text'			=> 'TheyWorkForYou news',
855 855
             'title'			=> "News about changes to this website"
856 856
         ),
@@ -860,68 +860,68 @@  discard block
 block discarded – undo
860 860
         'title'			=> 'TheyWorkForYou news',
861 861
         'url'			=> 'news/'
862 862
     ),
863
-    'sitenews_archive'		=> array (
863
+    'sitenews_archive'		=> array(
864 864
         'parent'		=> 'sitenews',
865 865
         'rss'			=> 'news/index.rdf',
866 866
         'sidebar'		=> 'sitenews',
867 867
         'title'			=> 'Archive',
868 868
         'url'			=> 'news/archives/'
869 869
     ),
870
-    'sitenews_atom' 	=> array (
870
+    'sitenews_atom' 	=> array(
871 871
         'url'			=> 'news/atom.xml'
872 872
     ),
873
-    'sitenews_date'	=> array (
873
+    'sitenews_date'	=> array(
874 874
         'parent'		=> 'sitenews',
875 875
         'rss'			=> 'news/index.rdf',
876 876
         'sidebar'		=> 'sitenews'
877 877
     ),
878
-    'sitenews_individual'	=> array (
878
+    'sitenews_individual'	=> array(
879 879
         'parent'		=> 'sitenews',
880 880
         'rss'			=> 'news/index.rdf',
881 881
         'sidebar'		=> 'sitenews',
882 882
     ),
883
-    'sitenews_rss1' 	=> array (
883
+    'sitenews_rss1' 	=> array(
884 884
         'url'			=> 'news/index.rdf'
885 885
     ),
886
-    'sitenews_rss2' 	=> array (
886
+    'sitenews_rss2' 	=> array(
887 887
         'url'			=> 'news/index.xml'
888 888
     ),
889 889
 
890 890
     /* Scottish Parliament */
891 891
     'sp_home' => array(
892
-        'menu'			=> array (
892
+        'menu'			=> array(
893 893
             'text'			=> 'Scottish Parliament',
894 894
             'title'			=> 'Scottish education, health, agriculture, justice, prisons and other devolved areas. Some tax-varying powers'
895 895
         ),
896 896
         'title'			=> 'Scottish Parliament',
897 897
         'url'			=> 'scotland/'
898 898
     ),
899
-    'spoverview' => array (
899
+    'spoverview' => array(
900 900
         'parent'		=> 'sp_home',
901
-        'menu'			=> array (
901
+        'menu'			=> array(
902 902
             'text'			=> 'Overview',
903 903
             'title'			=> "Overview of the Scottish Parliament"
904 904
         ),
905 905
         'title'			=> '',
906 906
         'url'			=> 'scotland/'
907 907
     ),
908
-    'spdebate'  => array (
908
+    'spdebate'  => array(
909 909
         'parent'		=> 'spdebatesfront',
910 910
         'url'			=> 'sp/',
911
-        'session_vars'	=> array ('id'),
911
+        'session_vars'	=> array('id'),
912 912
     ),
913
-    'spdebates'  => array (
913
+    'spdebates'  => array(
914 914
         'parent'		=> 'spdebatesfront',
915 915
         'url'			=> 'sp/',
916
-        'session_vars'	=> array ('id'),
916
+        'session_vars'	=> array('id'),
917 917
     ),
918
-    'spdebatesday' => array (
918
+    'spdebatesday' => array(
919 919
         'parent'		=> 'spdebatesfront',
920
-        'session_vars'	=> array ('d'),
920
+        'session_vars'	=> array('d'),
921 921
         'url'			=> 'sp/',
922 922
     ),
923
-    'spdebatesfront' => array (
924
-        'menu'			=> array (
923
+    'spdebatesfront' => array(
924
+        'menu'			=> array(
925 925
             'text'			=> 'Debates',
926 926
             'title'			=> 'Debates in the Scottish Parliament'
927 927
         ),
@@ -930,21 +930,21 @@  discard block
 block discarded – undo
930 930
         'url'			=> 'sp/'
931 931
     ),
932 932
 
933
-    'spdebatesyear' => array (
933
+    'spdebatesyear' => array(
934 934
         'parent'		=> 'spdebatesfront',
935 935
         'url'			=> 'sp/'
936 936
     ),
937
-    'spwrans'  => array (
937
+    'spwrans'  => array(
938 938
         'parent'		=> 'spwransfront',
939 939
         'url'			=> 'spwrans/',
940 940
         #'session_vars'	=> array ('id'),
941 941
     ),
942
-    'spwransday'  => array (
942
+    'spwransday'  => array(
943 943
         'parent'		=> 'spwransfront',
944 944
         'url'			=> 'spwrans/'
945 945
     ),
946
-    'spwransfront'  => array (
947
-        'menu'			=> array (
946
+    'spwransfront'  => array(
947
+        'menu'			=> array(
948 948
             'text'			=> 'Written Answers',
949 949
             'title'			=> 'Written Answers and Statements'
950 950
         ),
@@ -957,31 +957,31 @@  discard block
 block discarded – undo
957 957
         'title'			=> 'For questions asked by ',
958 958
         'url'			=> 'spwrans/'
959 959
     ),
960
-    'spwransyear' => array (
960
+    'spwransyear' => array(
961 961
         'parent'		=> 'spwransfront',
962 962
         'url'			=> 'spwrans/'
963 963
     ),
964 964
 
965 965
     // Topic pages
966 966
 
967
-    'topic' => array (
967
+    'topic' => array(
968 968
         'url'           => 'topic/',
969 969
         'title'         => 'Topics'
970 970
     ),
971 971
 
972
-    'topicbenefits' => array (
972
+    'topicbenefits' => array(
973 973
         'url'           => 'topic/benefits',
974 974
         'parent'        => 'topic',
975 975
         'title'         => 'Benefits'
976 976
     ),
977 977
 
978
-    'topiccrimestats' => array (
978
+    'topiccrimestats' => array(
979 979
         'url'           => 'topic/crime-stats',
980 980
         'parent'        => 'topic',
981 981
         'title'         => 'Crime Statistics'
982 982
     ),
983 983
 
984
-    'topicnhs' => array (
984
+    'topicnhs' => array(
985 985
         'url'           => 'topic/nhs',
986 986
         'parent'        => 'topic',
987 987
         'title'         => 'NHS'
@@ -996,29 +996,29 @@  discard block
 block discarded – undo
996 996
         'url'			=> 'user/alerts/',
997 997
         'parent'		=> 'userviewself'
998 998
     ),
999
-    'userchangepc' => array (
999
+    'userchangepc' => array(
1000 1000
         'title'			=> 'Change your postcode',
1001 1001
         'url'			=> 'user/changepc/'
1002 1002
     ),
1003
-    'userconfirm' => array (
1003
+    'userconfirm' => array(
1004 1004
         'url'			=> 'user/confirm/'
1005 1005
     ),
1006
-    'userconfirmed' => array (
1006
+    'userconfirmed' => array(
1007 1007
         'sidebar'		=> 'userconfirmed',
1008 1008
         'title'			=> 'Welcome to TheyWorkForYou!',
1009 1009
         'url'			=> 'user/confirm/'
1010 1010
     ),
1011
-    'userconfirmfailed' => array (
1011
+    'userconfirmfailed' => array(
1012 1012
         'title'			=> 'Oops!',
1013 1013
         'url'			=> 'user/confirm/'
1014 1014
     ),
1015
-    'useredit' => array (
1015
+    'useredit' => array(
1016 1016
         'pg'			=> 'edit',
1017 1017
         'title'			=> 'Edit your details',
1018 1018
         'url'			=> 'user/'
1019 1019
     ),
1020
-    'userjoin' => array (
1021
-                'menu'                  => array (
1020
+    'userjoin' => array(
1021
+                'menu'                  => array(
1022 1022
                         'text'                  => gettext('Join'),
1023 1023
                         'title'                 => gettext("Joining is free and allows you to manage your email alerts")
1024 1024
                 ),
@@ -1027,8 +1027,8 @@  discard block
 block discarded – undo
1027 1027
                 'title'                 => gettext('Join TheyWorkForYou'),
1028 1028
                 'url'                   => 'user/'
1029 1029
         ),
1030
-    'userlogin' => array (
1031
-        'menu'			=> array (
1030
+    'userlogin' => array(
1031
+        'menu'			=> array(
1032 1032
             'text'			=> gettext('Sign in'),
1033 1033
             'title'			=> gettext("If you've already joined, sign in to your account")
1034 1034
         ),
@@ -1037,33 +1037,33 @@  discard block
 block discarded – undo
1037 1037
         'url'			=> 'user/login/'
1038 1038
     ),
1039 1039
 
1040
-    'userlogout' => array (
1041
-        'menu'			=> array (
1040
+    'userlogout' => array(
1041
+        'menu'			=> array(
1042 1042
             'text'			=> 'Sign out',
1043 1043
             'title'			=> "Sign out"
1044 1044
         ),
1045 1045
         'url'			=> 'user/logout/'
1046 1046
     ),
1047
-    'userpassword' => array (
1047
+    'userpassword' => array(
1048 1048
         'title'			=> 'Change password',
1049 1049
         'url'			=> 'user/password/'
1050 1050
     ),
1051
-    'userprompt' => array (
1051
+    'userprompt' => array(
1052 1052
         'title'			=> 'Please sign in',
1053 1053
         'url'			=> 'user/prompt/'
1054 1054
     ),
1055
-    'userview' => array (
1055
+    'userview' => array(
1056 1056
         'session_vars'	=> array('u'),
1057 1057
         'url'			=> 'user/'
1058 1058
     ),
1059
-    'userviewself' => array (
1060
-        'menu'			=> array (
1059
+    'userviewself' => array(
1060
+        'menu'			=> array(
1061 1061
             'text'			=> 'Your details',
1062 1062
             'title'			=> "View and edit your details"
1063 1063
         ),
1064 1064
         'url'			=> 'user/'
1065 1065
     ),
1066
-    'userwelcome' => array (
1066
+    'userwelcome' => array(
1067 1067
         'title'			=> 'Welcome!',
1068 1068
         'url'			=> 'user/'
1069 1069
     ),
@@ -1077,31 +1077,31 @@  discard block
 block discarded – undo
1077 1077
         'title' => 'Senedd Cymru / Welsh Parliament',
1078 1078
         'url' => 'senedd/'
1079 1079
     ),
1080
-    'mss' => array (
1080
+    'mss' => array(
1081 1081
         'parent' => 'wales_home',
1082
-        'menu' => array (
1082
+        'menu' => array(
1083 1083
             'text' => gettext('MSs'),
1084 1084
             'title' => gettext("List of Members of the Senedd (MSs)")
1085 1085
         ),
1086 1086
         'title' => '',
1087 1087
         'url' => 'mss/'
1088 1088
     ),
1089
-    'wales_debates' => array (
1089
+    'wales_debates' => array(
1090 1090
         'parent' => 'wales_home',
1091
-        'menu' => array (
1091
+        'menu' => array(
1092 1092
             'text' => gettext('Debates'),
1093 1093
             'title' => gettext("Debates in the Senedd")
1094 1094
         ),
1095 1095
         'title' => '',
1096 1096
         'url' => 'senedd/?more=1'
1097 1097
     ),
1098
-    'ms' => array (
1098
+    'ms' => array(
1099 1099
         'parent' => 'mss',
1100 1100
         'title' => gettext('Find your MS'),
1101 1101
         'url' => 'ms/'
1102 1102
     ),
1103
-    'yourms' => array (
1104
-        'menu'			=> array (
1103
+    'yourms' => array(
1104
+        'menu'			=> array(
1105 1105
             'text'		=> gettext('Your MSs'),
1106 1106
             'title'		=> gettext("Find out about your Members of the Senedd")
1107 1107
         ),
@@ -1111,9 +1111,9 @@  discard block
 block discarded – undo
1111 1111
         'url'			=> 'ms/'
1112 1112
     ),
1113 1113
 
1114
-    'seneddoverview' => array (
1114
+    'seneddoverview' => array(
1115 1115
         'parent' => 'wales_home',
1116
-        'menu' => array (
1116
+        'menu' => array(
1117 1117
             'text' => gettext('Overview'),
1118 1118
             'title' => gettext("Overview of the Senedd debates")
1119 1119
         ),
@@ -1121,23 +1121,23 @@  discard block
 block discarded – undo
1121 1121
         'rss' => 'rss/senedd.rss',
1122 1122
         'url' => 'senedd/'
1123 1123
     ),
1124
-    'senedddebate'  => array (
1124
+    'senedddebate'  => array(
1125 1125
         'parent' => 'senedddebatesfront',
1126 1126
         'url' => 'senedd/',
1127
-        'session_vars' => array ('id'),
1127
+        'session_vars' => array('id'),
1128 1128
     ),
1129
-    'senedddebates'  => array (
1129
+    'senedddebates'  => array(
1130 1130
         'parent' => 'senedddebatesfront',
1131 1131
         'url' => 'senedd/',
1132
-        'session_vars' => array ('id'),
1132
+        'session_vars' => array('id'),
1133 1133
     ),
1134
-    'senedddebatesday' => array (
1134
+    'senedddebatesday' => array(
1135 1135
         'parent' => 'senedddebatesfront',
1136
-        'session_vars' => array ('d'),
1136
+        'session_vars' => array('d'),
1137 1137
         'url' => 'senedd/',
1138 1138
     ),
1139
-    'senedddebatesfront' => array (
1140
-        'menu' => array (
1139
+    'senedddebatesfront' => array(
1140
+        'menu' => array(
1141 1141
             'text' => 'Debates',
1142 1142
             'title' => gettext("Senedd debates")
1143 1143
         ),
@@ -1146,29 +1146,29 @@  discard block
 block discarded – undo
1146 1146
         'rss' => 'rss/senedd.rss',
1147 1147
         'url' => 'senedd/'
1148 1148
     ),
1149
-    'senedddebatesyear' => array (
1149
+    'senedddebatesyear' => array(
1150 1150
         'parent' => 'senedddebatesfront',
1151 1151
         'url' => 'senedd/'
1152 1152
     ),
1153 1153
 
1154 1154
     /* Westminster Hall */
1155
-    'whall'  => array (
1155
+    'whall'  => array(
1156 1156
         'parent'		=> 'whallfront',
1157 1157
         'url'			=> 'whall/',
1158
-        'session_vars'	=> array ('id'),
1158
+        'session_vars'	=> array('id'),
1159 1159
     ),
1160
-    'whalls'  => array (
1160
+    'whalls'  => array(
1161 1161
         'parent'		=> 'whallfront',
1162 1162
         'url'			=> 'whall/',
1163
-        'session_vars'	=> array ('id'),
1163
+        'session_vars'	=> array('id'),
1164 1164
     ),
1165
-    'whallday' => array (
1165
+    'whallday' => array(
1166 1166
         'parent'		=> 'whallfront',
1167
-        'session_vars'	=> array ('d'),
1167
+        'session_vars'	=> array('d'),
1168 1168
         'url'			=> 'whall/',
1169 1169
     ),
1170
-    'whallfront' => array (
1171
-        'menu'			=> array (
1170
+    'whallfront' => array(
1171
+        'menu'			=> array(
1172 1172
             'text'			=> 'Westminster Hall',
1173 1173
             'title'			=> "Westminster Hall debates"
1174 1174
         ),
@@ -1177,23 +1177,23 @@  discard block
 block discarded – undo
1177 1177
         'rss'			=> 'rss/whall.rss',
1178 1178
         'url'			=> 'whall/'
1179 1179
     ),
1180
-    'whallyear' => array (
1180
+    'whallyear' => array(
1181 1181
         'parent'		=> 'whallfront',
1182 1182
         'url'			=> 'whall/'
1183 1183
     ),
1184 1184
 
1185
-    'wms' => array (
1185
+    'wms' => array(
1186 1186
         'parent'		=> 'wranswmsfront',
1187 1187
         'url'			=> 'wms/',
1188 1188
         'session_vars'	=> array('id')
1189 1189
     ),
1190
-    'wmsday' => array (
1190
+    'wmsday' => array(
1191 1191
         'parent'		=> 'wmsfront',
1192 1192
         'session_vars'	=> array('d'),
1193 1193
         'url'			=> 'wms/'
1194 1194
     ),
1195
-    'wmsfront' => array (
1196
-        'menu'			=> array (
1195
+    'wmsfront' => array(
1196
+        'menu'			=> array(
1197 1197
             'text'			=> 'Written Ministerial Statements',
1198 1198
             'title'			=> ''
1199 1199
         ),
@@ -1202,22 +1202,22 @@  discard block
 block discarded – undo
1202 1202
         'rss'			=> 'rss/wms.rss',
1203 1203
         'url'			=> 'wms/'
1204 1204
     ),
1205
-    'wmsyear' => array (
1205
+    'wmsyear' => array(
1206 1206
         'parent'		=> 'wmsfront',
1207 1207
         'url'			=> 'wms/'
1208 1208
     ),
1209 1209
 
1210
-    'wrans'  => array (
1210
+    'wrans'  => array(
1211 1211
         'parent'		=> 'wranswmsfront',
1212 1212
         'url'			=> 'wrans/',
1213
-        'session_vars'	=> array ('id')
1213
+        'session_vars'	=> array('id')
1214 1214
     ),
1215
-    'wransday'  => array (
1215
+    'wransday'  => array(
1216 1216
         'parent'		=> 'wransfront',
1217 1217
         'url'			=> 'wrans/'
1218 1218
     ),
1219
-    'wransfront'  => array (
1220
-        'menu'			=> array (
1219
+    'wransfront'  => array(
1220
+        'menu'			=> array(
1221 1221
             'text'			=> 'Written Answers',
1222 1222
             'title'			=> "Written Answers"
1223 1223
         ),
@@ -1230,13 +1230,13 @@  discard block
 block discarded – undo
1230 1230
         'title'			=> 'For questions asked by ',
1231 1231
         'url'			=> 'wrans/'
1232 1232
     ),
1233
-    'wransyear' => array (
1233
+    'wransyear' => array(
1234 1234
         'parent'		=> 'wransfront',
1235 1235
         'url'			=> 'wrans/'
1236 1236
     ),
1237 1237
 
1238
-    'wranswmsfront'  => array (
1239
-        'menu'			=> array (
1238
+    'wranswmsfront'  => array(
1239
+        'menu'			=> array(
1240 1240
             'text'			=> 'Written Answers',
1241 1241
             'title'			=> 'Written Answers and Statements',
1242 1242
         ),
@@ -1253,8 +1253,8 @@  discard block
 block discarded – undo
1253 1253
         'title' => 'Your representative',
1254 1254
         'url' => 'your/',
1255 1255
     ),
1256
-    'yourmp' => array (
1257
-        'menu'			=> array (
1256
+    'yourmp' => array(
1257
+        'menu'			=> array(
1258 1258
             'text'			=> gettext('Your MP'),
1259 1259
             'title'			=> gettext("Find out about your Member of Parliament")
1260 1260
         ),
@@ -1263,8 +1263,8 @@  discard block
 block discarded – undo
1263 1263
         'url'			=> 'mp/',
1264 1264
         'parent'			=> 'mps',
1265 1265
     ),
1266
-    'yourmp_recent' => array (
1267
-        'menu'			=> array (
1266
+    'yourmp_recent' => array(
1267
+        'menu'			=> array(
1268 1268
             'text'			=> 'Recent appearances',
1269 1269
             'title'			=> "Recent speeches and written answers by this MP"
1270 1270
         ),
@@ -1272,8 +1272,8 @@  discard block
 block discarded – undo
1272 1272
         'title'			=> "Your MP's recent appearances in parliament",
1273 1273
         'url'			=> 'mp/?recent=1'
1274 1274
     ),
1275
-    'yourmsp' => array (
1276
-        'menu'			=> array (
1275
+    'yourmsp' => array(
1276
+        'menu'			=> array(
1277 1277
             'text'			=> 'Your MSPs',
1278 1278
             'title'			=> "Find out about your Members of the Scottish Parliament"
1279 1279
         ),
@@ -1282,8 +1282,8 @@  discard block
 block discarded – undo
1282 1282
         'title'			=> 'Your MSPs',
1283 1283
         'url'			=> 'msp/'
1284 1284
     ),
1285
-    'yourmla' => array (
1286
-        'menu'			=> array (
1285
+    'yourmla' => array(
1286
+        'menu'			=> array(
1287 1287
             'text'			=> 'Your MLAs',
1288 1288
             'title'			=> "Find out about your Members of the Legislative Assembly"
1289 1289
         ),
@@ -1299,38 +1299,38 @@  discard block
 block discarded – undo
1299 1299
 // The text displayed on the page itself will also be this,
1300 1300
 // UNLESS the section has a 'heading', in which case that's used instead.
1301 1301
 
1302
-$section = array (
1302
+$section = array(
1303 1303
 
1304 1304
 
1305
-    'about' => array (
1305
+    'about' => array(
1306 1306
         'title' 	=> 'About Us'
1307 1307
     ),
1308
-    'admin' => array (
1308
+    'admin' => array(
1309 1309
         'title'		=> 'Admin'
1310 1310
     ),
1311
-    'debates' => array (
1311
+    'debates' => array(
1312 1312
         'title' 	=> 'Debates',
1313 1313
         'heading'	=> 'House of Commons Debates'
1314 1314
     ),
1315
-    'help_us_out' => array (
1315
+    'help_us_out' => array(
1316 1316
         'title' 	=> 'Help Us Out'
1317 1317
     ),
1318
-    'hansard' => array (
1318
+    'hansard' => array(
1319 1319
         'title' 	=> 'Hansard'
1320 1320
     ),
1321
-    'home' => array (
1321
+    'home' => array(
1322 1322
         'title' 	=> 'Home'
1323 1323
     ),
1324
-    'mp' => array (
1324
+    'mp' => array(
1325 1325
         'title' 	=> 'Your MP'
1326 1326
     ),
1327
-    'search' => array (
1327
+    'search' => array(
1328 1328
         'title' 	=> 'Search'
1329 1329
     ),
1330
-    'sitenews' => array (
1330
+    'sitenews' => array(
1331 1331
         'title' 	=> 'TheyWorkForYou news'
1332 1332
     ),
1333
-    'wrans' => array (
1333
+    'wrans' => array(
1334 1334
         'title' 	=> 'Written Answers'
1335 1335
     )
1336 1336
 
Please login to merge, or discard this patch.
www/includes/easyparliament/templates/html/donate/_stripe_donate.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@
 block discarded – undo
83 83
               id="how-much-<?=$payment_type?>-<?=$amount?>"
84 84
               name="how-much"
85 85
               value="<?=$amount?>"
86
-              required <?= (($how_much == $amount) and ($payment_type == $initial_payment_type) ) ? ' checked': '' ?> />
86
+              required <?= (($how_much == $amount) and ($payment_type == $initial_payment_type)) ? ' checked' : '' ?> />
87 87
             <span class="radio-label-large"><?=$label?></span>
88 88
         </label>
89 89
       <?php } ?>
Please login to merge, or discard this patch.
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -4,27 +4,27 @@  discard block
 block discarded – undo
4 4
 # note - new annual and monthly payments need to be defined as new prices in stripe
5 5
 # e.g. 'donate_monthly_10'. 
6 6
 $payment_amounts = array(
7
-  'monthly' => array(
7
+    'monthly' => array(
8 8
     '2' => '£2',
9 9
     '5' => '£5',
10 10
     '10' => '£10',
11
-  ),
12
-  'annually' => array(
11
+    ),
12
+    'annually' => array(
13 13
     '10' => '£10',
14 14
     '50' => '£50',
15 15
     '100' => '£100',
16
-  ),
17
-  'one-off' => array(
16
+    ),
17
+    'one-off' => array(
18 18
     '10' => '£10',
19 19
     '25' => '£25',
20 20
     '50' => '£50',
21
-  ),
21
+    ),
22 22
 );
23 23
 
24 24
 $default_amounts = array(
25
-  'monthly' => '5',
26
-  'annually' => '10',
27
-  'one-off' => '25',
25
+    'monthly' => '5',
26
+    'annually' => '10',
27
+    'one-off' => '25',
28 28
 );
29 29
 
30 30
 $default_type = 'annually';
@@ -37,10 +37,10 @@  discard block
 block discarded – undo
37 37
 
38 38
 # if how-much is not in the allowed values for the current payment type, set to 'other', and set $other_how_much to the value of how-much
39 39
 if (!array_key_exists($how_much, $payment_amounts[$initial_payment_type])) {
40
-  $how_much = 'other';
41
-  $other_how_much = $_GET['how-much'];
40
+    $how_much = 'other';
41
+    $other_how_much = $_GET['how-much'];
42 42
 } else {
43
-  $other_how_much = '';
43
+    $other_how_much = '';
44 44
 }
45 45
 
46 46
 ?>
Please login to merge, or discard this patch.
classes/Renderer/Markdown.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 
20 20
 class Markdown
21 21
 {
22
-    public function markdown_document($this_page, $show_menu = true){
22
+    public function markdown_document($this_page, $show_menu = true) {
23 23
         // This function takes a markdown file and converts it to HTML
24 24
     
25 25
         $markdown_file = '../../../markdown/' . $this_page . '.md';
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
             $level = $matches[1];
38 38
             $htitle = $matches[2];
39 39
             $slug = slugify($htitle);
40
-            if ($level == 1){
40
+            if ($level == 1) {
41 41
                 $title_class = "js-toc-title";
42 42
             } else {
43 43
                 $title_class = "js-toc-item";
Please login to merge, or discard this patch.