Passed
Pull Request — master (#1700)
by Struan
04:54
created
www/includes/easyparliament/templates/html/mp/_vote_footer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -3,9 +3,9 @@
 block discarded – undo
3 3
 
4 4
     <p><?= gettext('For an explanation of the vote descriptions please see our page about <a href="/voting-information">voting information on TheyWorkForYou</a>.') ?></p>
5 5
 
6
-  <?php if(isset($data['photo_attribution_text'])) { ?>
6
+  <?php if (isset($data['photo_attribution_text'])) { ?>
7 7
     <p>
8
-      <?php if(isset($data['photo_attribution_link'])) { ?>
8
+      <?php if (isset($data['photo_attribution_link'])) { ?>
9 9
         <?= gettext('Profile photo:') ?>
10 10
         <a href="<?= $data['photo_attribution_link'] ?>"><?= $data['photo_attribution_text'] ?></a>
11 11
       <?php } else { ?>
Please login to merge, or discard this patch.
www/includes/easyparliament/templates/html/divisions/_vote_summary.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
1 1
 <p>
2 2
     <a href="#for"><?= sprintf(gettext('%s for'), $division['for']) ?></a>,
3 3
     <a href="#against"><?= sprintf(gettext('%s against'), $division['against']) ?></a><?php
4
-  if ($division['both'] > 0) { ?>,
4
+    if ($division['both'] > 0) { ?>,
5 5
     <a href="#both"><?= sprintf(gettext('%s abstained'), $division['both']) ?></a><?php
6
-  }
7
-  if ($division['absent'] > 0) { ?>,
6
+    }
7
+    if ($division['absent'] > 0) { ?>,
8 8
     <a href="#absent"><?= sprintf(gettext('%s absent'), $division['absent']) ?></a><?php
9
-  } ?>.
9
+    } ?>.
10 10
 </p>
Please login to merge, or discard this patch.
www/includes/easyparliament/templates/html/divisions/_name_vote_list.php 2 patches
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -1,15 +1,15 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 if (!function_exists('print_voter')) {
4
-  function print_voter($vote){
4
+    function print_voter($vote){
5 5
     echo sprintf(
6
-      '<li><a href="/mp/?p=%d">%s</a> <span class="party">%s%s</span></li>',
7
-      $vote['person_id'],
8
-      $vote['name'],
9
-      $vote['party'],
10
-      $vote['proxy'] ? " (proxy vote cast by $vote[proxy])" : ''
6
+        '<li><a href="/mp/?p=%d">%s</a> <span class="party">%s%s</span></li>',
7
+        $vote['person_id'],
8
+        $vote['name'],
9
+        $vote['party'],
10
+        $vote['proxy'] ? " (proxy vote cast by $vote[proxy])" : ''
11 11
     );
12
-  }
12
+    }
13 13
 }
14 14
 
15 15
 if (count($votes) > 0) { ?>
@@ -18,18 +18,18 @@  discard block
 block discarded – undo
18 18
       <?php $tellers = array(); ?>
19 19
       <ul class="division-names js-vote-accordion" data-show-all="<?= gettext('Show All') ?>">
20 20
         <?php foreach ($votes as $vote) {
21
-          if ($vote['teller']) {
22
-              $tellers[] = $vote;
23
-          } else {
21
+            if ($vote['teller']) {
22
+                $tellers[] = $vote;
23
+            } else {
24 24
             print_voter($vote);
25
-          }
25
+            }
26 26
         } ?>
27 27
       </ul>
28 28
     <?php if (count($tellers) > 0) { ?>
29 29
       <h4><?= gettext('Tellers') ?></h4>
30 30
       <ul class="division-names">
31 31
         <?php foreach($tellers as $teller) {
32
-          print_voter($teller);
32
+            print_voter($teller);
33 33
         } ?>
34 34
       </p>
35 35
     <?php } ?>
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 if (!function_exists('print_voter')) {
4
-  function print_voter($vote){
4
+  function print_voter($vote) {
5 5
     echo sprintf(
6 6
       '<li><a href="/mp/?p=%d">%s</a> <span class="party">%s%s</span></li>',
7 7
       $vote['person_id'],
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
     <?php if (count($tellers) > 0) { ?>
29 29
       <h4><?= gettext('Tellers') ?></h4>
30 30
       <ul class="division-names">
31
-        <?php foreach($tellers as $teller) {
31
+        <?php foreach ($tellers as $teller) {
32 32
           print_voter($teller);
33 33
         } ?>
34 34
       </p>
Please login to merge, or discard this patch.
www/includes/easyparliament/init.php 1 patch
Spacing   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@  discard block
 block discarded – undo
4 4
 First some things to help make our PHP nicer and betterer
5 5
 ********************************************************************************/
6 6
 
7
-error_reporting (E_ALL);
7
+error_reporting(E_ALL);
8 8
 
9 9
 /********************************************************************************
10 10
 Now some constants that are the same for live and dev versions
@@ -12,21 +12,21 @@  discard block
 block discarded – undo
12 12
 ********************************************************************************/
13 13
 
14 14
 // In case we need to switch these off globally at some point...
15
-define ("ALLOWCOMMENTS", true);
15
+define("ALLOWCOMMENTS", true);
16 16
 
17 17
 // These variables are so we can keep date/time formats consistent across the site
18 18
 // and change them easily.
19 19
 // Formats here: http://www.php.net/manual/en/function.date.php
20
-define ("LONGERDATEFORMAT",		"%A, %e %B %Y");// Monday, 31 December 2003
21
-define ("LONGDATEFORMAT", 		"%e %B %Y"); 	// 31 December 2003
22
-define ("SHORTDATEFORMAT", 		"%e %b %Y");	// 31 Dec 2003
23
-define ("TIMEFORMAT", 			"%l:%M %p");	// 11:59 pm
20
+define("LONGERDATEFORMAT", "%A, %e %B %Y"); // Monday, 31 December 2003
21
+define("LONGDATEFORMAT", "%e %B %Y"); // 31 December 2003
22
+define("SHORTDATEFORMAT", "%e %b %Y"); // 31 Dec 2003
23
+define("TIMEFORMAT", "%l:%M %p"); // 11:59 pm
24 24
 
25
-define ("SHORTDATEFORMAT_SQL",	"%e %b %Y"); // 31 Dec 2003
26
-define ("TIMEFORMAT_SQL", 		"%l:%i %p"); // 11:59 PM
25
+define("SHORTDATEFORMAT_SQL", "%e %b %Y"); // 31 Dec 2003
26
+define("TIMEFORMAT_SQL", "%l:%i %p"); // 11:59 PM
27 27
 
28 28
 // Where we store the postcode of users if they search for an MP by postcode.
29
-define ('POSTCODE_COOKIE', 		'eppc');
29
+define('POSTCODE_COOKIE', 'eppc');
30 30
 
31 31
 /********************************************************************************
32 32
 And now all the files we'll include on every page.
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
 textdomain('TheyWorkForYou');
53 53
 
54 54
 // Set the default timezone
55
-if(function_exists('date_default_timezone_set')) {
55
+if (function_exists('date_default_timezone_set')) {
56 56
     date_default_timezone_set(TIMEZONE);
57 57
 }
58 58
 
@@ -83,39 +83,39 @@  discard block
 block discarded – undo
83 83
 
84 84
 // The time the page starts, so we can display the total at the end.
85 85
 // getmicrotime() is in utiltity.php.
86
-define ("STARTTIME", getmicrotime());
86
+define("STARTTIME", getmicrotime());
87 87
 if (!isset($_SERVER['WINDIR'])) {
88 88
     $rusage = getrusage();
89
-    define ('STARTTIMES', $rusage['ru_stime.tv_sec']*1000000 + $rusage['ru_stime.tv_usec']);
90
-    define ('STARTTIMEU', $rusage['ru_utime.tv_sec']*1000000 + $rusage['ru_utime.tv_usec']);
89
+    define('STARTTIMES', $rusage['ru_stime.tv_sec'] * 1000000 + $rusage['ru_stime.tv_usec']);
90
+    define('STARTTIMEU', $rusage['ru_utime.tv_sec'] * 1000000 + $rusage['ru_utime.tv_usec']);
91 91
 }
92 92
 
93 93
 $DATA = new \MySociety\TheyWorkForYou\Data;
94 94
 
95 95
 class ParlDB extends \MySociety\TheyWorkForYou\Db\Connection {
96 96
     public function __construct() {
97
-        $this->init (OPTION_TWFY_DB_HOST, OPTION_TWFY_DB_USER, OPTION_TWFY_DB_PASS, OPTION_TWFY_DB_NAME);
97
+        $this->init(OPTION_TWFY_DB_HOST, OPTION_TWFY_DB_USER, OPTION_TWFY_DB_PASS, OPTION_TWFY_DB_NAME);
98 98
     }
99 99
 }
100 100
 
101 101
 $filter = new \MySociety\TheyWorkForYou\Utility\LibFilter;
102 102
 
103
-include_once (INCLUDESPATH."easyparliament/user.php");
103
+include_once (INCLUDESPATH . "easyparliament/user.php");
104 104
 
105 105
 // Test to see if this is a new-style template using the renderer class.
106
-if (! isset($new_style_template) or $new_style_template !== true) {
106
+if (!isset($new_style_template) or $new_style_template !== true) {
107 107
 
108 108
     // This is an old-style page. Use the old page classes.
109
-    include_once (INCLUDESPATH."easyparliament/page.php");
109
+    include_once (INCLUDESPATH . "easyparliament/page.php");
110 110
 
111 111
 }
112 112
 
113
-include_once (INCLUDESPATH."easyparliament/hansardlist.php");
114
-include_once (INCLUDESPATH."dbtypes.php");
115
-include_once (INCLUDESPATH."easyparliament/commentlist.php");
116
-include_once (INCLUDESPATH."easyparliament/comment.php");
113
+include_once (INCLUDESPATH . "easyparliament/hansardlist.php");
114
+include_once (INCLUDESPATH . "dbtypes.php");
115
+include_once (INCLUDESPATH . "easyparliament/commentlist.php");
116
+include_once (INCLUDESPATH . "easyparliament/comment.php");
117 117
 
118 118
 // Added in as new module by Richard Allan MP
119
-include_once (INCLUDESPATH."easyparliament/alert.php");
119
+include_once (INCLUDESPATH . "easyparliament/alert.php");
120 120
 
121 121
 twfy_debug_timestamp("at end of init.php");
Please login to merge, or discard this patch.
classes/People.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
         $data = $this->_get_data_by_group($args);
37 37
 
38 38
         $user = new User();
39
-        if ( $reps = $this->getRegionalReps($user) ) {
39
+        if ($reps = $this->getRegionalReps($user)) {
40 40
             $data['reps'] = $reps;
41 41
         }
42 42
 
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
             $args['all'] = true;
72 72
         }
73 73
 
74
-        if ( $this->type == 'peers' ) {
74
+        if ($this->type == 'peers') {
75 75
             $args['order'] = 'name';
76 76
         }
77 77
 
@@ -131,8 +131,8 @@  discard block
 block discarded – undo
131 131
 
132 132
     private function addImagesToData($data) {
133 133
         $new_data = array();
134
-        foreach ( $data as $pid => $details ) {
135
-            list($image, ) = Utility\Member::findMemberImage($pid, true, $this->subs_missing_image);
134
+        foreach ($data as $pid => $details) {
135
+            list($image,) = Utility\Member::findMemberImage($pid, true, $this->subs_missing_image);
136 136
             $details['image'] = $image;
137 137
             $new_data[$pid] = $details;
138 138
         }
@@ -149,21 +149,21 @@  discard block
 block discarded – undo
149 149
 
150 150
         $urls['plain'] = $URL->generate();
151 151
 
152
-        $URL->insert(array( 'o' => 'n'));
152
+        $URL->insert(array('o' => 'n'));
153 153
         $urls['by_name'] = $URL->generate();
154 154
 
155
-        $URL->insert(array( 'o' => 'l'));
155
+        $URL->insert(array('o' => 'l'));
156 156
         $urls['by_last'] = $URL->generate();
157 157
 
158
-        $URL->insert(array( 'o' => 'f'));
158
+        $URL->insert(array('o' => 'f'));
159 159
         $urls['by_first'] = $URL->generate();
160 160
 
161
-        $URL->insert(array( 'o' => 'p'));
161
+        $URL->insert(array('o' => 'p'));
162 162
         $urls['by_party'] = $URL->generate();
163 163
 
164
-        $URL->insert(array( 'f' => 'csv'));
165
-        $URL->remove(array( 'o'));
166
-        if ( $date = get_http_var('date') ) {
164
+        $URL->insert(array('f' => 'csv'));
165
+        $URL->remove(array('o'));
166
+        if ($date = get_http_var('date')) {
167 167
             $URL->insert(array('date' => $date));
168 168
         }
169 169
         $urls['by_csv'] = $URL->generate();
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
                 $name = member_full_name($this->house, $row['title'], $row['given_name'], $row['family_name'], $row['lordofname']);
214 214
                 $constituency = gettext($row['constituency']);
215 215
                 $url = make_member_url($name, $constituency, $this->house, $p_id);
216
-                $narray = array (
216
+                $narray = array(
217 217
                     'person_id' 	=> $p_id,
218 218
                     'given_name' => $row['given_name'],
219 219
                     'family_name' => $row['family_name'],
@@ -231,8 +231,8 @@  discard block
 block discarded – undo
231 231
             uasort($data, 'by_peer_name');
232 232
         }
233 233
 
234
-        $data = array (
235
-            'info' => array (
234
+        $data = array(
235
+            'info' => array(
236 236
                 'order' => $order
237 237
             ),
238 238
             'data' => $data
Please login to merge, or discard this patch.
classes/AlertView/Standard.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
                 try {
181 181
                     $MEMBER = new \MEMBER(array('constituency'=>$constituency, 'house' => 1));
182 182
                     $cons[$constituency] = $MEMBER;
183
-                } catch ( \MySociety\TheyWorkForYou\MemberException $e ) {
183
+                } catch (\MySociety\TheyWorkForYou\MemberException $e) {
184 184
                     // do nothing
185 185
                 }
186 186
             }
@@ -200,17 +200,17 @@  discard block
 block discarded – undo
200 200
 
201 201
         // If this goes well, the alert will be added to the database and a confirmation email
202 202
         // will be sent to them.
203
-        $success = $this->alert->add( $this->data, $confirm );
203
+        $success = $this->alert->add($this->data, $confirm);
204 204
 
205
-        if ($success>0 && !$confirm) {
205
+        if ($success > 0 && !$confirm) {
206 206
             $result = 'alert-added';
207
-        } elseif ($success>0) {
207
+        } elseif ($success > 0) {
208 208
             $result = 'alert-confirmation';
209 209
         } elseif ($success == -2) {
210 210
             // we need to make sure we know that the person attempting to sign up
211 211
             // for the alert has that email address to stop people trying to work
212 212
             // out what alerts they are signed up to
213
-            if ( $this->data['email_verified'] || ( $this->user->loggedin && $this->user->email() == $this->data['email'] ) ) {
213
+            if ($this->data['email_verified'] || ($this->user->loggedin && $this->user->email() == $this->data['email'])) {
214 214
                 $result = 'alert-exists';
215 215
             } else {
216 216
                 // don't throw an error message as that implies that they have already signed
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
 
236 236
 
237 237
     private function formatSearchTerms() {
238
-        if ( $this->data['alertsearch'] ) {
238
+        if ($this->data['alertsearch']) {
239 239
             $this->data['alertsearch_pretty'] = \MySociety\TheyWorkForYou\Utility\Alert::prettifyCriteria($this->data['alertsearch']);
240 240
             $this->data['search_text'] = $this->data['alertsearch'];
241 241
         } else {
@@ -262,11 +262,11 @@  discard block
 block discarded – undo
262 262
     }
263 263
 
264 264
     private function formatSearchMemberData() {
265
-        if ( isset($this->data['postcode']) ) {
265
+        if (isset($this->data['postcode'])) {
266 266
             try {
267 267
                 $postcode = $this->data['postcode'];
268 268
 
269
-                $MEMBER = new \MEMBER( array('postcode' => $postcode) );
269
+                $MEMBER = new \MEMBER(array('postcode' => $postcode));
270 270
                 // move the postcode to the front just to be tidy
271 271
                 $tidy_alertsearch = $postcode . " " . trim(str_replace("$postcode", "", $this->data['alertsearch']));
272 272
                 $alertsearch_display = str_replace("$postcode ", "", $tidy_alertsearch);
@@ -275,29 +275,29 @@  discard block
 block discarded – undo
275 275
                 $this->data['member_displaysearch'] = $alertsearch_display;
276 276
                 $this->data['member'] = $MEMBER;
277 277
 
278
-                if ( isset($this->data['mistakes']['postcode_and']) ) {
278
+                if (isset($this->data['mistakes']['postcode_and'])) {
279 279
                     $constituencies = \MySociety\TheyWorkForYou\Utility\Postcode::postcodeToConstituencies($postcode);
280
-                    if ( isset($constituencies['SPC']) ) {
280
+                    if (isset($constituencies['SPC'])) {
281 281
                         $MEMBER = new \MEMBER(array('constituency' => $constituencies['SPC'], 'house' => HOUSE_TYPE_SCOTLAND));
282 282
                         $this->data['scottish_alertsearch'] = str_replace("$postcode", "speaker:" . $MEMBER->person_id, $tidy_alertsearch);
283 283
                         $this->data['scottish_member'] = $MEMBER;
284
-                    } elseif ( isset($constituencies['WAC']) ) {
284
+                    } elseif (isset($constituencies['WAC'])) {
285 285
                         $MEMBER = new \MEMBER(array('constituency' => $constituencies['WAC'], 'house' => HOUSE_TYPE_WALES));
286 286
                         $this->data['welsh_alertsearch'] = str_replace("$postcode", "speaker:" . $MEMBER->person_id, $tidy_alertsearch);
287 287
                         $this->data['welsh_member'] = $MEMBER;
288 288
                     }
289 289
                 }
290
-            } catch ( \MySociety\TheyWorkForYou\MemberException $e ) {
290
+            } catch (\MySociety\TheyWorkForYou\MemberException $e) {
291 291
                 $this->data['member_error'] = 1;
292 292
             }
293 293
         }
294 294
 
295
-        if ( $this->data['pid'] ) {
296
-            $MEMBER = new \MEMBER( array('person_id' => $this->data['pid']) );
295
+        if ($this->data['pid']) {
296
+            $MEMBER = new \MEMBER(array('person_id' => $this->data['pid']));
297 297
             $this->data['pid_member'] = $MEMBER;
298 298
         }
299 299
 
300
-        if ( $this->data['keyword'] ) {
300
+        if ($this->data['keyword']) {
301 301
             $this->data['display_keyword'] = \MySociety\TheyWorkForYou\Utility\Alert::prettifyCriteria($this->data['keyword']);
302 302
         }
303 303
     }
Please login to merge, or discard this patch.
classes/SectionView/SeneddView.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 
41 41
     protected function getSearchSections() {
42 42
         return array(
43
-            array( 'section' => 'wales' )
43
+            array('section' => 'wales')
44 44
         );
45 45
     }
46 46
 
@@ -59,23 +59,23 @@  discard block
 block discarded – undo
59 59
 
60 60
         $debates = $DEBATELIST->display('recent_debates', array('days' => 30, 'num' => 6), 'none');
61 61
         $MOREURL = new \MySociety\TheyWorkForYou\Url('senedddebatesfront');
62
-        $MOREURL->insert( array( 'more' => 1 ) );
62
+        $MOREURL->insert(array('more' => 1));
63 63
 
64 64
         // this makes sure that we don't repeat this debate in the list below
65 65
         $random_debate = null;
66
-        if ( isset($debates['data']) && count($debates['data']) ) {
66
+        if (isset($debates['data']) && count($debates['data'])) {
67 67
             $random_debate = $debates['data'][0];
68 68
         }
69 69
 
70 70
         $recent = array();
71
-        if ( isset($debates['data']) && count($debates['data']) ) {
71
+        if (isset($debates['data']) && count($debates['data'])) {
72 72
             // at the start of a session there may be less than 6
73 73
             // debates
74 74
             $max = 6;
75
-            if ( count($debates['data']) < 6 ) {
75
+            if (count($debates['data']) < 6) {
76 76
                 $max = count($debates['data']);
77 77
             }
78
-            for ( $i = 1; $i < $max; $i++ ) {
78
+            for ($i = 1; $i < $max; $i++) {
79 79
                 $debate = $debates['data'][$i];
80 80
                 $debate['desc'] = "Senedd";
81 81
                 $debate['more_url'] = $MOREURL->generate();
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
         }
85 85
 
86 86
         $featured = array();
87
-        if ( $random_debate ) {
87
+        if ($random_debate) {
88 88
             $featured = $random_debate;
89 89
             $featured['more_url'] = $MOREURL->generate();
90 90
             $featured['desc'] = 'Senedd';
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
         }
94 94
 
95 95
         $data['featured'] = $featured;
96
-        $data['debates'] = array( 'recent' => $recent);
96
+        $data['debates'] = array('recent' => $recent);
97 97
 
98 98
         $data['regional'] = $this->getMSList();
99 99
         $data['template'] = 'senedd/index';
Please login to merge, or discard this patch.
www/includes/easyparliament/metadata.php 1 patch
Spacing   +257 added lines, -257 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,122 +78,122 @@  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 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',
195 195
     ),
196
-    'admin_wikipedia' => array (
196
+    'admin_wikipedia' => array(
197 197
         'title' => 'Wikipedia links',
198 198
         'parent' => 'admin',
199 199
         'url' => 'admin/wikipedia.php',
@@ -201,8 +201,8 @@  discard block
 block discarded – undo
201 201
 
202 202
 // Added by Richard Allan for email alert functions
203 203
 
204
-    'alert' => array (
205
-        'menu'			=> array (
204
+    'alert' => array(
205
+        'menu'			=> array(
206 206
             'text'			=> 'Email Alerts',
207 207
             'title'			=> "Set up alerts for updates on an MP or Peer by email",
208 208
             'sidebar'		=> 'alert'
@@ -211,35 +211,35 @@  discard block
 block discarded – undo
211 211
         'title'			=> 'TheyWorkForYou Email Alerts',
212 212
         'url'			=> 'alert/',
213 213
     ),
214
-    'alertwelcome' => array (
214
+    'alertwelcome' => array(
215 215
         'title'			=> 'Email Alerts',
216 216
         'url'			=> 'alert/',
217 217
     ),
218 218
 
219 219
 // End of ALERTS additions
220 220
 
221
-    'api_front'		=> array (
222
-        'menu'			=> array (
221
+    'api_front'		=> array(
222
+        'menu'			=> array(
223 223
             'text'			=> 'API',
224 224
             'title'			=> 'Access our data'
225 225
         ),
226 226
         'title'			=> 'TheyWorkForYou API',
227 227
         'url'			=> 'api/'
228 228
     ),
229
-    'api_doc_front'		=> array (
230
-        'menu'			=> array (
229
+    'api_doc_front'		=> array(
230
+        'menu'			=> array(
231 231
             'text'			=> 'API',
232 232
             'title'			=> 'Access our data'
233 233
         ),
234 234
         'parent'		=> 'api_front',
235 235
         'url'			=> 'api/'
236 236
     ),
237
-    'api_key'		=> array (
237
+    'api_key'		=> array(
238 238
         'title'			=> 'Plan and keys',
239 239
         'parent'		=> 'api_front',
240 240
         'url'			=> 'api/key'
241 241
     ),
242
-    'api_invoices'		=> array (
242
+    'api_invoices'		=> array(
243 243
         'title'			=> 'Invoices',
244 244
         'parent'		=> 'api_front',
245 245
         'url'			=> 'api/invoices'
@@ -250,69 +250,69 @@  discard block
 block discarded – undo
250 250
         'url' => 'boundaries/',
251 251
     ),
252 252
 
253
-    'calendar_summary' => array (
254
-        'menu'			=> array (
253
+    'calendar_summary' => array(
254
+        'menu'			=> array(
255 255
             'text'			=> 'Upcoming',
256 256
             'title'			=> '',
257 257
         ),
258 258
         'parent'		=> 'hansard',
259 259
         'url'			=> 'calendar/'
260 260
     ),
261
-    'calendar_future_head' => array (
261
+    'calendar_future_head' => array(
262 262
         'parent'		=> 'calendar_summary',
263 263
         'title'			=> 'Upcoming business',
264 264
         'url'			=> 'calendar/'
265 265
     ),
266
-    'calendar_future' => array (
266
+    'calendar_future' => array(
267 267
         'parent'		=> 'calendar_future_head',
268 268
         'url'			=> 'calendar/'
269 269
     ),
270
-    'calendar_today_head' => array (
270
+    'calendar_today_head' => array(
271 271
         'parent'		=> 'calendar_summary',
272 272
         'title'			=> 'Today&rsquo;s business',
273 273
         'url'			=> 'calendar/'
274 274
     ),
275
-    'calendar_today' => array (
275
+    'calendar_today' => array(
276 276
         'parent'		=> 'calendar_today_head',
277 277
         'url'			=> 'calendar/'
278 278
     ),
279
-    'calendar_past_head' => array (
279
+    'calendar_past_head' => array(
280 280
         'parent'		=> 'calendar_summary',
281 281
         'title'			=> 'Previous business',
282 282
         'url'			=> 'calendar/'
283 283
     ),
284
-    'calendar_past' => array (
284
+    'calendar_past' => array(
285 285
         'parent'		=> 'calendar_past_head',
286 286
         'url'			=> 'calendar/'
287 287
     ),
288 288
 
289
-    'cards' => array (
289
+    'cards' => array(
290 290
         'title'			=> 'MP Stats Cards',
291 291
         'url'			=> 'cards/'
292 292
     ),
293 293
 
294
-    'campaign_foi' => array (
294
+    'campaign_foi' => array(
295 295
         'title'			=> 'Freedom of Information (Parliament) Order 2009',
296 296
         'url'			=> 'foiorder2009/'
297 297
     ),
298
-    'campaign' => array (
298
+    'campaign' => array(
299 299
         'title'			=> '', #Free Our Bills!',
300 300
         'url'			=> 'freeourbills/'
301 301
     ),
302
-    'campaign_edm' => array (
302
+    'campaign_edm' => array(
303 303
         'title'			=> 'Early Day Motion',
304 304
         'parent'		=> 'campaign',
305 305
         'url'			=> 'freeourbills/'
306 306
     ),
307 307
 
308
-    'commentreport' => array (
308
+    'commentreport' => array(
309 309
         'title'			=> 'Reporting a comment',
310 310
         'url'			=> 'report/',
311
-        'session_vars'	=> array ('id')
311
+        'session_vars'	=> array('id')
312 312
     ),
313 313
 
314
-    'comments_recent' => array (
315
-        'menu'			=> array (
314
+    'comments_recent' => array(
315
+        'menu'			=> array(
316 316
             'text'			=> 'Recent comments',
317 317
             'title'			=> "Recently posted comments"
318 318
         ),
@@ -321,8 +321,8 @@  discard block
 block discarded – undo
321 321
         'url'			=> 'comments/recent/'
322 322
     ),
323 323
 
324
-    'contact' => array (
325
-        'menu'			=> array (
324
+    'contact' => array(
325
+        'menu'			=> array(
326 326
             'text'			=> gettext('Contact'),
327 327
             'title'			=> '',
328 328
         ),
@@ -333,23 +333,23 @@  discard block
 block discarded – undo
333 333
         'title' => gettext('News'),
334 334
         'url' => 'https://www.mysociety.org/category/projects/theyworkforyou/'
335 335
     ),
336
-    'debate'  => array (
336
+    'debate'  => array(
337 337
         'parent'		=> 'debatesfront',
338 338
         'url'			=> 'debates/',
339
-        'session_vars'	=> array ('id'),
339
+        'session_vars'	=> array('id'),
340 340
     ),
341
-    'debates'  => array (
341
+    'debates'  => array(
342 342
         'parent'		=> 'debatesfront',
343 343
         'url'			=> 'debates/',
344
-        'session_vars'	=> array ('id'),
344
+        'session_vars'	=> array('id'),
345 345
     ),
346
-    'debatesday' => array (
346
+    'debatesday' => array(
347 347
         'parent'		=> 'debatesfront',
348
-        'session_vars'	=> array ('d'),
348
+        'session_vars'	=> array('d'),
349 349
         'url'			=> 'debates/',
350 350
     ),
351
-    'alldebatesfront' => array (
352
-        'menu'			=> array (
351
+    'alldebatesfront' => array(
352
+        'menu'			=> array(
353 353
             'text'			=> 'Debates',
354 354
             'title'			=> "Debates in the House of Commons, Westminster Hall, and the House of Lords"
355 355
         ),
@@ -358,8 +358,8 @@  discard block
 block discarded – undo
358 358
         'rss'			=> 'rss/debates.rss',
359 359
         'url'			=> 'debates/'
360 360
     ),
361
-    'debatesfront' => array (
362
-        'menu'			=> array (
361
+    'debatesfront' => array(
362
+        'menu'			=> array(
363 363
             'text'			=> 'Commons debates',
364 364
             'title'			=> "Debates in the House of Commons"
365 365
         ),
@@ -368,12 +368,12 @@  discard block
 block discarded – undo
368 368
         'rss'			=> 'rss/debates.rss',
369 369
         'url'			=> 'debates/'
370 370
     ),
371
-    'debatesyear' => array (
371
+    'debatesyear' => array(
372 372
         'parent'		=> 'debatesfront',
373 373
         'url'			=> 'debates/'
374 374
     ),
375
-    'divisions_recent' => array (
376
-        'menu'			=> array (
375
+    'divisions_recent' => array(
376
+        'menu'			=> array(
377 377
             'text'			=> 'Recent Votes',
378 378
             'title'			=> ''
379 379
         ),
@@ -381,13 +381,13 @@  discard block
 block discarded – undo
381 381
         'title'			=> 'Recent Votes',
382 382
         'url'			=> 'divisions/'
383 383
     ),
384
-    'divisions_vote' => array (
384
+    'divisions_vote' => array(
385 385
         'parent'		=> 'divisions_recent',
386 386
         'title'			=> 'Vote',
387 387
         'url'			=> 'divisions/division.php',
388 388
         'session_vars'	=> array('vote'),
389 389
     ),
390
-    'epvote' => array (
390
+    'epvote' => array(
391 391
         'url'			=> 'vote/'
392 392
     ),
393 393
 
@@ -396,19 +396,19 @@  discard block
 block discarded – undo
396 396
         'title'			=> 'TheyWorkForYou Google gadget',
397 397
     ),
398 398
 
399
-    'glossary' => array (
399
+    'glossary' => array(
400 400
         'heading'		=> 'Glossary',
401 401
         'parent'		=> 'help_us_out',
402 402
         'url'			=> 'glossary/'
403 403
     ),
404
-    'glossary_item' => array (
404
+    'glossary_item' => array(
405 405
         'heading'		=> 'Glossary heading',
406 406
         'parent'		=> 'help_us_out',
407 407
         'url'			=> 'glossary/',
408
-        'session_vars'	=> array ('g')
408
+        'session_vars'	=> array('g')
409 409
     ),
410
-    'hansard' => array (
411
-        'menu'			=> array (
410
+    'hansard' => array(
411
+        'menu'			=> array(
412 412
             'text'			=> 'UK Parliament',
413 413
             'title'			=> "Houses of Parliament debates, Written Answers, Statements, Westminster Hall debates, and Bill Committees"
414 414
         ),
@@ -416,16 +416,16 @@  discard block
 block discarded – undo
416 416
         'url'			=> ''
417 417
     ),
418 418
         // Hansard landing page
419
-        'hansard_landing' => array (
419
+        'hansard_landing' => array(
420 420
                 'title'                 => 'Hansard',
421 421
                 'url'                   => 'search-hansard/',
422 422
         ),
423
-    'help' => array (
423
+    'help' => array(
424 424
         'title'			=> gettext('Help - Frequently Asked Questions'),
425 425
         'url'			=> 'help/'
426 426
     ),
427
-    'help_us_out' => array (
428
-        'menu'			=> array (
427
+    'help_us_out' => array(
428
+        'menu'			=> array(
429 429
             'text'			=> 'Glossary',
430 430
             'title'			=> "Parliament's jargon explained"
431 431
         ),
@@ -434,77 +434,77 @@  discard block
 block discarded – undo
434 434
         'url'			=> 'addterm/',
435 435
         'sidebar'		=> 'glossary_add'
436 436
     ),
437
-    'home' => array (
437
+    'home' => array(
438 438
         'title'			=> "UK Parliament",
439 439
         'rss'			=> 'news/index.rdf',
440 440
         'url'			=> ''
441 441
     ),
442
-    'houserules' => array (
442
+    'houserules' => array(
443 443
         'title'			=> 'House rules',
444 444
         'url'			=> 'houserules/'
445 445
     ),
446 446
 
447
-    'linktous' => array (
447
+    'linktous' => array(
448 448
         'title'			=> gettext('Link to us'),
449 449
         'heading'		=> gettext('How to link to us'),
450 450
         'url'			=> 'help/linktous/'
451 451
     ),
452
-    'api' => array (
452
+    'api' => array(
453 453
         'title'			=> gettext('API'),
454 454
         'heading'		=> gettext('API - Query the TheyWorkForYou database'),
455 455
         'url'			=> 'api/'
456 456
     ),
457
-    'data' => array (
457
+    'data' => array(
458 458
         'title'			=> gettext('Raw Data'),
459 459
         'heading'		=> gettext('Raw data (XML) - the data behind TheyWorkForYou and Public Whip'),
460 460
         'url'			=> 'http://parser.theyworkforyou.com'
461 461
     ),
462
-    'devmailinglist' => array (
462
+    'devmailinglist' => array(
463 463
         'title'			=> gettext('Developer mailing list'),
464 464
         'url'			=> 'https://groups.google.com/a/mysociety.org/forum/#!forum/theyworkforyou'
465 465
     ),
466
-    'code' => array (
466
+    'code' => array(
467 467
         'title'			=> gettext('Source code'),
468 468
         'heading'		=> gettext('TheyWorkForYou Source code'),
469 469
         'url'			=> 'https://github.com/mysociety/theyworkforyou'
470 470
     ),
471
-    'irc' => array (
471
+    'irc' => array(
472 472
         'title'			=> 'IRC chat channel',
473 473
         'heading'		=> 'IRC chat channel',
474 474
         'url'			=> 'http://www.irc.mysociety.org/'
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,7 +644,7 @@  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
     ),
@@ -652,7 +652,7 @@  discard block
 block discarded – undo
652 652
     /* London Assembly */
653 653
 
654 654
     'london_home' => array(
655
-        'menu'          => array (
655
+        'menu'          => array(
656 656
             'text'      => 'London Assembly',
657 657
             'title'     => 'Members of the London Assembly, answers from the Mayor of London'
658 658
         ),
@@ -660,9 +660,9 @@  discard block
 block discarded – undo
660 660
         'url'           => 'london/'
661 661
     ),
662 662
 
663
-    'london-assembly-members' => array (
663
+    'london-assembly-members' => array(
664 664
         'parent'        => 'london_home',
665
-        'menu'          => array (
665
+        'menu'          => array(
666 666
             'text'      => 'London Assembly Members',
667 667
             'title'     => "List of Members of the London Assembly)"
668 668
         ),
@@ -670,48 +670,48 @@  discard block
 block discarded – undo
670 670
         'url'           => 'london-assembly-members/'
671 671
     ),
672 672
 
673
-    'london-assembly-member' => array (
673
+    'london-assembly-member' => array(
674 674
         'parent'        => 'london-assembly-members',
675 675
         'title'         => 'Find your London Assembly Member',
676 676
         'url'           => 'london-assembly-member/'
677 677
     ),
678 678
 
679
-    'lmqs' => array (
679
+    'lmqs' => array(
680 680
         'parent'		=> 'london_home',
681 681
         'url'			=> 'london/',
682
-        'session_vars'	=> array ('id')
682
+        'session_vars'	=> array('id')
683 683
     ),
684
-    'lmqsday'  => array (
684
+    'lmqsday'  => array(
685 685
         'parent'		=> 'london_home',
686 686
         'url'			=> 'london/',
687 687
     ),
688
-    'lmqsfront' => array (
688
+    'lmqsfront' => array(
689 689
         'parent'		=> 'london_home',
690
-        'menu'			=> array (
690
+        'menu'			=> array(
691 691
             'text'			=> 'Questions to the Mayor of London',
692 692
             'title'			=> "Questions to the Mayor of London"
693 693
         ),
694 694
         'title'			=> 'questions to the Mayor of London',
695 695
         'url'			=> 'london/',
696 696
     ),
697
-    'lmqsyear' => array (
697
+    'lmqsyear' => array(
698 698
         'parent'		=> 'london_home',
699 699
         'url'			=> 'london/',
700 700
     ),
701 701
 
702
-    'otheruseredit' => array (
702
+    'otheruseredit' => array(
703 703
         'pg'			=> 'editother',
704 704
         'title'			=> "Editing a user's data",
705 705
         'url'			=> 'user/'
706 706
     ),
707
-    'privacy' => array (
707
+    'privacy' => array(
708 708
         'title'			=> gettext('Privacy Policy'),
709 709
         'url'			=> 'privacy/'
710 710
     ),
711 711
 
712 712
     /* Public bill committees */
713
-    'pbc_front' => array (
714
-        'menu'			=> array (
713
+    'pbc_front' => array(
714
+        'menu'			=> array(
715 715
             'text'			=> 'Bill Committees',
716 716
             'title'			=> "Public Bill Committees (formerly Standing Committees) debates"
717 717
         ),
@@ -729,17 +729,17 @@  discard block
 block discarded – undo
729 729
         'title' => '',
730 730
         'url' => 'pbc/',
731 731
         'parent' => 'pbc_front',
732
-        'session_vars'	=> array ('bill'),
732
+        'session_vars'	=> array('bill'),
733 733
     ),
734 734
     'pbc_clause' => array(
735 735
         'parent'		=> 'pbc_front',
736 736
         'url'			=> 'pbc/',
737
-        'session_vars'	=> array ('id'),
737
+        'session_vars'	=> array('id'),
738 738
     ),
739 739
     'pbc_speech' => array(
740 740
         'parent'		=> 'pbc_front',
741 741
         'url'			=> 'pbc/',
742
-        'session_vars'	=> array ('id'),
742
+        'session_vars'	=> array('id'),
743 743
     ),
744 744
 
745 745
     'people' => array(
@@ -751,57 +751,57 @@  discard block
 block discarded – undo
751 751
         'url'			=> '',
752 752
     ),
753 753
 
754
-    'raw' => array (
754
+    'raw' => array(
755 755
         'title'			=> 'Raw data',
756 756
         'url'			=> 'raw/'
757 757
     ),
758 758
 
759
-    'regmem' => array (
759
+    'regmem' => array(
760 760
         'title'			=> 'Changes to the Register of Members\' Interests',
761 761
         'url'			=> 'regmem/'
762 762
     ),
763 763
 
764
-    'regmem_date' => array (
764
+    'regmem_date' => array(
765 765
         'url'			=> 'regmem/',
766 766
         'parent'		=> 'regmem'
767 767
     ),
768 768
 
769
-    'regmem_mp' => array (
769
+    'regmem_mp' => array(
770 770
         'url'			=> 'regmem/',
771 771
         'parent'		=> 'regmem'
772 772
     ),
773 773
 
774
-    'regmem_diff' => array (
774
+    'regmem_diff' => array(
775 775
         'url'			=> 'regmem/',
776 776
         'parent'		=> 'regmem'
777 777
     ),
778 778
 
779
-    'royal' => array (
779
+    'royal' => array(
780 780
         'parent'        => 'hansard',
781 781
         'title'         => 'Royal',
782 782
         'url'           => 'royal/',
783 783
     ),
784 784
 
785
-    'topic' => array (
785
+    'topic' => array(
786 786
         'parent'        => 'topics',
787 787
         'url'           => 'topic/topic.php',
788 788
     ),
789 789
 
790
-    'topics' => array (
790
+    'topics' => array(
791 791
         'title'        => 'Topics',
792 792
         'url'          => 'topic/',
793 793
     ),
794 794
 
795
-    'search'		=> array (
795
+    'search'		=> array(
796 796
         'sidebar'		=> 'search',
797 797
         'url'			=> 'search/',
798 798
         'robots'		=> 'noindex, nofollow',
799 799
         'heading'		=> '',
800
-        'session_vars'	=> array ('q', 's', 'pid', 'o', 'pop')
800
+        'session_vars'	=> array('q', 's', 'pid', 'o', 'pop')
801 801
     ),
802 802
 
803
-    'sitenews'		=> array (
804
-        'menu'			=> array (
803
+    'sitenews'		=> array(
804
+        'menu'			=> array(
805 805
             'text'			=> 'TheyWorkForYou news',
806 806
             'title'			=> "News about changes to this website"
807 807
         ),
@@ -811,68 +811,68 @@  discard block
 block discarded – undo
811 811
         'title'			=> 'TheyWorkForYou news',
812 812
         'url'			=> 'news/'
813 813
     ),
814
-    'sitenews_archive'		=> array (
814
+    'sitenews_archive'		=> array(
815 815
         'parent'		=> 'sitenews',
816 816
         'rss'			=> 'news/index.rdf',
817 817
         'sidebar'		=> 'sitenews',
818 818
         'title'			=> 'Archive',
819 819
         'url'			=> 'news/archives/'
820 820
     ),
821
-    'sitenews_atom' 	=> array (
821
+    'sitenews_atom' 	=> array(
822 822
         'url'			=> 'news/atom.xml'
823 823
     ),
824
-    'sitenews_date'	=> array (
824
+    'sitenews_date'	=> array(
825 825
         'parent'		=> 'sitenews',
826 826
         'rss'			=> 'news/index.rdf',
827 827
         'sidebar'		=> 'sitenews'
828 828
     ),
829
-    'sitenews_individual'	=> array (
829
+    'sitenews_individual'	=> array(
830 830
         'parent'		=> 'sitenews',
831 831
         'rss'			=> 'news/index.rdf',
832 832
         'sidebar'		=> 'sitenews',
833 833
     ),
834
-    'sitenews_rss1' 	=> array (
834
+    'sitenews_rss1' 	=> array(
835 835
         'url'			=> 'news/index.rdf'
836 836
     ),
837
-    'sitenews_rss2' 	=> array (
837
+    'sitenews_rss2' 	=> array(
838 838
         'url'			=> 'news/index.xml'
839 839
     ),
840 840
 
841 841
     /* Scottish Parliament */
842 842
     'sp_home' => array(
843
-        'menu'			=> array (
843
+        'menu'			=> array(
844 844
             'text'			=> 'Scottish Parliament',
845 845
             'title'			=> 'Scottish education, health, agriculture, justice, prisons and other devolved areas. Some tax-varying powers'
846 846
         ),
847 847
         'title'			=> 'Scottish Parliament',
848 848
         'url'			=> 'scotland/'
849 849
     ),
850
-    'spoverview' => array (
850
+    'spoverview' => array(
851 851
         'parent'		=> 'sp_home',
852
-        'menu'			=> array (
852
+        'menu'			=> array(
853 853
             'text'			=> 'Overview',
854 854
             'title'			=> "Overview of the Scottish Parliament"
855 855
         ),
856 856
         'title'			=> '',
857 857
         'url'			=> 'scotland/'
858 858
     ),
859
-    'spdebate'  => array (
859
+    'spdebate'  => array(
860 860
         'parent'		=> 'spdebatesfront',
861 861
         'url'			=> 'sp/',
862
-        'session_vars'	=> array ('id'),
862
+        'session_vars'	=> array('id'),
863 863
     ),
864
-    'spdebates'  => array (
864
+    'spdebates'  => array(
865 865
         'parent'		=> 'spdebatesfront',
866 866
         'url'			=> 'sp/',
867
-        'session_vars'	=> array ('id'),
867
+        'session_vars'	=> array('id'),
868 868
     ),
869
-    'spdebatesday' => array (
869
+    'spdebatesday' => array(
870 870
         'parent'		=> 'spdebatesfront',
871
-        'session_vars'	=> array ('d'),
871
+        'session_vars'	=> array('d'),
872 872
         'url'			=> 'sp/',
873 873
     ),
874
-    'spdebatesfront' => array (
875
-        'menu'			=> array (
874
+    'spdebatesfront' => array(
875
+        'menu'			=> array(
876 876
             'text'			=> 'Debates',
877 877
             'title'			=> ''
878 878
         ),
@@ -881,21 +881,21 @@  discard block
 block discarded – undo
881 881
         'url'			=> 'sp/'
882 882
     ),
883 883
 
884
-    'spdebatesyear' => array (
884
+    'spdebatesyear' => array(
885 885
         'parent'		=> 'spdebatesfront',
886 886
         'url'			=> 'sp/'
887 887
     ),
888
-    'spwrans'  => array (
888
+    'spwrans'  => array(
889 889
         'parent'		=> 'spwransfront',
890 890
         'url'			=> 'spwrans/',
891 891
         #'session_vars'	=> array ('id'),
892 892
     ),
893
-    'spwransday'  => array (
893
+    'spwransday'  => array(
894 894
         'parent'		=> 'spwransfront',
895 895
         'url'			=> 'spwrans/'
896 896
     ),
897
-    'spwransfront'  => array (
898
-        'menu'			=> array (
897
+    'spwransfront'  => array(
898
+        'menu'			=> array(
899 899
             'text'			=> 'Written Answers',
900 900
             'title'			=> ''
901 901
         ),
@@ -908,31 +908,31 @@  discard block
 block discarded – undo
908 908
         'title'			=> 'For questions asked by ',
909 909
         'url'			=> 'spwrans/'
910 910
     ),
911
-    'spwransyear' => array (
911
+    'spwransyear' => array(
912 912
         'parent'		=> 'spwransfront',
913 913
         'url'			=> 'spwrans/'
914 914
     ),
915 915
 
916 916
     // Topic pages
917 917
 
918
-    'topic' => array (
918
+    'topic' => array(
919 919
         'url'           => 'topic/',
920 920
         'title'         => 'Topics'
921 921
     ),
922 922
 
923
-    'topicbenefits' => array (
923
+    'topicbenefits' => array(
924 924
         'url'           => 'topic/benefits',
925 925
         'parent'        => 'topic',
926 926
         'title'         => 'Benefits'
927 927
     ),
928 928
 
929
-    'topiccrimestats' => array (
929
+    'topiccrimestats' => array(
930 930
         'url'           => 'topic/crime-stats',
931 931
         'parent'        => 'topic',
932 932
         'title'         => 'Crime Statistics'
933 933
     ),
934 934
 
935
-    'topicnhs' => array (
935
+    'topicnhs' => array(
936 936
         'url'           => 'topic/nhs',
937 937
         'parent'        => 'topic',
938 938
         'title'         => 'NHS'
@@ -947,29 +947,29 @@  discard block
 block discarded – undo
947 947
         'url'			=> 'user/alerts/',
948 948
         'parent'		=> 'userviewself'
949 949
     ),
950
-    'userchangepc' => array (
950
+    'userchangepc' => array(
951 951
         'title'			=> 'Change your postcode',
952 952
         'url'			=> 'user/changepc/'
953 953
     ),
954
-    'userconfirm' => array (
954
+    'userconfirm' => array(
955 955
         'url'			=> 'user/confirm/'
956 956
     ),
957
-    'userconfirmed' => array (
957
+    'userconfirmed' => array(
958 958
         'sidebar'		=> 'userconfirmed',
959 959
         'title'			=> 'Welcome to TheyWorkForYou!',
960 960
         'url'			=> 'user/confirm/'
961 961
     ),
962
-    'userconfirmfailed' => array (
962
+    'userconfirmfailed' => array(
963 963
         'title'			=> 'Oops!',
964 964
         'url'			=> 'user/confirm/'
965 965
     ),
966
-    'useredit' => array (
966
+    'useredit' => array(
967 967
         'pg'			=> 'edit',
968 968
         'title'			=> 'Edit your details',
969 969
         'url'			=> 'user/'
970 970
     ),
971
-    'userjoin' => array (
972
-                'menu'                  => array (
971
+    'userjoin' => array(
972
+                'menu'                  => array(
973 973
                         'text'                  => gettext('Join'),
974 974
                         'title'                 => gettext("Joining is free and allows you to manage your email alerts")
975 975
                 ),
@@ -978,8 +978,8 @@  discard block
 block discarded – undo
978 978
                 'title'                 => gettext('Join TheyWorkForYou'),
979 979
                 'url'                   => 'user/'
980 980
         ),
981
-    'userlogin' => array (
982
-        'menu'			=> array (
981
+    'userlogin' => array(
982
+        'menu'			=> array(
983 983
             'text'			=> gettext('Sign in'),
984 984
             'title'			=> gettext("If you've already joined, sign in to your account")
985 985
         ),
@@ -988,33 +988,33 @@  discard block
 block discarded – undo
988 988
         'url'			=> 'user/login/'
989 989
     ),
990 990
 
991
-    'userlogout' => array (
992
-        'menu'			=> array (
991
+    'userlogout' => array(
992
+        'menu'			=> array(
993 993
             'text'			=> 'Sign out',
994 994
             'title'			=> "Sign out"
995 995
         ),
996 996
         'url'			=> 'user/logout/'
997 997
     ),
998
-    'userpassword' => array (
998
+    'userpassword' => array(
999 999
         'title'			=> 'Change password',
1000 1000
         'url'			=> 'user/password/'
1001 1001
     ),
1002
-    'userprompt' => array (
1002
+    'userprompt' => array(
1003 1003
         'title'			=> 'Please sign in',
1004 1004
         'url'			=> 'user/prompt/'
1005 1005
     ),
1006
-    'userview' => array (
1006
+    'userview' => array(
1007 1007
         'session_vars'	=> array('u'),
1008 1008
         'url'			=> 'user/'
1009 1009
     ),
1010
-    'userviewself' => array (
1011
-        'menu'			=> array (
1010
+    'userviewself' => array(
1011
+        'menu'			=> array(
1012 1012
             'text'			=> 'Your details',
1013 1013
             'title'			=> "View and edit your details"
1014 1014
         ),
1015 1015
         'url'			=> 'user/'
1016 1016
     ),
1017
-    'userwelcome' => array (
1017
+    'userwelcome' => array(
1018 1018
         'title'			=> 'Welcome!',
1019 1019
         'url'			=> 'user/'
1020 1020
     ),
@@ -1028,22 +1028,22 @@  discard block
 block discarded – undo
1028 1028
         'title' => 'Senedd Cymru / Welsh Parliament',
1029 1029
         'url' => 'senedd/'
1030 1030
     ),
1031
-    'mss' => array (
1031
+    'mss' => array(
1032 1032
         'parent' => 'wales_home',
1033
-        'menu' => array (
1033
+        'menu' => array(
1034 1034
             'text' => gettext('MSs'),
1035 1035
             'title' => gettext("List of Members of the Senedd (MSs)")
1036 1036
         ),
1037 1037
         'title' => '',
1038 1038
         'url' => 'mss/'
1039 1039
     ),
1040
-    'ms' => array (
1040
+    'ms' => array(
1041 1041
         'parent' => 'mss',
1042 1042
         'title' => gettext('Find your MS'),
1043 1043
         'url' => 'ms/'
1044 1044
     ),
1045
-    'yourms' => array (
1046
-        'menu'			=> array (
1045
+    'yourms' => array(
1046
+        'menu'			=> array(
1047 1047
             'text'		=> gettext('Your MSs'),
1048 1048
             'title'		=> gettext("Find out about your Members of the Welsh Parliament")
1049 1049
         ),
@@ -1053,9 +1053,9 @@  discard block
 block discarded – undo
1053 1053
         'url'			=> 'ms/'
1054 1054
     ),
1055 1055
 
1056
-    'seneddoverview' => array (
1056
+    'seneddoverview' => array(
1057 1057
         'parent' => 'wales_home',
1058
-        'menu' => array (
1058
+        'menu' => array(
1059 1059
             'text' => gettext('Record'),
1060 1060
             'title' => gettext("Overview of the Senedd debates")
1061 1061
         ),
@@ -1063,23 +1063,23 @@  discard block
 block discarded – undo
1063 1063
         'rss' => 'rss/senedd.rss',
1064 1064
         'url' => 'senedd/'
1065 1065
     ),
1066
-    'senedddebate'  => array (
1066
+    'senedddebate'  => array(
1067 1067
         'parent' => 'senedddebatesfront',
1068 1068
         'url' => 'senedd/',
1069
-        'session_vars' => array ('id'),
1069
+        'session_vars' => array('id'),
1070 1070
     ),
1071
-    'senedddebates'  => array (
1071
+    'senedddebates'  => array(
1072 1072
         'parent' => 'senedddebatesfront',
1073 1073
         'url' => 'senedd/',
1074
-        'session_vars' => array ('id'),
1074
+        'session_vars' => array('id'),
1075 1075
     ),
1076
-    'senedddebatesday' => array (
1076
+    'senedddebatesday' => array(
1077 1077
         'parent' => 'senedddebatesfront',
1078
-        'session_vars' => array ('d'),
1078
+        'session_vars' => array('d'),
1079 1079
         'url' => 'senedd/',
1080 1080
     ),
1081
-    'senedddebatesfront' => array (
1082
-        'menu' => array (
1081
+    'senedddebatesfront' => array(
1082
+        'menu' => array(
1083 1083
             'text' => 'Debates',
1084 1084
             'title' => gettext("Senedd debates")
1085 1085
         ),
@@ -1088,29 +1088,29 @@  discard block
 block discarded – undo
1088 1088
         'rss' => 'rss/senedd.rss',
1089 1089
         'url' => 'senedd/'
1090 1090
     ),
1091
-    'senedddebatesyear' => array (
1091
+    'senedddebatesyear' => array(
1092 1092
         'parent' => 'senedddebatesfront',
1093 1093
         'url' => 'senedd/'
1094 1094
     ),
1095 1095
 
1096 1096
     /* Westminster Hall */
1097
-    'whall'  => array (
1097
+    'whall'  => array(
1098 1098
         'parent'		=> 'whallfront',
1099 1099
         'url'			=> 'whall/',
1100
-        'session_vars'	=> array ('id'),
1100
+        'session_vars'	=> array('id'),
1101 1101
     ),
1102
-    'whalls'  => array (
1102
+    'whalls'  => array(
1103 1103
         'parent'		=> 'whallfront',
1104 1104
         'url'			=> 'whall/',
1105
-        'session_vars'	=> array ('id'),
1105
+        'session_vars'	=> array('id'),
1106 1106
     ),
1107
-    'whallday' => array (
1107
+    'whallday' => array(
1108 1108
         'parent'		=> 'whallfront',
1109
-        'session_vars'	=> array ('d'),
1109
+        'session_vars'	=> array('d'),
1110 1110
         'url'			=> 'whall/',
1111 1111
     ),
1112
-    'whallfront' => array (
1113
-        'menu'			=> array (
1112
+    'whallfront' => array(
1113
+        'menu'			=> array(
1114 1114
             'text'			=> 'Westminster Hall',
1115 1115
             'title'			=> "Westminster Hall debates"
1116 1116
         ),
@@ -1119,23 +1119,23 @@  discard block
 block discarded – undo
1119 1119
         'rss'			=> 'rss/whall.rss',
1120 1120
         'url'			=> 'whall/'
1121 1121
     ),
1122
-    'whallyear' => array (
1122
+    'whallyear' => array(
1123 1123
         'parent'		=> 'whallfront',
1124 1124
         'url'			=> 'whall/'
1125 1125
     ),
1126 1126
 
1127
-    'wms' => array (
1127
+    'wms' => array(
1128 1128
         'parent'		=> 'wranswmsfront',
1129 1129
         'url'			=> 'wms/',
1130 1130
         'session_vars'	=> array('id')
1131 1131
     ),
1132
-    'wmsday' => array (
1132
+    'wmsday' => array(
1133 1133
         'parent'		=> 'wmsfront',
1134 1134
         'session_vars'	=> array('d'),
1135 1135
         'url'			=> 'wms/'
1136 1136
     ),
1137
-    'wmsfront' => array (
1138
-        'menu'			=> array (
1137
+    'wmsfront' => array(
1138
+        'menu'			=> array(
1139 1139
             'text'			=> 'Written Ministerial Statements',
1140 1140
             'title'			=> ''
1141 1141
         ),
@@ -1144,22 +1144,22 @@  discard block
 block discarded – undo
1144 1144
         'rss'			=> 'rss/wms.rss',
1145 1145
         'url'			=> 'wms/'
1146 1146
     ),
1147
-    'wmsyear' => array (
1147
+    'wmsyear' => array(
1148 1148
         'parent'		=> 'wmsfront',
1149 1149
         'url'			=> 'wms/'
1150 1150
     ),
1151 1151
 
1152
-    'wrans'  => array (
1152
+    'wrans'  => array(
1153 1153
         'parent'		=> 'wranswmsfront',
1154 1154
         'url'			=> 'wrans/',
1155
-        'session_vars'	=> array ('id')
1155
+        'session_vars'	=> array('id')
1156 1156
     ),
1157
-    'wransday'  => array (
1157
+    'wransday'  => array(
1158 1158
         'parent'		=> 'wransfront',
1159 1159
         'url'			=> 'wrans/'
1160 1160
     ),
1161
-    'wransfront'  => array (
1162
-        'menu'			=> array (
1161
+    'wransfront'  => array(
1162
+        'menu'			=> array(
1163 1163
             'text'			=> 'Written Answers',
1164 1164
             'title'			=> "Written Answers"
1165 1165
         ),
@@ -1172,13 +1172,13 @@  discard block
 block discarded – undo
1172 1172
         'title'			=> 'For questions asked by ',
1173 1173
         'url'			=> 'wrans/'
1174 1174
     ),
1175
-    'wransyear' => array (
1175
+    'wransyear' => array(
1176 1176
         'parent'		=> 'wransfront',
1177 1177
         'url'			=> 'wrans/'
1178 1178
     ),
1179 1179
 
1180
-    'wranswmsfront'  => array (
1181
-        'menu'			=> array (
1180
+    'wranswmsfront'  => array(
1181
+        'menu'			=> array(
1182 1182
             'text'			=> 'Written Answers',
1183 1183
             'title'			=> 'Written Answers and Statements',
1184 1184
         ),
@@ -1195,8 +1195,8 @@  discard block
 block discarded – undo
1195 1195
         'title' => 'Your representative',
1196 1196
         'url' => 'your/',
1197 1197
     ),
1198
-    'yourmp' => array (
1199
-        'menu'			=> array (
1198
+    'yourmp' => array(
1199
+        'menu'			=> array(
1200 1200
             'text'			=> gettext('Your MP'),
1201 1201
             'title'			=> gettext("Find out about your Member of Parliament")
1202 1202
         ),
@@ -1205,8 +1205,8 @@  discard block
 block discarded – undo
1205 1205
         'url'			=> 'mp/',
1206 1206
         'parent'			=> 'mps',
1207 1207
     ),
1208
-    'yourmp_recent' => array (
1209
-        'menu'			=> array (
1208
+    'yourmp_recent' => array(
1209
+        'menu'			=> array(
1210 1210
             'text'			=> 'Recent appearances',
1211 1211
             'title'			=> "Recent speeches and written answers by this MP"
1212 1212
         ),
@@ -1214,8 +1214,8 @@  discard block
 block discarded – undo
1214 1214
         'title'			=> "Your MP's recent appearances in parliament",
1215 1215
         'url'			=> 'mp/?recent=1'
1216 1216
     ),
1217
-    'yourmsp' => array (
1218
-        'menu'			=> array (
1217
+    'yourmsp' => array(
1218
+        'menu'			=> array(
1219 1219
             'text'			=> 'Your MSPs',
1220 1220
             'title'			=> "Find out about your Members of the Scottish Parliament"
1221 1221
         ),
@@ -1224,8 +1224,8 @@  discard block
 block discarded – undo
1224 1224
         'title'			=> 'Your MSPs',
1225 1225
         'url'			=> 'msp/'
1226 1226
     ),
1227
-    'yourmla' => array (
1228
-        'menu'			=> array (
1227
+    'yourmla' => array(
1228
+        'menu'			=> array(
1229 1229
             'text'			=> 'Your MLAs',
1230 1230
             'title'			=> "Find out about your Members of the Legislative Assembly"
1231 1231
         ),
@@ -1241,38 +1241,38 @@  discard block
 block discarded – undo
1241 1241
 // The text displayed on the page itself will also be this,
1242 1242
 // UNLESS the section has a 'heading', in which case that's used instead.
1243 1243
 
1244
-$section = array (
1244
+$section = array(
1245 1245
 
1246 1246
 
1247
-    'about' => array (
1247
+    'about' => array(
1248 1248
         'title' 	=> 'About Us'
1249 1249
     ),
1250
-    'admin' => array (
1250
+    'admin' => array(
1251 1251
         'title'		=> 'Admin'
1252 1252
     ),
1253
-    'debates' => array (
1253
+    'debates' => array(
1254 1254
         'title' 	=> 'Debates',
1255 1255
         'heading'	=> 'House of Commons Debates'
1256 1256
     ),
1257
-    'help_us_out' => array (
1257
+    'help_us_out' => array(
1258 1258
         'title' 	=> 'Help Us Out'
1259 1259
     ),
1260
-    'hansard' => array (
1260
+    'hansard' => array(
1261 1261
         'title' 	=> 'Hansard'
1262 1262
     ),
1263
-    'home' => array (
1263
+    'home' => array(
1264 1264
         'title' 	=> 'Home'
1265 1265
     ),
1266
-    'mp' => array (
1266
+    'mp' => array(
1267 1267
         'title' 	=> 'Your MP'
1268 1268
     ),
1269
-    'search' => array (
1269
+    'search' => array(
1270 1270
         'title' 	=> 'Search'
1271 1271
     ),
1272
-    'sitenews' => array (
1272
+    'sitenews' => array(
1273 1273
         'title' 	=> 'TheyWorkForYou news'
1274 1274
     ),
1275
-    'wrans' => array (
1275
+    'wrans' => array(
1276 1276
         'title' 	=> 'Written Answers'
1277 1277
     )
1278 1278
 
Please login to merge, or discard this patch.