Completed
Pull Request — master (#1322)
by Nick
11:36 queued 06:31
created
www/includes/easyparliament/metadata.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -530,7 +530,7 @@  discard block
 block discarded – undo
530 530
         'url'			=> 'peer/'
531 531
     ),
532 532
     'peers' => array (
533
-         'menu'			=> array (
533
+            'menu'			=> array (
534 534
             'text'			=> 'Lords',
535 535
             'title'			=> "List of all Lords"
536 536
         ),
@@ -539,7 +539,7 @@  discard block
 block discarded – undo
539 539
         'url'			=> 'peers/'
540 540
     ),
541 541
 'overview' => array (
542
-     'menu'			=> array (
542
+        'menu'			=> array (
543 543
         'text'			=> 'Overview',
544 544
         'title'			=> "Overview of the UK Parliament"
545 545
     ),
@@ -591,7 +591,7 @@  discard block
 block discarded – undo
591 591
         'url'			=> 'rss/mp/'
592 592
     ),
593 593
     'mps' => array (
594
-         'menu'			=> array (
594
+            'menu'			=> array (
595 595
             'text'			=> 'MPs',
596 596
             'title'			=> "List of all Members of Parliament (MPs)"
597 597
         ),
Please login to merge, or discard this patch.
Spacing   +235 added lines, -235 removed lines patch added patch discarded remove patch
@@ -65,10 +65,10 @@  discard block
 block discarded – undo
65 65
 
66 66
 */
67 67
 
68
-$this->page = array (
68
+$this->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,117 +78,117 @@  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'			=> '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_trackbacks' => array (
156
+    'admin_trackbacks' => array(
157 157
         'title'			=> 'Recent trackbacks',
158 158
         'parent'		=> 'admin',
159 159
         'url'			=> 'admin/trackbacks.php'
160 160
     ),
161
-    'admin_photos' => array (
161
+    'admin_photos' => array(
162 162
         'title'			=> 'Photo upload/attribution',
163 163
         'parent'		=> 'admin',
164 164
         'url'			=> 'admin/photos.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 Banner',
178 178
         'parent'		=> 'admin',
179 179
         'url'			=> 'admin/banner.php',
180 180
     ),
181
-    'admin_featured' => array (
181
+    'admin_featured' => array(
182 182
         'title'			=> 'Featured debates',
183 183
         'parent'		=> 'admin',
184 184
         'url'			=> 'admin/featured.php',
185 185
     ),
186
-    'admin_topics' => array (
186
+    'admin_topics' => array(
187 187
         'title'			=> 'Topics',
188 188
         'parent'		=> 'admin',
189 189
         'url'			=> 'admin/topics.php',
190 190
     ),
191
-    'admin_edittopics' => array (
191
+    'admin_edittopics' => array(
192 192
         'title'			=> 'Edit Topic',
193 193
         'parent'		=> 'admin_topics',
194 194
         'url'			=> 'admin/edittopic.php',
@@ -196,8 +196,8 @@  discard block
 block discarded – undo
196 196
 
197 197
 // Added by Richard Allan for email alert functions
198 198
 
199
-    'alert' => array (
200
-        'menu'			=> array (
199
+    'alert' => array(
200
+        'menu'			=> array(
201 201
             'text'			=> 'Email Alerts',
202 202
             'title'			=> "Set up alerts for updates on an MP or Peer by email",
203 203
             'sidebar'		=> 'alert'
@@ -206,30 +206,30 @@  discard block
 block discarded – undo
206 206
         'title'			=> 'TheyWorkForYou Email Alerts',
207 207
         'url'			=> 'alert/',
208 208
     ),
209
-    'alertwelcome' => array (
209
+    'alertwelcome' => array(
210 210
         'title'			=> 'Email Alerts',
211 211
         'url'			=> 'alert/',
212 212
     ),
213 213
 
214 214
 // End of ALERTS additions
215 215
 
216
-    'api_front'		=> array (
217
-        'menu'			=> array (
216
+    'api_front'		=> array(
217
+        'menu'			=> array(
218 218
             'text'			=> 'API',
219 219
             'title'			=> 'Access our data'
220 220
         ),
221 221
         'title'			=> 'TheyWorkForYou API',
222 222
         'url'			=> 'api/'
223 223
     ),
224
-    'api_doc_front'		=> array (
225
-        'menu'			=> array (
224
+    'api_doc_front'		=> array(
225
+        'menu'			=> array(
226 226
             'text'			=> 'API',
227 227
             'title'			=> 'Access our data'
228 228
         ),
229 229
         'parent'		=> 'api_front',
230 230
         'url'			=> 'api/'
231 231
     ),
232
-    'api_key'		=> array (
232
+    'api_key'		=> array(
233 233
         'title'			=> 'API Keys',
234 234
         'parent'		=> 'api_front',
235 235
         'url'			=> 'api/key'
@@ -240,69 +240,69 @@  discard block
 block discarded – undo
240 240
         'url' => 'boundaries/',
241 241
     ),
242 242
 
243
-    'calendar_summary' => array (
244
-        'menu'			=> array (
243
+    'calendar_summary' => array(
244
+        'menu'			=> array(
245 245
             'text'			=> 'Upcoming',
246 246
             'title'			=> '',
247 247
         ),
248 248
         'parent'		=> 'hansard',
249 249
         'url'			=> 'calendar/'
250 250
     ),
251
-    'calendar_future_head' => array (
251
+    'calendar_future_head' => array(
252 252
         'parent'		=> 'calendar_summary',
253 253
         'title'			=> 'Upcoming business',
254 254
         'url'			=> 'calendar/'
255 255
     ),
256
-    'calendar_future' => array (
256
+    'calendar_future' => array(
257 257
         'parent'		=> 'calendar_future_head',
258 258
         'url'			=> 'calendar/'
259 259
     ),
260
-    'calendar_today_head' => array (
260
+    'calendar_today_head' => array(
261 261
         'parent'		=> 'calendar_summary',
262 262
         'title'			=> 'Today’s business',
263 263
         'url'			=> 'calendar/'
264 264
     ),
265
-    'calendar_today' => array (
265
+    'calendar_today' => array(
266 266
         'parent'		=> 'calendar_today_head',
267 267
         'url'			=> 'calendar/'
268 268
     ),
269
-    'calendar_past_head' => array (
269
+    'calendar_past_head' => array(
270 270
         'parent'		=> 'calendar_summary',
271 271
         'title'			=> 'Previous business',
272 272
         'url'			=> 'calendar/'
273 273
     ),
274
-    'calendar_past' => array (
274
+    'calendar_past' => array(
275 275
         'parent'		=> 'calendar_past_head',
276 276
         'url'			=> 'calendar/'
277 277
     ),
278 278
 
279
-    'cards' => array (
279
+    'cards' => array(
280 280
         'title'			=> 'MP Stats Cards',
281 281
         'url'			=> 'cards/'
282 282
     ),
283 283
 
284
-    'campaign_foi' => array (
284
+    'campaign_foi' => array(
285 285
         'title'			=> 'Freedom of Information (Parliament) Order 2009',
286 286
         'url'			=> 'foiorder2009/'
287 287
     ),
288
-    'campaign' => array (
288
+    'campaign' => array(
289 289
         'title'			=> '', #Free Our Bills!',
290 290
         'url'			=> 'freeourbills/'
291 291
     ),
292
-    'campaign_edm' => array (
292
+    'campaign_edm' => array(
293 293
         'title'			=> 'Early Day Motion',
294 294
         'parent'		=> 'campaign',
295 295
         'url'			=> 'freeourbills/'
296 296
     ),
297 297
 
298
-    'commentreport' => array (
298
+    'commentreport' => array(
299 299
         'title'			=> 'Reporting a comment',
300 300
         'url'			=> 'report/',
301
-        'session_vars'	=> array ('id')
301
+        'session_vars'	=> array('id')
302 302
     ),
303 303
 
304
-    'comments_recent' => array (
305
-        'menu'			=> array (
304
+    'comments_recent' => array(
305
+        'menu'			=> array(
306 306
             'text'			=> 'Recent comments',
307 307
             'title'			=> "Recently posted comments"
308 308
         ),
@@ -311,8 +311,8 @@  discard block
 block discarded – undo
311 311
         'url'			=> 'comments/recent/'
312 312
     ),
313 313
 
314
-    'contact' => array (
315
-        'menu'			=> array (
314
+    'contact' => array(
315
+        'menu'			=> array(
316 316
             'text'			=> 'Contact',
317 317
             'title'			=> '',
318 318
         ),
@@ -323,23 +323,23 @@  discard block
 block discarded – undo
323 323
         'title' => 'News',
324 324
         'url' => 'https://www.mysociety.org/category/projects/theyworkforyou/'
325 325
     ),
326
-    'debate'  => array (
326
+    'debate'  => array(
327 327
         'parent'		=> 'debatesfront',
328 328
         'url'			=> 'debates/',
329
-        'session_vars'	=> array ('id'),
329
+        'session_vars'	=> array('id'),
330 330
     ),
331
-    'debates'  => array (
331
+    'debates'  => array(
332 332
         'parent'		=> 'debatesfront',
333 333
         'url'			=> 'debates/',
334
-        'session_vars'	=> array ('id'),
334
+        'session_vars'	=> array('id'),
335 335
     ),
336
-    'debatesday' => array (
336
+    'debatesday' => array(
337 337
         'parent'		=> 'debatesfront',
338
-        'session_vars'	=> array ('d'),
338
+        'session_vars'	=> array('d'),
339 339
         'url'			=> 'debates/',
340 340
     ),
341
-    'alldebatesfront' => array (
342
-        'menu'			=> array (
341
+    'alldebatesfront' => array(
342
+        'menu'			=> array(
343 343
             'text'			=> 'Debates',
344 344
             'title'			=> "Debates in the House of Commons, Westminster Hall, and the House of Lords"
345 345
         ),
@@ -348,8 +348,8 @@  discard block
 block discarded – undo
348 348
         'rss'			=> 'rss/debates.rss',
349 349
         'url'			=> 'debates/'
350 350
     ),
351
-    'debatesfront' => array (
352
-        'menu'			=> array (
351
+    'debatesfront' => array(
352
+        'menu'			=> array(
353 353
             'text'			=> 'Commons debates',
354 354
             'title'			=> "Debates in the House of Commons"
355 355
         ),
@@ -358,12 +358,12 @@  discard block
 block discarded – undo
358 358
         'rss'			=> 'rss/debates.rss',
359 359
         'url'			=> 'debates/'
360 360
     ),
361
-    'debatesyear' => array (
361
+    'debatesyear' => array(
362 362
         'parent'		=> 'debatesfront',
363 363
         'url'			=> 'debates/'
364 364
     ),
365
-    'divisions_recent' => array (
366
-        'menu'			=> array (
365
+    'divisions_recent' => array(
366
+        'menu'			=> array(
367 367
             'text'			=> 'Recent Votes',
368 368
             'title'			=> ''
369 369
         ),
@@ -371,12 +371,12 @@  discard block
 block discarded – undo
371 371
         'title'			=> 'Recent Votes',
372 372
         'url'			=> 'divisions/'
373 373
     ),
374
-    'divisions_vote' => array (
374
+    'divisions_vote' => array(
375 375
         'parent'		=> 'divisions_recent',
376 376
         'title'			=> 'Vote',
377 377
         'url'			=> 'divisions/division.php'
378 378
     ),
379
-    'epvote' => array (
379
+    'epvote' => array(
380 380
         'url'			=> 'vote/'
381 381
     ),
382 382
 
@@ -385,19 +385,19 @@  discard block
 block discarded – undo
385 385
         'title'			=> 'TheyWorkForYou Google gadget',
386 386
     ),
387 387
 
388
-    'glossary' => array (
388
+    'glossary' => array(
389 389
         'heading'		=> 'Glossary',
390 390
         'parent'		=> 'help_us_out',
391 391
         'url'			=> 'glossary/'
392 392
     ),
393
-    'glossary_item' => array (
393
+    'glossary_item' => array(
394 394
         'heading'		=> 'Glossary heading',
395 395
         'parent'		=> 'help_us_out',
396 396
         'url'			=> 'glossary/',
397
-        'session_vars'	=> array ('g')
397
+        'session_vars'	=> array('g')
398 398
     ),
399
-    'hansard' => array (
400
-        'menu'			=> array (
399
+    'hansard' => array(
400
+        'menu'			=> array(
401 401
             'text'			=> 'UK Parliament',
402 402
             'title'			=> "Houses of Parliament debates, Written Answers, Statements, Westminster Hall debates, and Bill Committees"
403 403
         ),
@@ -405,16 +405,16 @@  discard block
 block discarded – undo
405 405
         'url'			=> ''
406 406
     ),
407 407
         // Hansard landing page
408
-        'hansard_landing' => array (
408
+        'hansard_landing' => array(
409 409
                 'title'                 => 'Hansard',
410 410
                 'url'                   => 'search-hansard/',
411 411
         ),
412
-    'help' => array (
412
+    'help' => array(
413 413
         'title'			=> 'Help - Frequently Asked Questions',
414 414
         'url'			=> 'help/'
415 415
     ),
416
-    'help_us_out' => array (
417
-        'menu'			=> array (
416
+    'help_us_out' => array(
417
+        'menu'			=> array(
418 418
             'text'			=> 'Glossary',
419 419
             'title'			=> "Parliament's jargon explained"
420 420
         ),
@@ -423,88 +423,88 @@  discard block
 block discarded – undo
423 423
         'url'			=> 'addterm/',
424 424
         'sidebar'		=> 'glossary_add'
425 425
     ),
426
-    'home' => array (
426
+    'home' => array(
427 427
         'title'			=> "UK Parliament",
428 428
         'rss'			=> 'news/index.rdf',
429 429
         'url'			=> ''
430 430
     ),
431
-    'houserules' => array (
431
+    'houserules' => array(
432 432
         'title'			=> 'House rules',
433 433
         'url'			=> 'houserules/'
434 434
     ),
435 435
 
436
-    'linktous' => array (
436
+    'linktous' => array(
437 437
         'title'			=> 'Link to us',
438 438
         'heading'		=> 'How to link to us',
439 439
         'url'			=> 'help/linktous/'
440 440
     ),
441
-    'api' => array (
441
+    'api' => array(
442 442
         'title'			=> 'API',
443 443
         'heading'		=> 'API - Query the TheyWorkForYou database',
444 444
         'url'			=> 'api/'
445 445
     ),
446
-    'data' => array (
446
+    'data' => array(
447 447
         'title'			=> 'Raw Data',
448 448
         'heading'		=> 'Raw data (XML) - the data behind TheyWorkForYou and Public Whip',
449 449
         'url'			=> 'http://parser.theyworkforyou.com'
450 450
     ),
451
-    'pombola' => array (
451
+    'pombola' => array(
452 452
         'title'			=> 'Pombola',
453 453
         'heading'		=> 'mySociety\'s platform for running a Parliamentary monitoring site like this',
454 454
         'url'			=> 'https://www.mysociety.org/projects/parliamentarymonitoring/pombola'
455 455
     ),
456
-    'devmailinglist' => array (
456
+    'devmailinglist' => array(
457 457
         'title'			=> 'Developer mailing list',
458 458
         'heading'		=> 'Developer mailing list',
459 459
         'url'			=> 'https://groups.google.com/a/mysociety.org/forum/#!forum/theyworkforyou'
460 460
     ),
461
-    'code' => array (
461
+    'code' => array(
462 462
         'title'			=> 'Source code',
463 463
         'heading'		=> 'TheyWorkForYou Source code',
464 464
         'url'			=> 'https://github.com/mysociety/theyworkforyou'
465 465
     ),
466
-    'irc' => array (
466
+    'irc' => array(
467 467
         'title'			=> 'IRC chat channel',
468 468
         'heading'		=> 'IRC chat channel',
469 469
         'url'			=> 'http://www.irc.mysociety.org/'
470 470
     ),
471
-    'newzealand' => array (
471
+    'newzealand' => array(
472 472
         'title'			=> 'New Zealand',
473 473
         'heading'		=> 'They Work For You - New Zealand',
474 474
         'url'			=> 'http://www.theyworkforyou.co.nz/'
475 475
     ),
476
-    'australia' => array (
476
+    'australia' => array(
477 477
         'title'			=> 'Australia',
478 478
         'heading'		=> 'Open Australia',
479 479
         'url'			=> 'http://www.openaustralia.org/'
480 480
     ),
481
-    'ireland' => array (
481
+    'ireland' => array(
482 482
         'title'			=> 'Ireland',
483 483
         'heading'		=> 'TheyWorkForYou for the Houses of the Oireachtas',
484 484
         'url'			=> 'http://www.kildarestreet.com/'
485 485
     ),
486
-    'mzalendo' => array (
486
+    'mzalendo' => array(
487 487
         'title'			=> 'Mzalendo',
488 488
         'heading'		=> 'Keeping an eye on the Kenyan Parliament',
489 489
         'url'			=> 'http://info.mzalendo.com/'
490 490
     ),
491
-    'lordsdebate'  => array (
491
+    'lordsdebate'  => array(
492 492
         'parent'		=> 'lordsdebatesfront',
493 493
         'url'			=> 'lords/',
494
-        'session_vars'	=> array ('id'),
494
+        'session_vars'	=> array('id'),
495 495
     ),
496
-    'lordsdebates'  => array (
496
+    'lordsdebates'  => array(
497 497
         'parent'		=> 'lordsdebatesfront',
498 498
         'url'			=> 'lords/',
499
-        'session_vars'	=> array ('id'),
499
+        'session_vars'	=> array('id'),
500 500
     ),
501
-    'lordsdebatesday' => array (
501
+    'lordsdebatesday' => array(
502 502
         'parent'		=> 'lordsdebatesfront',
503
-        'session_vars'	=> array ('d'),
503
+        'session_vars'	=> array('d'),
504 504
         'url'			=> 'lords/',
505 505
     ),
506
-    'lordsdebatesfront' => array (
507
-        'menu'			=> array (
506
+    'lordsdebatesfront' => array(
507
+        'menu'			=> array(
508 508
             'text'			=> 'Lords debates',
509 509
             'title'			=> "House of Lords debates"
510 510
         ),
@@ -513,24 +513,24 @@  discard block
 block discarded – undo
513 513
         'rss'			=> 'rss/lords.rss',
514 514
         'url'			=> 'lords/'
515 515
     ),
516
-    'lordsdebatesyear' => array (
516
+    'lordsdebatesyear' => array(
517 517
         'parent'		=> 'lordsdebatesfront',
518 518
         'url'			=> 'lords/'
519 519
     ),
520 520
 
521 521
         // Parliament landing page
522
-        'parliament_landing' => array (
522
+        'parliament_landing' => array(
523 523
                 'title'                 => 'Parliament',
524 524
                 'url'                   => 'parliament/',
525 525
         ),
526 526
 
527
-    'peer' => array (
527
+    'peer' => array(
528 528
         'parent'		=> 'peers',
529 529
         'title'			=> 'Peer',
530 530
         'url'			=> 'peer/'
531 531
     ),
532
-    'peers' => array (
533
-         'menu'			=> array (
532
+    'peers' => array(
533
+         'menu'			=> array(
534 534
             'text'			=> 'Lords',
535 535
             'title'			=> "List of all Lords"
536 536
         ),
@@ -538,8 +538,8 @@  discard block
 block discarded – undo
538 538
         'title'			=> '',
539 539
         'url'			=> 'peers/'
540 540
     ),
541
-'overview' => array (
542
-     'menu'			=> array (
541
+'overview' => array(
542
+     'menu'			=> array(
543 543
         'text'			=> 'Overview',
544 544
         'title'			=> "Overview of the UK Parliament"
545 545
     ),
@@ -548,50 +548,50 @@  discard block
 block discarded – undo
548 548
     'rss'			=> 'news/index.rdf',
549 549
     'url'			=> ''
550 550
 ),
551
-    'mla' => array (
551
+    'mla' => array(
552 552
         'parent'		=> 'mlas',
553 553
         'title'			=> 'Find your MLA',
554 554
         'url'			=> 'mla/'
555 555
     ),
556
-    'mlas' => array (
556
+    'mlas' => array(
557 557
         'parent'		=> 'ni_home',
558
-        'menu'			=> array (
558
+        'menu'			=> array(
559 559
             'text'			=> 'MLAs',
560 560
             'title'			=> "List of all Members of the Northern Ireland Assembly (MLAs)"
561 561
         ),
562 562
         'title'			=> '',
563 563
         'url'			=> 'mlas/'
564 564
     ),
565
-    'msps' => array (
565
+    'msps' => array(
566 566
         'parent'		=> 'sp_home',
567
-        'menu'			=> array (
567
+        'menu'			=> array(
568 568
             'text'			=> 'MSPs',
569 569
             'title'			=> "List of Members of the Scottish Parliament (MSPs)"
570 570
         ),
571 571
         'title'			=> '',
572 572
         'url'			=> 'msps/'
573 573
     ),
574
-    'msp' => array (
574
+    'msp' => array(
575 575
         'parent'		=> 'msps',
576 576
         'title'			=> 'Find your MSP',
577 577
         'url'			=> 'msp/'
578 578
     ),
579 579
     /* Not 'Your MP', whose name is 'yourmp'... */
580
-    'mp' => array (
580
+    'mp' => array(
581 581
         'parent'			=> 'mps',
582 582
         'title'			=> 'Find your MP',
583 583
         'url'			=> 'mp/'
584 584
     ),
585
-    'emailfriend' => array (
585
+    'emailfriend' => array(
586 586
         'title'			=> 'Send this page to a friend',
587 587
         'url'			=> 'email/'
588 588
     ),
589 589
     // The directory MPs' RSS feeds are stored in.
590
-    'mp_rss' => array (
590
+    'mp_rss' => array(
591 591
         'url'			=> 'rss/mp/'
592 592
     ),
593
-    'mps' => array (
594
-         'menu'			=> array (
593
+    'mps' => array(
594
+         'menu'			=> array(
595 595
             'text'			=> 'MPs',
596 596
             'title'			=> "List of all Members of Parliament (MPs)"
597 597
         ),
@@ -602,16 +602,16 @@  discard block
 block discarded – undo
602 602
 
603 603
     /* Northern Ireland Assembly */
604 604
     'ni_home' => array(
605
-        'menu'			=> array (
605
+        'menu'			=> array(
606 606
             'text'			=> 'Northern Ireland Assembly',
607 607
             'title'			=> 'Full authority over <em>transferred matters</em>, which include agriculture, education, employment, the environment and health'
608 608
         ),
609 609
         'title'			=> 'Northern Ireland Assembly',
610 610
         'url'			=> 'ni/'
611 611
     ),
612
-    'nioverview' => array (
612
+    'nioverview' => array(
613 613
         'parent'		=> 'ni_home',
614
-        'menu'			=> array (
614
+        'menu'			=> array(
615 615
             'text'			=> 'Debates',
616 616
             'title'			=> "Overview of the Northern Ireland Assembly debates"
617 617
         ),
@@ -619,23 +619,23 @@  discard block
 block discarded – undo
619 619
         'rss'			=> 'rss/ni.rss',
620 620
         'url'			=> 'ni/'
621 621
     ),
622
-    'nidebate'  => array (
622
+    'nidebate'  => array(
623 623
         'parent'		=> 'nidebatesfront',
624 624
         'url'			=> 'ni/',
625
-        'session_vars'	=> array ('id'),
625
+        'session_vars'	=> array('id'),
626 626
     ),
627
-    'nidebates'  => array (
627
+    'nidebates'  => array(
628 628
         'parent'		=> 'nidebatesfront',
629 629
         'url'			=> 'ni/',
630
-        'session_vars'	=> array ('id'),
630
+        'session_vars'	=> array('id'),
631 631
     ),
632
-    'nidebatesday' => array (
632
+    'nidebatesday' => array(
633 633
         'parent'		=> 'nidebatesfront',
634
-        'session_vars'	=> array ('d'),
634
+        'session_vars'	=> array('d'),
635 635
         'url'			=> 'ni/',
636 636
     ),
637
-    'nidebatesfront' => array (
638
-        'menu'			=> array (
637
+    'nidebatesfront' => array(
638
+        'menu'			=> array(
639 639
             'text'			=> 'Debates',
640 640
             'title'			=> "Northern Ireland Assembly debates"
641 641
         ),
@@ -644,24 +644,24 @@  discard block
 block discarded – undo
644 644
         'rss'			=> 'rss/ni.rss',
645 645
         'url'			=> 'ni/'
646 646
     ),
647
-    'nidebatesyear' => array (
647
+    'nidebatesyear' => array(
648 648
         'parent'		=> 'nidebatesfront',
649 649
         'url'			=> 'ni/'
650 650
     ),
651 651
 
652
-    'otheruseredit' => array (
652
+    'otheruseredit' => array(
653 653
         'pg'			=> 'editother',
654 654
         'title'			=> "Editing a user's data",
655 655
         'url'			=> 'user/'
656 656
     ),
657
-    'privacy' => array (
657
+    'privacy' => array(
658 658
         'title'			=> 'Privacy Policy',
659 659
         'url'			=> 'privacy/'
660 660
     ),
661 661
 
662 662
     /* Public bill committees */
663
-    'pbc_front' => array (
664
-        'menu'			=> array (
663
+    'pbc_front' => array(
664
+        'menu'			=> array(
665 665
             'text'			=> 'Bill Committees',
666 666
             'title'			=> "Public Bill Committees (formerly Standing Committees) debates"
667 667
         ),
@@ -679,17 +679,17 @@  discard block
 block discarded – undo
679 679
         'title' => '',
680 680
         'url' => 'pbc/',
681 681
         'parent' => 'pbc_front',
682
-        'session_vars'	=> array ('bill'),
682
+        'session_vars'	=> array('bill'),
683 683
     ),
684 684
     'pbc_clause' => array(
685 685
         'parent'		=> 'pbc_front',
686 686
         'url'			=> 'pbc/',
687
-        'session_vars'	=> array ('id'),
687
+        'session_vars'	=> array('id'),
688 688
     ),
689 689
     'pbc_speech' => array(
690 690
         'parent'		=> 'pbc_front',
691 691
         'url'			=> 'pbc/',
692
-        'session_vars'	=> array ('id'),
692
+        'session_vars'	=> array('id'),
693 693
     ),
694 694
 
695 695
     'people' => array(
@@ -701,62 +701,62 @@  discard block
 block discarded – undo
701 701
         'url'			=> '',
702 702
     ),
703 703
 
704
-    'raw' => array (
704
+    'raw' => array(
705 705
         'title'			=> 'Raw data',
706 706
         'url'			=> 'raw/'
707 707
     ),
708 708
 
709
-    'regmem' => array (
709
+    'regmem' => array(
710 710
         'title'			=> 'Changes to the Register of Members\' Interests',
711 711
         'url'			=> 'regmem/'
712 712
     ),
713 713
 
714
-    'regmem_date' => array (
714
+    'regmem_date' => array(
715 715
         'url'			=> 'regmem/',
716 716
         'parent'		=> 'regmem'
717 717
     ),
718 718
 
719
-    'regmem_mp' => array (
719
+    'regmem_mp' => array(
720 720
         'url'			=> 'regmem/',
721 721
         'parent'		=> 'regmem'
722 722
     ),
723 723
 
724
-    'regmem_diff' => array (
724
+    'regmem_diff' => array(
725 725
         'url'			=> 'regmem/',
726 726
         'parent'		=> 'regmem'
727 727
     ),
728 728
 
729
-    'royal' => array (
729
+    'royal' => array(
730 730
         'parent'        => 'hansard',
731 731
         'title'         => 'Royal',
732 732
         'url'           => 'royal/',
733 733
     ),
734 734
 
735
-    'topic' => array (
735
+    'topic' => array(
736 736
         'parent'        => 'topics',
737 737
         'url'           => 'topic/topic.php',
738 738
     ),
739 739
 
740
-    'topics' => array (
740
+    'topics' => array(
741 741
         'title'        => 'Topics',
742 742
         'url'          => 'topic/',
743 743
     ),
744 744
 
745
-    'search'		=> array (
745
+    'search'		=> array(
746 746
         'sidebar'		=> 'search',
747 747
         'url'			=> 'search/',
748 748
         'robots'		=> 'noindex, nofollow',
749 749
         'heading'		=> '',
750
-        'session_vars'	=> array ('q', 's', 'pid', 'o', 'pop')
750
+        'session_vars'	=> array('q', 's', 'pid', 'o', 'pop')
751 751
     ),
752
-    'search_help'		=> array (
752
+    'search_help'		=> array(
753 753
         'sidebar'		=> 'search',
754 754
         'title'			=> 'Help with searching',
755 755
         'url'			=> 'search/'
756 756
     ),
757 757
 
758
-    'sitenews'		=> array (
759
-        'menu'			=> array (
758
+    'sitenews'		=> array(
759
+        'menu'			=> array(
760 760
             'text'			=> 'TheyWorkForYou news',
761 761
             'title'			=> "News about changes to this website"
762 762
         ),
@@ -766,68 +766,68 @@  discard block
 block discarded – undo
766 766
         'title'			=> 'TheyWorkForYou news',
767 767
         'url'			=> 'news/'
768 768
     ),
769
-    'sitenews_archive'		=> array (
769
+    'sitenews_archive'		=> array(
770 770
         'parent'		=> 'sitenews',
771 771
         'rss'			=> 'news/index.rdf',
772 772
         'sidebar'		=> 'sitenews',
773 773
         'title'			=> 'Archive',
774 774
         'url'			=> 'news/archives/'
775 775
     ),
776
-    'sitenews_atom' 	=> array (
776
+    'sitenews_atom' 	=> array(
777 777
         'url'			=> 'news/atom.xml'
778 778
     ),
779
-    'sitenews_date'	=> array (
779
+    'sitenews_date'	=> array(
780 780
         'parent'		=> 'sitenews',
781 781
         'rss'			=> 'news/index.rdf',
782 782
         'sidebar'		=> 'sitenews'
783 783
     ),
784
-    'sitenews_individual'	=> array (
784
+    'sitenews_individual'	=> array(
785 785
         'parent'		=> 'sitenews',
786 786
         'rss'			=> 'news/index.rdf',
787 787
         'sidebar'		=> 'sitenews',
788 788
     ),
789
-    'sitenews_rss1' 	=> array (
789
+    'sitenews_rss1' 	=> array(
790 790
         'url'			=> 'news/index.rdf'
791 791
     ),
792
-    'sitenews_rss2' 	=> array (
792
+    'sitenews_rss2' 	=> array(
793 793
         'url'			=> 'news/index.xml'
794 794
     ),
795 795
 
796 796
     /* Scottish Parliament */
797 797
     'sp_home' => array(
798
-        'menu'			=> array (
798
+        'menu'			=> array(
799 799
             'text'			=> 'Scottish Parliament',
800 800
             'title'			=> 'Scottish education, health, agriculture, justice, prisons and other devolved areas. Some tax-varying powers'
801 801
         ),
802 802
         'title'			=> 'Scottish Parliament',
803 803
         'url'			=> 'scotland/'
804 804
     ),
805
-    'spoverview' => array (
805
+    'spoverview' => array(
806 806
         'parent'		=> 'sp_home',
807
-        'menu'			=> array (
807
+        'menu'			=> array(
808 808
             'text'			=> 'Overview',
809 809
             'title'			=> "Overview of the Scottish Parliament"
810 810
         ),
811 811
         'title'			=> '',
812 812
         'url'			=> 'scotland/'
813 813
     ),
814
-    'spdebate'  => array (
814
+    'spdebate'  => array(
815 815
         'parent'		=> 'spdebatesfront',
816 816
         'url'			=> 'sp/',
817
-        'session_vars'	=> array ('id'),
817
+        'session_vars'	=> array('id'),
818 818
     ),
819
-    'spdebates'  => array (
819
+    'spdebates'  => array(
820 820
         'parent'		=> 'spdebatesfront',
821 821
         'url'			=> 'sp/',
822
-        'session_vars'	=> array ('id'),
822
+        'session_vars'	=> array('id'),
823 823
     ),
824
-    'spdebatesday' => array (
824
+    'spdebatesday' => array(
825 825
         'parent'		=> 'spdebatesfront',
826
-        'session_vars'	=> array ('d'),
826
+        'session_vars'	=> array('d'),
827 827
         'url'			=> 'sp/',
828 828
     ),
829
-    'spdebatesfront' => array (
830
-        'menu'			=> array (
829
+    'spdebatesfront' => array(
830
+        'menu'			=> array(
831 831
             'text'			=> 'Debates',
832 832
             'title'			=> ''
833 833
         ),
@@ -836,21 +836,21 @@  discard block
 block discarded – undo
836 836
         'url'			=> 'sp/'
837 837
     ),
838 838
 
839
-    'spdebatesyear' => array (
839
+    'spdebatesyear' => array(
840 840
         'parent'		=> 'spdebatesfront',
841 841
         'url'			=> 'sp/'
842 842
     ),
843
-    'spwrans'  => array (
843
+    'spwrans'  => array(
844 844
         'parent'		=> 'spwransfront',
845 845
         'url'			=> 'spwrans/',
846 846
         #'session_vars'	=> array ('id'),
847 847
     ),
848
-    'spwransday'  => array (
848
+    'spwransday'  => array(
849 849
         'parent'		=> 'spwransfront',
850 850
         'url'			=> 'spwrans/'
851 851
     ),
852
-    'spwransfront'  => array (
853
-        'menu'			=> array (
852
+    'spwransfront'  => array(
853
+        'menu'			=> array(
854 854
             'text'			=> 'Written Answers',
855 855
             'title'			=> ''
856 856
         ),
@@ -863,38 +863,38 @@  discard block
 block discarded – undo
863 863
         'title'			=> 'For questions asked by ',
864 864
         'url'			=> 'spwrans/'
865 865
     ),
866
-    'spwransyear' => array (
866
+    'spwransyear' => array(
867 867
         'parent'		=> 'spwransfront',
868 868
         'url'			=> 'spwrans/'
869 869
     ),
870 870
 
871 871
     // Topic pages
872 872
 
873
-    'topic' => array (
873
+    'topic' => array(
874 874
         'url'           => 'topic/',
875 875
         'title'         => 'Topics'
876 876
     ),
877 877
 
878
-    'topicbenefits' => array (
878
+    'topicbenefits' => array(
879 879
         'url'           => 'topic/benefits',
880 880
         'parent'        => 'topic',
881 881
         'title'         => 'Benefits'
882 882
     ),
883 883
 
884
-    'topiccrimestats' => array (
884
+    'topiccrimestats' => array(
885 885
         'url'           => 'topic/crime-stats',
886 886
         'parent'        => 'topic',
887 887
         'title'         => 'Crime Statistics'
888 888
     ),
889 889
 
890
-    'topicnhs' => array (
890
+    'topicnhs' => array(
891 891
         'url'           => 'topic/nhs',
892 892
         'parent'        => 'topic',
893 893
         'title'         => 'NHS'
894 894
     ),
895 895
 
896 896
     // The URL 3rd parties need to ping something here.
897
-    'trackback' => array (
897
+    'trackback' => array(
898 898
         'url'			=> 'trackback/'
899 899
     ),
900 900
 
@@ -907,29 +907,29 @@  discard block
 block discarded – undo
907 907
         'url'			=> 'user/alerts/',
908 908
         'parent'		=> 'userviewself'
909 909
     ),
910
-    'userchangepc' => array (
910
+    'userchangepc' => array(
911 911
         'title'			=> 'Change your postcode',
912 912
         'url'			=> 'user/changepc/'
913 913
     ),
914
-    'userconfirm' => array (
914
+    'userconfirm' => array(
915 915
         'url'			=> 'user/confirm/'
916 916
     ),
917
-    'userconfirmed' => array (
917
+    'userconfirmed' => array(
918 918
         'sidebar'		=> 'userconfirmed',
919 919
         'title'			=> 'Welcome to TheyWorkForYou!',
920 920
         'url'			=> 'user/confirm/'
921 921
     ),
922
-    'userconfirmfailed' => array (
922
+    'userconfirmfailed' => array(
923 923
         'title'			=> 'Oops!',
924 924
         'url'			=> 'user/confirm/'
925 925
     ),
926
-    'useredit' => array (
926
+    'useredit' => array(
927 927
         'pg'			=> 'edit',
928 928
         'title'			=> 'Edit your details',
929 929
         'url'			=> 'user/'
930 930
     ),
931
-    'userjoin' => array (
932
-                'menu'                  => array (
931
+    'userjoin' => array(
932
+                'menu'                  => array(
933 933
                         'text'                  => 'Join',
934 934
                         'title'                 => "Joining is free and allows you to annotate speeches"
935 935
                 ),
@@ -938,8 +938,8 @@  discard block
 block discarded – undo
938 938
                 'title'                 => 'Join TheyWorkForYou',
939 939
                 'url'                   => 'user/'
940 940
         ),
941
-    'getinvolved' => array (
942
-        'menu'			=> array (
941
+    'getinvolved' => array(
942
+        'menu'			=> array(
943 943
             'text'			=> 'Get involved',
944 944
             'title'			=> "Contribute to TheyWorkForYou"
945 945
         ),
@@ -948,8 +948,8 @@  discard block
 block discarded – undo
948 948
         'title'			=> 'Contribute to TheyWorkForYou',
949 949
         'url'			=> 'getinvolved/'
950 950
     ),
951
-    'userlogin' => array (
952
-        'menu'			=> array (
951
+    'userlogin' => array(
952
+        'menu'			=> array(
953 953
             'text'			=> 'Sign in',
954 954
             'title'			=> "If you've already joined , sign in to add annotations"
955 955
         ),
@@ -958,33 +958,33 @@  discard block
 block discarded – undo
958 958
         'url'			=> 'user/login/'
959 959
     ),
960 960
 
961
-    'userlogout' => array (
962
-        'menu'			=> array (
961
+    'userlogout' => array(
962
+        'menu'			=> array(
963 963
             'text'			=> 'Sign out',
964 964
             'title'			=> "Sign out"
965 965
         ),
966 966
         'url'			=> 'user/logout/'
967 967
     ),
968
-    'userpassword' => array (
968
+    'userpassword' => array(
969 969
         'title'			=> 'Change password',
970 970
         'url'			=> 'user/password/'
971 971
     ),
972
-    'userprompt' => array (
972
+    'userprompt' => array(
973 973
         'title'			=> 'Please sign in',
974 974
         'url'			=> 'user/prompt/'
975 975
     ),
976
-    'userview' => array (
976
+    'userview' => array(
977 977
         'session_vars'	=> array('u'),
978 978
         'url'			=> 'user/'
979 979
     ),
980
-    'userviewself' => array (
981
-        'menu'			=> array (
980
+    'userviewself' => array(
981
+        'menu'			=> array(
982 982
             'text'			=> 'Your details',
983 983
             'title'			=> "View and edit your details"
984 984
         ),
985 985
         'url'			=> 'user/'
986 986
     ),
987
-    'userwelcome' => array (
987
+    'userwelcome' => array(
988 988
         'title'			=> 'Welcome!',
989 989
         'url'			=> 'user/'
990 990
     ),
@@ -1012,23 +1012,23 @@  discard block
 block discarded – undo
1012 1012
     ),
1013 1013
 
1014 1014
     /* Westminster Hall */
1015
-    'whall'  => array (
1015
+    'whall'  => array(
1016 1016
         'parent'		=> 'whallfront',
1017 1017
         'url'			=> 'whall/',
1018
-        'session_vars'	=> array ('id'),
1018
+        'session_vars'	=> array('id'),
1019 1019
     ),
1020
-    'whalls'  => array (
1020
+    'whalls'  => array(
1021 1021
         'parent'		=> 'whallfront',
1022 1022
         'url'			=> 'whall/',
1023
-        'session_vars'	=> array ('id'),
1023
+        'session_vars'	=> array('id'),
1024 1024
     ),
1025
-    'whallday' => array (
1025
+    'whallday' => array(
1026 1026
         'parent'		=> 'whallfront',
1027
-        'session_vars'	=> array ('d'),
1027
+        'session_vars'	=> array('d'),
1028 1028
         'url'			=> 'whall/',
1029 1029
     ),
1030
-    'whallfront' => array (
1031
-        'menu'			=> array (
1030
+    'whallfront' => array(
1031
+        'menu'			=> array(
1032 1032
             'text'			=> 'Westminster Hall',
1033 1033
             'title'			=> "Westminster Hall debates"
1034 1034
         ),
@@ -1037,23 +1037,23 @@  discard block
 block discarded – undo
1037 1037
         'rss'			=> 'rss/whall.rss',
1038 1038
         'url'			=> 'whall/'
1039 1039
     ),
1040
-    'whallyear' => array (
1040
+    'whallyear' => array(
1041 1041
         'parent'		=> 'whallfront',
1042 1042
         'url'			=> 'whall/'
1043 1043
     ),
1044 1044
 
1045
-    'wms' => array (
1045
+    'wms' => array(
1046 1046
         'parent'		=> 'wranswmsfront',
1047 1047
         'url'			=> 'wms/',
1048 1048
         'session_vars'	=> array('id')
1049 1049
     ),
1050
-    'wmsday' => array (
1050
+    'wmsday' => array(
1051 1051
         'parent'		=> 'wmsfront',
1052 1052
         'session_vars'	=> array('d'),
1053 1053
         'url'			=> 'wms/'
1054 1054
     ),
1055
-    'wmsfront' => array (
1056
-        'menu'			=> array (
1055
+    'wmsfront' => array(
1056
+        'menu'			=> array(
1057 1057
             'text'			=> 'Written Ministerial Statements',
1058 1058
             'title'			=> ''
1059 1059
         ),
@@ -1062,22 +1062,22 @@  discard block
 block discarded – undo
1062 1062
         'rss'			=> 'rss/wms.rss',
1063 1063
         'url'			=> 'wms/'
1064 1064
     ),
1065
-    'wmsyear' => array (
1065
+    'wmsyear' => array(
1066 1066
         'parent'		=> 'wmsfront',
1067 1067
         'url'			=> 'wms/'
1068 1068
     ),
1069 1069
 
1070
-    'wrans'  => array (
1070
+    'wrans'  => array(
1071 1071
         'parent'		=> 'wranswmsfront',
1072 1072
         'url'			=> 'wrans/',
1073
-        'session_vars'	=> array ('id')
1073
+        'session_vars'	=> array('id')
1074 1074
     ),
1075
-    'wransday'  => array (
1075
+    'wransday'  => array(
1076 1076
         'parent'		=> 'wransfront',
1077 1077
         'url'			=> 'wrans/'
1078 1078
     ),
1079
-    'wransfront'  => array (
1080
-        'menu'			=> array (
1079
+    'wransfront'  => array(
1080
+        'menu'			=> array(
1081 1081
             'text'			=> 'Written Answers',
1082 1082
             'title'			=> "Written Answers"
1083 1083
         ),
@@ -1090,13 +1090,13 @@  discard block
 block discarded – undo
1090 1090
         'title'			=> 'For questions asked by ',
1091 1091
         'url'			=> 'wrans/'
1092 1092
     ),
1093
-    'wransyear' => array (
1093
+    'wransyear' => array(
1094 1094
         'parent'		=> 'wransfront',
1095 1095
         'url'			=> 'wrans/'
1096 1096
     ),
1097 1097
 
1098
-    'wranswmsfront'  => array (
1099
-        'menu'			=> array (
1098
+    'wranswmsfront'  => array(
1099
+        'menu'			=> array(
1100 1100
             'text'			=> 'Written Answers',
1101 1101
             'title'			=> 'Written Answers and Statements',
1102 1102
         ),
@@ -1113,8 +1113,8 @@  discard block
 block discarded – undo
1113 1113
         'title' => 'Your representative',
1114 1114
         'url' => 'your/',
1115 1115
     ),
1116
-    'yourmp' => array (
1117
-        'menu'			=> array (
1116
+    'yourmp' => array(
1117
+        'menu'			=> array(
1118 1118
             'text'			=> 'Your MP',
1119 1119
             'title'			=> "Find out about your Member of Parliament"
1120 1120
         ),
@@ -1123,8 +1123,8 @@  discard block
 block discarded – undo
1123 1123
         'url'			=> 'mp/',
1124 1124
         'parent'			=> 'mps',
1125 1125
     ),
1126
-    'yourmp_recent' => array (
1127
-        'menu'			=> array (
1126
+    'yourmp_recent' => array(
1127
+        'menu'			=> array(
1128 1128
             'text'			=> 'Recent appearances',
1129 1129
             'title'			=> "Recent speeches and written answers by this MP"
1130 1130
         ),
@@ -1132,8 +1132,8 @@  discard block
 block discarded – undo
1132 1132
         'title'			=> "Your MP's recent appearances in parliament",
1133 1133
         'url'			=> 'mp/?recent=1'
1134 1134
     ),
1135
-    'yourmsp' => array (
1136
-        'menu'			=> array (
1135
+    'yourmsp' => array(
1136
+        'menu'			=> array(
1137 1137
             'text'			=> 'Your MSPs',
1138 1138
             'title'			=> "Find out about your Members of the Scottish Parliament"
1139 1139
         ),
@@ -1142,8 +1142,8 @@  discard block
 block discarded – undo
1142 1142
         'title'			=> 'Your MSPs',
1143 1143
         'url'			=> 'msp/'
1144 1144
     ),
1145
-    'yourmla' => array (
1146
-        'menu'			=> array (
1145
+    'yourmla' => array(
1146
+        'menu'			=> array(
1147 1147
             'text'			=> 'Your MLAs',
1148 1148
             'title'			=> "Find out about your Members of the Legislative Assembly"
1149 1149
         ),
@@ -1159,38 +1159,38 @@  discard block
 block discarded – undo
1159 1159
 // The text displayed on the page itself will also be this,
1160 1160
 // UNLESS the section has a 'heading', in which case that's used instead.
1161 1161
 
1162
-$this->section = array (
1162
+$this->section = array(
1163 1163
 
1164 1164
 
1165
-    'about' => array (
1165
+    'about' => array(
1166 1166
         'title' 	=> 'About Us'
1167 1167
     ),
1168
-    'admin' => array (
1168
+    'admin' => array(
1169 1169
         'title'		=> 'Admin'
1170 1170
     ),
1171
-    'debates' => array (
1171
+    'debates' => array(
1172 1172
         'title' 	=> 'Debates',
1173 1173
         'heading'	=> 'House of Commons Debates'
1174 1174
     ),
1175
-    'help_us_out' => array (
1175
+    'help_us_out' => array(
1176 1176
         'title' 	=> 'Help Us Out'
1177 1177
     ),
1178
-    'hansard' => array (
1178
+    'hansard' => array(
1179 1179
         'title' 	=> 'Hansard'
1180 1180
     ),
1181
-    'home' => array (
1181
+    'home' => array(
1182 1182
         'title' 	=> 'Home'
1183 1183
     ),
1184
-    'mp' => array (
1184
+    'mp' => array(
1185 1185
         'title' 	=> 'Your MP'
1186 1186
     ),
1187
-    'search' => array (
1187
+    'search' => array(
1188 1188
         'title' 	=> 'Search'
1189 1189
     ),
1190
-    'sitenews' => array (
1190
+    'sitenews' => array(
1191 1191
         'title' 	=> 'TheyWorkForYou news'
1192 1192
     ),
1193
-    'wrans' => array (
1193
+    'wrans' => array(
1194 1194
         'title' 	=> 'Written Answers'
1195 1195
     )
1196 1196
 
Please login to merge, or discard this patch.
www/includes/easyparliament/templates/html/mp/error.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
 
7 7
             <p><?= $error ?></p>
8 8
 
9
-        <?php if ( $rep_search_url ) { ?>
9
+        <?php if ($rep_search_url) { ?>
10 10
         </div>
11 11
 
12 12
         <div class="full-page__unit">
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,8 @@
 block discarded – undo
31 31
         <div class="full-page__unit">
32 32
         <p>Or <a href="<?= $all_mps_url ?>">browse all <?= $rep_name ?>s</a>?</p>
33 33
         </div>
34
-        <?php } else { ?>
34
+        <?php }
35
+else { ?>
35 36
         <p>Why not <a href="<?= $all_mps_url ?>">browse all <?= $rep_name ?>s</a>?</p>
36 37
         </div>
37 38
         <?php } ?>
Please login to merge, or discard this patch.
www/includes/easyparliament/templates/html/mp/votes.php 4 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
                               <?php foreach ($segment['votes']->positions as $key_vote) {
61 61
 
62 62
                                 if (isset($policy_last_update[$key_vote['policy_id']]) && $policy_last_update[$key_vote['policy_id']] > $most_recent) {
63
-                                  $most_recent = $policy_last_update[$key_vote['policy_id']];
63
+                                    $most_recent = $policy_last_update[$key_vote['policy_id']];
64 64
                                 }
65 65
 
66 66
                                 if ( $key_vote['has_strong'] || $key_vote['position'] == 'has never voted on' ) {
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
 
82 82
                                 include '_vote_description.php';
83 83
 
84
-                              } ?>
84
+                                } ?>
85 85
                             </ul>
86 86
 
87 87
                             <div class="share-vote-descriptions">
Please login to merge, or discard this patch.
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
 
43 43
                 <?php if ($has_voting_record): ?>
44 44
 
45
-                    <?php $displayed_votes = FALSE; ?>
45
+                    <?php $displayed_votes = false; ?>
46 46
 
47 47
                     <?php foreach ($key_votes_segments as $segment): ?>
48 48
 
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
                                 <small>Last updated: <?= format_date($most_recent, LONGDATEFORMAT) ?></small>
95 95
                             </div>
96 96
 
97
-                            <?php $displayed_votes = TRUE; ?>
97
+                            <?php $displayed_votes = true; ?>
98 98
 
99 99
                         <?php endif; ?>
100 100
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
                                   $most_recent = $policy_last_update[$key_vote['policy_id']];
64 64
                                 }
65 65
 
66
-                                if ( $key_vote['has_strong'] || $key_vote['position'] == 'has never voted on' ) {
66
+                                if ($key_vote['has_strong'] || $key_vote['position'] == 'has never voted on') {
67 67
                                     $description = ucfirst($key_vote['desc']);
68 68
                                 } else {
69 69
                                     $description = sprintf(
Please login to merge, or discard this patch.
Braces   +7 added lines, -3 removed lines patch added patch discarded remove patch
@@ -65,7 +65,8 @@  discard block
 block discarded – undo
65 65
 
66 66
                                 if ( $key_vote['has_strong'] || $key_vote['position'] == 'has never voted on' ) {
67 67
                                     $description = ucfirst($key_vote['desc']);
68
-                                } else {
68
+                                }
69
+                                else {
69 70
                                     $description = sprintf(
70 71
                                         'We don&rsquo;t have enough information to calculate %s&rsquo;s position on %s.',
71 72
                                         $full_name,
@@ -110,13 +111,16 @@  discard block
 block discarded – undo
110 111
 
111 112
                         <?php endif; ?>
112 113
 
113
-                    <?php else: ?>
114
+                    <?php else {
115
+    : ?>
114 116
 
115 117
                         <div class="panel">
116 118
                             <p>This person has not voted on any of the key issues which we keep track of.</p>
117 119
                         </div>
118 120
 
119
-                    <?php endif; ?>
121
+                    <?php endif;
122
+}
123
+?>
120 124
 
121 125
                 <?php endif; ?>
122 126
 
Please login to merge, or discard this patch.
www/includes/easyparliament/templates/html/mp/recent.php 3 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -38,11 +38,11 @@  discard block
 block discarded – undo
38 38
                 if ( isset($divisions) && $divisions ) {
39 39
                     if ($has_voting_record) {
40 40
                         foreach ($divisions as $division) {
41
-                          $displayed_votes = TRUE;
41
+                            $displayed_votes = TRUE;
42 42
 
43
-                          if ($current_date != $division['date']) {
43
+                            if ($current_date != $division['date']) {
44 44
                             if ($current_date != '' ) {
45
-                              print('</ul></div>');
45
+                                print('</ul></div>');
46 46
                             }
47 47
                             $current_date = $division['date'];
48 48
                             $sidebar_links[] = $division['date'];
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
                             <h2><?= strftime('%e %b %Y', strtotime($division['date'])) ?></h2>
52 52
                              <ul class="vote-descriptions policy-votes">
53 53
                           <?php }
54
-                          include('_division_description.php');
54
+                            include('_division_description.php');
55 55
                         }
56 56
                         echo('</div>');
57 57
                     }
Please login to merge, or discard this patch.
Upper-Lower-Casing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -30,15 +30,15 @@
 block discarded – undo
30 30
 
31 31
                 <?php
32 32
 
33
-                $displayed_votes = FALSE;
34
-                $show_all = TRUE;
33
+                $displayed_votes = false;
34
+                $show_all = true;
35 35
                 $current_date = '';
36 36
                 $sidebar_links = array();
37 37
 
38 38
                 if ( isset($divisions) && $divisions ) {
39 39
                     if ($has_voting_record) {
40 40
                         foreach ($divisions as $division) {
41
-                          $displayed_votes = TRUE;
41
+                          $displayed_votes = true;
42 42
 
43 43
                           if ($current_date != $division['date']) {
44 44
                             if ($current_date != '' ) {
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -35,13 +35,13 @@  discard block
 block discarded – undo
35 35
                 $current_date = '';
36 36
                 $sidebar_links = array();
37 37
 
38
-                if ( isset($divisions) && $divisions ) {
38
+                if (isset($divisions) && $divisions) {
39 39
                     if ($has_voting_record) {
40 40
                         foreach ($divisions as $division) {
41 41
                           $displayed_votes = TRUE;
42 42
 
43 43
                           if ($current_date != $division['date']) {
44
-                            if ($current_date != '' ) {
44
+                            if ($current_date != '') {
45 45
                               print('</ul></div>');
46 46
                             }
47 47
                             $current_date = $division['date'];
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
 
68 68
             <div class="sidebar__unit in-page-nav">
69 69
                 <ul data-magellan-expedition="fixed">
70
-                  <?php foreach($sidebar_links as $date) { ?>
70
+                  <?php foreach ($sidebar_links as $date) { ?>
71 71
                     <li data-magellan-arrival="<?= strftime('%Y-%m-%d', strtotime($date)) ?>">
72 72
                         <a href="#<?= strftime('%Y-%m-%d', strtotime($date)) ?>">
73 73
                             <?= strftime('%e %b %Y', strtotime($date)) ?>
Please login to merge, or discard this patch.
www/includes/easyparliament/templates/html/mp/profile.php 4 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
 
80 80
                             include '_vote_description.php';
81 81
 
82
-                          } ?>
82
+                            } ?>
83 83
                         </ul>
84 84
 
85 85
                         <p>We have <b>lots more</b> plain English analysis of <?= $full_name ?>&rsquo;s voting record  on issues like health, welfare, taxation and more. Visit <a href="<?= $member_url ?>/votes"><?= $full_name ?>&rsquo;s full vote analysis page</a> for more.</p>
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
 
120 120
                             include '_vote_description.php';
121 121
 
122
-                          } ?>
122
+                            } ?>
123 123
                         </ul>
124 124
 
125 125
                         <p>We have <b>lots more</b> plain English analysis of <?= $full_name ?>&rsquo;s voting record  on issues like health, welfare, taxation and more. Visit <a href="<?= $member_url ?>/votes"><?= $full_name ?>&rsquo;s full vote analysis page</a> for more.</p>
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
 
149 149
                             include '_vote_description.php';
150 150
 
151
-                          } ?>
151
+                            } ?>
152 152
                         </ul>
153 153
 
154 154
                         <p>We have <b>lots more</b> plain English analysis of <?= $full_name ?>&rsquo;s voting record  on issues like health, welfare, taxation and more. Visit <a href="<?= $member_url ?>/votes"><?= $full_name ?>&rsquo;s full vote analysis page</a> for more.</p>
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@
 block discarded – undo
105 105
                         <ul class="vote-descriptions">
106 106
                           <?php foreach ($sorted_diffs as $policy_id => $score) {
107 107
 
108
-                            $key_vote = NULL;
108
+                            $key_vote = null;
109 109
                             $description = sprintf(
110 110
                                 '%s <b>%s</b> %s, while most %s MPs <b>%s</b>.',
111 111
                                 $full_name,
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
                 </div>
59 59
               <?php endif; ?>
60 60
 
61
-                <?php if ( !$current_member[HOUSE_TYPE_COMMONS] ) { ?>
61
+                <?php if (!$current_member[HOUSE_TYPE_COMMONS]) { ?>
62 62
                     <?php if (count($policyPositions->positions) > 0) { ?>
63 63
                     <div class="panel">
64 64
                         <a name="votes"></a>
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
 
125 125
                         <p>We have <b>lots more</b> plain English analysis of <?= $full_name ?>&rsquo;s voting record  on issues like health, welfare, taxation and more. Visit <a href="<?= $member_url ?>/votes"><?= $full_name ?>&rsquo;s full vote analysis page</a> for more.</p>
126 126
 
127
-                    <?php elseif (count($policyPositions->positions) > 0 ): ?>
127
+                    <?php elseif (count($policyPositions->positions) > 0): ?>
128 128
                         <?php if (count($party_positions) && $party_member_count > 1) { ?>
129 129
                         <p>
130 130
                         <?= $full_name ?> is a <?= $party ?> MP, and on the <b>vast majority</b> of issues votes the <b>same way</b> as other <?= $party ?> MPs.
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
                         </ul>
153 153
 
154 154
                         <p>We have <b>lots more</b> plain English analysis of <?= $full_name ?>&rsquo;s voting record  on issues like health, welfare, taxation and more. Visit <a href="<?= $member_url ?>/votes"><?= $full_name ?>&rsquo;s full vote analysis page</a> for more.</p>
155
-                    <?php elseif (count($policyPositions->positions) == 0 ): ?>
155
+                    <?php elseif (count($policyPositions->positions) == 0): ?>
156 156
 
157 157
                         <p>No votes to display.</p>
158 158
 
Please login to merge, or discard this patch.
Braces   +9 added lines, -4 removed lines patch added patch discarded remove patch
@@ -86,7 +86,8 @@  discard block
 block discarded – undo
86 86
 
87 87
                     </div>
88 88
                     <?php } ?>
89
-                <?php } else if (count($policyPositions->positions) > 0 || count($sorted_diffs) > 0): ?>
89
+                <?php }
90
+else if (count($policyPositions->positions) > 0 || count($sorted_diffs) > 0): ?>
90 91
                 <div class="panel">
91 92
                     <a name="votes"></a>
92 93
                     <h2 data-magellan-destination="votes"><?= $full_name ?>&rsquo;s voting in Parliament</h2>
@@ -190,11 +191,14 @@  discard block
 block discarded – undo
190 191
                         <?= $recent_appearances['additional_links'] ?>
191 192
                         <?php endif; ?>
192 193
 
193
-                    <?php else: ?>
194
+                    <?php else {
195
+    : ?>
194 196
 
195 197
                         <p>No recent appearances to display.</p>
196 198
 
197
-                    <?php endif; ?>
199
+                    <?php endif;
200
+}
201
+?>
198 202
 
199 203
                 </div>
200 204
                 <?php endif; ?>
@@ -265,7 +269,8 @@  discard block
 block discarded – undo
265 269
                         <p>
266 270
                             <?php if ($eu_stance == 'Leave' || $eu_stance == 'Remain') { ?>
267 271
                                 <strong><?= $full_name ?></strong> campaigned to <?= $eu_stance == 'Leave' ? 'leave' : 'remain in' ?> the European Union
268
-                            <?php } else { ?>
272
+                            <?php }
273
+else { ?>
269 274
                                 We don't know whether <strong><?= $full_name ?></strong> campaigned to leave, or stay in the European Union
270 275
                             <?php } ?>
271 276
                             <small>Source: <a href="http://www.bbc.co.uk/news/uk-politics-eu-referendum-35616946">BBC</a></small>
Please login to merge, or discard this patch.
www/includes/easyparliament/templates/html/mp/_vote_description.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <li>
2 2
     <?= $description ?>
3
-    <?php if ( $show_link ) { ?>
3
+    <?php if ($show_link) { ?>
4 4
         <a class="vote-description__source" href="<?= $link ?>">Show votes</a>
5 5
         <?php if (isset($key_vote)) { ?>
6 6
         <a class="vote-description__evidence" href="<?= $link ?>"><?= $key_vote['summary'] ?></a>
Please login to merge, or discard this patch.
www/includes/easyparliament/templates/html/mp/votes_svg.php 4 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
 
29 29
     echo '<?xml version="1.0" encoding="iso-8859-1"?>';
30 30
 
31
- ?>
31
+    ?>
32 32
 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
33 33
 <svg width="1000" height="500" viewBox="0 0 1000 500" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" font-family="Droid Sans, Trebuchet">
34 34
 
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
     <text font-size="24" font-weight="normal" fill="#000000">
54 54
         <?php foreach ($lines as $j=>$line) { ?>
55 55
             <tspan x="40" y="<?= $stance_y + $stance_padding_top + $stance_baseline_offset + ($stance_lineheight * $j) ?>"><?php
56
-                if (strpos($line, '*') !== False) {
56
+                if (strpos($line, '*') !== false) {
57 57
                     echo preg_replace(
58 58
                         '#(?:^|[*])([^\r\n *][^*\n]*[^\r\n *])(?:$|[*])#i',
59 59
                         $tspan_bold_open . '$1' . $tspan_bold_close,
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@
 block discarded – undo
3 3
     $stances = array();
4 4
 
5 5
     foreach ($segment['votes']->positions as $key_vote) {
6
-        if ( $key_vote['has_strong'] || $key_vote['position'] == 'has never voted on' ) {
6
+        if ($key_vote['has_strong'] || $key_vote['position'] == 'has never voted on') {
7 7
             $stance = strip_tags($key_vote['desc'], '<b>');
8 8
             $stance = ucfirst($stance);
9 9
             $stance = preg_replace('#</?b>#i', '*', $stance);
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,8 @@
 block discarded – undo
59 59
                         $tspan_bold_open . '$1' . $tspan_bold_close,
60 60
                         $line
61 61
                     );
62
-                } else {
62
+                }
63
+                else {
63 64
                     echo $line;
64 65
                 }
65 66
             ?></tspan>
Please login to merge, or discard this patch.
www/includes/easyparliament/templates/html/alert/index.php 3 patches
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -122,25 +122,25 @@  discard block
 block discarded – undo
122 122
       <?php } ?>
123 123
 
124 124
       <?php
125
-          if(
126
-              (isset($members) && $members->rows() > 0) ||
125
+            if(
126
+                (isset($members) && $members->rows() > 0) ||
127 127
               (isset($constituencies) && count($constituencies) > 0) ||
128 128
               ($alertsearch)
129
-          ) {
130
-              /* We need to disambiguate the user's instructions */
131
-              $member_options = false;
132
-      ?>
129
+            ) {
130
+                /* We need to disambiguate the user's instructions */
131
+                $member_options = false;
132
+        ?>
133 133
         <div class="alert-section alert-section--disambiguation">
134 134
             <div class="alert-section__primary">
135 135
 
136 136
               <?php if (isset($members) && $members->rows() > 0) {
137
-                  $member_options = true; ?>
137
+                    $member_options = true; ?>
138 138
                 <h3>Sign up for alerts when people matching <i><?= _htmlspecialchars($alertsearch) ?></i> speaks</h3>
139 139
                 <ul>
140 140
                   <?php
141 141
                     $q = $members;
142 142
                     for ($n=0; $n<$q->rows(); $n++) {
143
-                  ?>
143
+                    ?>
144 144
                     <li>
145 145
                         <form action="<?= $actionurl ?>" method="post">
146 146
                             <input type="hidden" name="t" value="<?= _htmlspecialchars($token) ?>">
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
               <?php } ?>
161 161
 
162 162
               <?php if (isset($constituencies) && count($constituencies) > 0) {
163
-                  $member_options = true; ?>
163
+                    $member_options = true; ?>
164 164
                 <h3>Sign up for alerts when MPs for constituencies matching <i><?= _htmlspecialchars($alertsearch) ?></i> speaks</h3>
165 165
                 <ul>
166 166
                 <?php foreach ($constituencies as $constituency => $member) { ?>
Please login to merge, or discard this patch.
Spacing   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <div class="full-page">
2 2
     <div class="full-page__row">
3 3
 
4
-      <?php if ( $message ) { ?>
4
+      <?php if ($message) { ?>
5 5
         <div class="alert-section alert-section--feedback">
6 6
             <div class="alert-section__primary">
7 7
                 <h3><?= $message['title'] ?></h3>
@@ -12,10 +12,10 @@  discard block
 block discarded – undo
12 12
         </div>
13 13
       <?php } ?>
14 14
 
15
-      <?php if ( $results ) { ?>
15
+      <?php if ($results) { ?>
16 16
         <div class="alert-section alert-section--feedback">
17 17
             <div class="alert-section__primary">
18
-              <?php if ( $results == 'alert-confirmed' ) { ?>
18
+              <?php if ($results == 'alert-confirmed') { ?>
19 19
                 <h3>Your alert has been confirmed</h3>
20 20
                 <p>
21 21
                     You will now receive email alerts for the following criteria:
@@ -45,26 +45,26 @@  discard block
 block discarded – undo
45 45
                 </div>
46 46
                 </noscript>
47 47
 
48
-              <?php } elseif ( $results == 'alert-suspended' ) { ?>
48
+              <?php } elseif ($results == 'alert-suspended') { ?>
49 49
                 <h3>Alert suspended</h3>
50 50
                 <p>
51 51
                     You can reactivate the alert at any time, from the sidebar below.
52 52
                 </p>
53 53
 
54
-              <?php } elseif ( $results == 'alert-resumed' ) { ?>
54
+              <?php } elseif ($results == 'alert-resumed') { ?>
55 55
                 <h3>Alert resumed</h3>
56 56
                 <p>
57 57
                     You will now receive email alerts on any day when there
58 58
                     are entries in Hansard that match your criteria.
59 59
                 </p>
60 60
 
61
-              <?php } elseif ( $results == 'alert-deleted' ) { ?>
61
+              <?php } elseif ($results == 'alert-deleted') { ?>
62 62
                 <h3>Alert deleted</h3>
63 63
                 <p>
64 64
                     You will no longer receive this alert.
65 65
                 </p>
66 66
 
67
-              <?php } elseif ( $results == 'alert-fail' ) { ?>
67
+              <?php } elseif ($results == 'alert-fail') { ?>
68 68
                 <h3>Hmmm, something&rsquo;s not right</h3>
69 69
                 <p>
70 70
                     The link you followed to reach this page appears to be incomplete.
@@ -80,14 +80,14 @@  discard block
 block discarded – undo
80 80
                     and let us know, and we'll help out!
81 81
                 </p>
82 82
 
83
-              <?php } elseif ( $results == 'alert-added' ) { ?>
83
+              <?php } elseif ($results == 'alert-added') { ?>
84 84
                 <h3>Your alert has been added</h3>
85 85
                 <p>
86 86
                     You will now receive email alerts on any day when
87 87
                     <?= _htmlspecialchars($criteria) ?> in parliament.
88 88
                 </p>
89 89
 
90
-              <?php } elseif ( $results == 'alert-confirmation' ) { ?>
90
+              <?php } elseif ($results == 'alert-confirmation') { ?>
91 91
                 <h3>We&rsquo;re nearly done&hellip;</h3>
92 92
                 <p>
93 93
                     You should receive an email shortly which will contain a link.
@@ -95,20 +95,20 @@  discard block
 block discarded – undo
95 95
                     and receive future alerts. Thanks.
96 96
                 </p>
97 97
 
98
-              <?php } elseif ( $results == 'alert-exists' ) { ?>
98
+              <?php } elseif ($results == 'alert-exists') { ?>
99 99
                 <h3>You&rsquo;re already subscribed to that!</h3>
100 100
                 <p>
101 101
                     It&rsquo;s good to know you&rsquo;re keen though.
102 102
                 </p>
103 103
 
104
-              <?php } elseif ( $results == 'alert-already-signed' ) { ?>
104
+              <?php } elseif ($results == 'alert-already-signed') { ?>
105 105
                 <h3>We&rsquo;re nearly done</h3>
106 106
                 <p>
107 107
                     You should receive an email shortly which will contain a link.
108 108
                     You will need to follow that link to confirm your email address to receive the alert. Thanks.
109 109
                 </p>
110 110
 
111
-              <?php } elseif ( $results == 'alert-fail' ) { ?>
111
+              <?php } elseif ($results == 'alert-fail') { ?>
112 112
                 <h3>Alert could not be created</h3>
113 113
                 <p>
114 114
                     Sorry, we were unable to create that alert. Please
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
       <?php } ?>
123 123
 
124 124
       <?php
125
-          if(
125
+          if (
126 126
               (isset($members) && $members->rows() > 0) ||
127 127
               (isset($constituencies) && count($constituencies) > 0) ||
128 128
               ($alertsearch)
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
                 <ul>
140 140
                   <?php
141 141
                     $q = $members;
142
-                    for ($n=0; $n<$q->rows(); $n++) {
142
+                    for ($n = 0; $n < $q->rows(); $n++) {
143 143
                   ?>
144 144
                     <li>
145 145
                         <form action="<?= $actionurl ?>" method="post">
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
                             <input type="hidden" name="email" value="<?= _htmlspecialchars($email) ?>">
148 148
                             <input type="hidden" name="pid" value="<?= $q->field($n, 'person_id') ?>">
149 149
                             When
150
-                            <?= member_full_name($q->field($n, 'house'), $q->field($n, 'title'), $q->field($n, 'given_name'), $q->field($n, 'family_name'), $q->field($n, 'lordofname') ) ?>
150
+                            <?= member_full_name($q->field($n, 'house'), $q->field($n, 'title'), $q->field($n, 'given_name'), $q->field($n, 'family_name'), $q->field($n, 'lordofname')) ?>
151 151
                             <?php if ($q->field($n, 'constituency')) { ?>
152 152
                                 (<?= $q->field($n, 'constituency') ?>)
153 153
                             <?php } ?>
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
               <?php } ?>
179 179
 
180 180
               <?php if ($alertsearch) {
181
-                if ( $member_options ) { ?>
181
+                if ($member_options) { ?>
182 182
                 <h3>Sign up for alerts for topics</h3>
183 183
                 <?php } else { ?>
184 184
                 <h3>Great! Can you just confirm what you mean?</h3>
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
                             Receive alerts when <?= _htmlspecialchars($alertsearch_pretty) ?>
193 193
                             <input type="submit" class="button small" value="Subscribe">
194 194
                         </form>
195
-                      <?php if ( isset($mistakes['multiple']) ) { ?>
195
+                      <?php if (isset($mistakes['multiple'])) { ?>
196 196
                         <em class="error">
197 197
                             You have used a comma in your search term &ndash;
198 198
                             are you sure this is what you want? You cannot
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
                             for each individual term.
202 202
                         </em>
203 203
                       <?php } ?>
204
-                      <?php if ( isset($mistakes['postcode_and']) ) { ?>
204
+                      <?php if (isset($mistakes['postcode_and'])) { ?>
205 205
                         <em class="error">
206 206
                             You have used a postcode and something else in your
207 207
                             search term &ndash; are you sure this is what you
@@ -350,17 +350,17 @@  discard block
 block discarded – undo
350 350
             <div class="alert-section__secondary">
351 351
               <?php if ($email_verified) { ?>
352 352
 
353
-                  <?php if ( $alerts ) { ?>
353
+                  <?php if ($alerts) { ?>
354 354
                     <h3>Your current email alerts</h3>
355 355
                     <ul class="alerts-manage__list">
356
-                      <?php foreach ( $alerts as $alert ) { ?>
356
+                      <?php foreach ($alerts as $alert) { ?>
357 357
                         <li>
358 358
                             When <?= _htmlspecialchars($alert['criteria']) ?>.
359 359
                             <form action="<?= $actionurl ?>" method="POST">
360 360
                                 <input type="hidden" name="t" value="<?= _htmlspecialchars($alert['token']) ?>">
361
-                              <?php if ( $alert['status'] == 'unconfirmed' ) { ?>
361
+                              <?php if ($alert['status'] == 'unconfirmed') { ?>
362 362
                                 <input type="submit" class="button small" name="action" value="Confirm">
363
-                              <?php } elseif ( $alert['status'] == 'suspended' ) { ?>
363
+                              <?php } elseif ($alert['status'] == 'suspended') { ?>
364 364
                                 <input type="submit" class="button small" name="action" value="Resume">
365 365
                               <?php } else { ?>
366 366
                                 <input type="submit" class="button button--secondary small" name="action" value="Suspend">
@@ -372,7 +372,7 @@  discard block
 block discarded – undo
372 372
                     </ul>
373 373
                   <?php } ?>
374 374
 
375
-                  <?php if ( $current_mp ) { ?>
375
+                  <?php if ($current_mp) { ?>
376 376
                     <h3>Your MP alert</h3>
377 377
                     <ul class="alerts-manage__list">
378 378
                         <li>
Please login to merge, or discard this patch.
Braces   +34 added lines, -17 removed lines patch added patch discarded remove patch
@@ -45,26 +45,30 @@  discard block
 block discarded – undo
45 45
                 </div>
46 46
                 </noscript>
47 47
 
48
-              <?php } elseif ( $results == 'alert-suspended' ) { ?>
48
+              <?php }
49
+elseif ( $results == 'alert-suspended' ) { ?>
49 50
                 <h3>Alert suspended</h3>
50 51
                 <p>
51 52
                     You can reactivate the alert at any time, from the sidebar below.
52 53
                 </p>
53 54
 
54
-              <?php } elseif ( $results == 'alert-resumed' ) { ?>
55
+              <?php }
56
+elseif ( $results == 'alert-resumed' ) { ?>
55 57
                 <h3>Alert resumed</h3>
56 58
                 <p>
57 59
                     You will now receive email alerts on any day when there
58 60
                     are entries in Hansard that match your criteria.
59 61
                 </p>
60 62
 
61
-              <?php } elseif ( $results == 'alert-deleted' ) { ?>
63
+              <?php }
64
+elseif ( $results == 'alert-deleted' ) { ?>
62 65
                 <h3>Alert deleted</h3>
63 66
                 <p>
64 67
                     You will no longer receive this alert.
65 68
                 </p>
66 69
 
67
-              <?php } elseif ( $results == 'alert-fail' ) { ?>
70
+              <?php }
71
+elseif ( $results == 'alert-fail' ) { ?>
68 72
                 <h3>Hmmm, something&rsquo;s not right</h3>
69 73
                 <p>
70 74
                     The link you followed to reach this page appears to be incomplete.
@@ -80,14 +84,16 @@  discard block
 block discarded – undo
80 84
                     and let us know, and we'll help out!
81 85
                 </p>
82 86
 
83
-              <?php } elseif ( $results == 'alert-added' ) { ?>
87
+              <?php }
88
+elseif ( $results == 'alert-added' ) { ?>
84 89
                 <h3>Your alert has been added</h3>
85 90
                 <p>
86 91
                     You will now receive email alerts on any day when
87 92
                     <?= _htmlspecialchars($criteria) ?> in parliament.
88 93
                 </p>
89 94
 
90
-              <?php } elseif ( $results == 'alert-confirmation' ) { ?>
95
+              <?php }
96
+elseif ( $results == 'alert-confirmation' ) { ?>
91 97
                 <h3>We&rsquo;re nearly done&hellip;</h3>
92 98
                 <p>
93 99
                     You should receive an email shortly which will contain a link.
@@ -95,20 +101,23 @@  discard block
 block discarded – undo
95 101
                     and receive future alerts. Thanks.
96 102
                 </p>
97 103
 
98
-              <?php } elseif ( $results == 'alert-exists' ) { ?>
104
+              <?php }
105
+elseif ( $results == 'alert-exists' ) { ?>
99 106
                 <h3>You&rsquo;re already subscribed to that!</h3>
100 107
                 <p>
101 108
                     It&rsquo;s good to know you&rsquo;re keen though.
102 109
                 </p>
103 110
 
104
-              <?php } elseif ( $results == 'alert-already-signed' ) { ?>
111
+              <?php }
112
+elseif ( $results == 'alert-already-signed' ) { ?>
105 113
                 <h3>We&rsquo;re nearly done</h3>
106 114
                 <p>
107 115
                     You should receive an email shortly which will contain a link.
108 116
                     You will need to follow that link to confirm your email address to receive the alert. Thanks.
109 117
                 </p>
110 118
 
111
-              <?php } elseif ( $results == 'alert-fail' ) { ?>
119
+              <?php }
120
+elseif ( $results == 'alert-fail' ) { ?>
112 121
                 <h3>Alert could not be created</h3>
113 122
                 <p>
114 123
                     Sorry, we were unable to create that alert. Please
@@ -180,7 +189,8 @@  discard block
 block discarded – undo
180 189
               <?php if ($alertsearch) {
181 190
                 if ( $member_options ) { ?>
182 191
                 <h3>Sign up for alerts for topics</h3>
183
-                <?php } else { ?>
192
+                <?php }
193
+else { ?>
184 194
                 <h3>Great! Can you just confirm what you mean?</h3>
185 195
                 <?php } ?>
186 196
                 <ul>
@@ -255,11 +265,13 @@  discard block
 block discarded – undo
255 265
                     (<?= _htmlspecialchars($pid_member->constituency()) ?>)
256 266
                     speaks.
257 267
                 </h3>
258
-              <?php } elseif ($keyword) { ?>
268
+              <?php }
269
+elseif ($keyword) { ?>
259 270
                 <h3>
260 271
                     Sign up for an alert when <?= _htmlspecialchars($display_keyword) ?>.
261 272
                 </h3>
262
-              <?php } else { ?>
273
+              <?php }
274
+else { ?>
263 275
                 <h3>Request a new TheyWorkForYou email alert</h3>
264 276
               <?php } ?>
265 277
 
@@ -277,9 +289,11 @@  discard block
 block discarded – undo
277 289
                       <?php if ($pid) { ?>
278 290
                         <input type="text" class="form-control" name="alertsearch" id="alertsearch" disabled="disabled"
279 291
                             value="<?= $pid_member->full_name() ?> (<?= _htmlspecialchars($pid_member->constituency()) ?>)">
280
-                      <?php } elseif ($keyword) { ?>
292
+                      <?php }
293
+elseif ($keyword) { ?>
281 294
                         <input type="text" class="form-control" name="alertsearch" id="alertsearch" disabled="disabled" value="<?= _htmlspecialchars($display_keyword) ?>">
282
-                      <?php } else { ?>
295
+                      <?php }
296
+else { ?>
283 297
                         <input type="text" class="form-control" placeholder="Search term, postcode, or MP name" name="alertsearch" id="alertsearch" value="<?= _htmlentities($search_text) ?>">
284 298
                       <?php } ?>
285 299
                         <input type="submit" class="button" value="<?= ($pid || $keyword) ? 'Subscribe' : 'Search' ?>">
@@ -360,9 +374,11 @@  discard block
 block discarded – undo
360 374
                                 <input type="hidden" name="t" value="<?= _htmlspecialchars($alert['token']) ?>">
361 375
                               <?php if ( $alert['status'] == 'unconfirmed' ) { ?>
362 376
                                 <input type="submit" class="button small" name="action" value="Confirm">
363
-                              <?php } elseif ( $alert['status'] == 'suspended' ) { ?>
377
+                              <?php }
378
+elseif ( $alert['status'] == 'suspended' ) { ?>
364 379
                                 <input type="submit" class="button small" name="action" value="Resume">
365
-                              <?php } else { ?>
380
+                              <?php }
381
+else { ?>
366 382
                                 <input type="submit" class="button button--secondary small" name="action" value="Suspend">
367 383
                                 <input type="submit" class="button button--negative small" name="action" value="Delete">
368 384
                               <?php } ?>
@@ -387,7 +403,8 @@  discard block
 block discarded – undo
387 403
                     </ul>
388 404
                   <?php } ?>
389 405
 
390
-              <?php } else { ?>
406
+              <?php }
407
+else { ?>
391 408
                 <p>
392 409
                     If you <a href="/user/?pg=join">join</a> or
393 410
                     <a href="/user/login/?ret=%2Falert%2F">sign in</a>,
Please login to merge, or discard this patch.
www/includes/easyparliament/templates/html/homepage/featured.php 2 patches
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@  discard block
 block discarded – undo
1
-                        <?php if ( $featured['featured'] ) { ?>
1
+                        <?php if ($featured['featured']) { ?>
2 2
                         <h2>In the news</h2>
3
-                        <?php if ( isset($featured['headline']) ) { ?>
3
+                        <?php if (isset($featured['headline'])) { ?>
4 4
                         <h3 class="in-the-news__topic"><a href="<?= $featured['list_url'] ?>"><?= $featured['headline'] ?></a></h3>
5
-                        <?php if ( isset($featured['context']) ) { ?>
5
+                        <?php if (isset($featured['context'])) { ?>
6 6
                         <p class="in-the-news__context"><?= $featured['context'] ?></p>
7 7
                         <?php } ?>
8 8
                         <?php } ?>
@@ -15,21 +15,21 @@  discard block
 block discarded – undo
15 15
                             <p class="meta excerpt__category"><a href="<?= $featured['more_url'] ?>"><?= $featured['desc'] ?></a></p>
16 16
                             <p class="excerpt__statement">
17 17
                                 <q>
18
-                                <?php if ( $featured['child']['speaker'] ) { ?>
18
+                                <?php if ($featured['child']['speaker']) { ?>
19 19
                                 <a href="<?= $featured['child']['speaker']['url'] ?>"><?= $featured['child']['speaker']['name'] ?></a> :
20 20
                                 <?php } ?>
21 21
                                 <?= trim_characters($featured['child']['body'], 0, 200) ?>
22 22
                                 </q>
23 23
                             </p>
24 24
                         </div>
25
-                        <?php if ( count($featured['related']) ) { ?>
25
+                        <?php if (count($featured['related'])) { ?>
26 26
                         <div class="in-the-news__key-events">
27 27
                             <!-- No maximum, but less than 4 looks best -->
28 28
                             <ul class="key-events__list">
29 29
                                 <li>
30 30
                                     <h4>Key events</h4>
31 31
                                 </li>
32
-                                <?php foreach ( $featured['related'] as $related ) { ?>
32
+                                <?php foreach ($featured['related'] as $related) { ?>
33 33
                                  <li>
34 34
                                      <a href="<?= $related['list_url'] ?>"><?= $related['parent']['body'] ?></a>
35 35
                                     <p class="meta"><?= format_date($related['hdate'], SHORTDATEFORMAT) ?></p>
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,8 @@
 block discarded – undo
6 6
                         <p class="in-the-news__context"><?= $featured['context'] ?></p>
7 7
                         <?php } ?>
8 8
                         <?php } ?>
9
-                        <?php } else { ?>
9
+                        <?php }
10
+else { ?>
10 11
                         <h2>Random debate</h2>
11 12
                         <?php } ?>
12 13
                         <div class="parliamentary-excerpt">
Please login to merge, or discard this patch.