@@ -393,7 +393,7 @@ discard block |
||
393 | 393 | $divisions = new MySociety\TheyWorkForYou\Divisions($MEMBER); |
394 | 394 | $policySummaries = $divisions->getMemberDivisionDetails(true); |
395 | 395 | |
396 | - $policyOptions = [ 'summaries' => $policySummaries]; |
|
396 | + $policyOptions = ['summaries' => $policySummaries]; |
|
397 | 397 | |
398 | 398 | // Generate voting segments |
399 | 399 | $set_descriptions = $policiesList->getSetDescriptions(); |
@@ -430,7 +430,7 @@ discard block |
||
430 | 430 | |
431 | 431 | $data['sorted_diffs_only'] = array_filter( |
432 | 432 | $data['sorted_diffs'], |
433 | - function ($k) { return $k['score_difference'] >= 2; } |
|
433 | + function($k) { return $k['score_difference'] >= 2; } |
|
434 | 434 | ); |
435 | 435 | |
436 | 436 | // Send the output for rendering |
@@ -662,7 +662,7 @@ discard block |
||
662 | 662 | function person_error_page($message) { |
663 | 663 | global $this_page; |
664 | 664 | $SEARCHURL = ''; |
665 | - switch($this_page) { |
|
665 | + switch ($this_page) { |
|
666 | 666 | case 'peer': |
667 | 667 | $people = new MySociety\TheyWorkForYou\People\Peers(); |
668 | 668 | $MPSURL = new \MySociety\TheyWorkForYou\Url('peers'); |
@@ -847,7 +847,7 @@ discard block |
||
847 | 847 | $SEARCHENGINE = new \SEARCHENGINE($searchstring); |
848 | 848 | |
849 | 849 | $hansard = new MySociety\TheyWorkForYou\Hansard(); |
850 | - $args = [ |
|
850 | + $args = [ |
|
851 | 851 | 's' => $searchstring, |
852 | 852 | 'p' => 1, |
853 | 853 | 'num' => 3, |
@@ -1032,7 +1032,7 @@ discard block |
||
1032 | 1032 | |
1033 | 1033 | $lang = LANGUAGE; |
1034 | 1034 | |
1035 | - $reg = ['chamber_registers' => [] ]; |
|
1035 | + $reg = ['chamber_registers' => []]; |
|
1036 | 1036 | |
1037 | 1037 | foreach ($valid_chambers as $chamber) { |
1038 | 1038 | $key = 'person_regmem_' . $chamber . '_' . $lang; |
@@ -1047,7 +1047,7 @@ discard block |
||
1047 | 1047 | } |
1048 | 1048 | |
1049 | 1049 | // sort chamber registers by published_date |
1050 | - uasort($reg['chamber_registers'], function ($a, $b) { |
|
1050 | + uasort($reg['chamber_registers'], function($a, $b) { |
|
1051 | 1051 | return $a->published_date <=> $b->published_date; |
1052 | 1052 | }); |
1053 | 1053 | |
@@ -1141,8 +1141,8 @@ discard block |
||
1141 | 1141 | } |
1142 | 1142 | } |
1143 | 1143 | |
1144 | - foreach($mreg as $reg) { |
|
1145 | - $data['members'][] = [ |
|
1144 | + foreach ($mreg as $reg) { |
|
1145 | + $data['members'][] = [ |
|
1146 | 1146 | 'url' => '/' . $rep_type . '/?p=' . $reg['person_id'], |
1147 | 1147 | 'name' => $reg['given_name'] . ' ' . $reg['family_name'], |
1148 | 1148 | ]; |
@@ -1,9 +1,9 @@ |
||
1 | 1 | <?php |
2 | -$nav_items = [ |
|
2 | +$nav_items = [ |
|
3 | 3 | ['hansard', 'alldebatesfront', 'mps', 'peers', 'interests_home', 'wranswmsfront', 'divisions_recent_commons', 'divisions_recent_lords'], |
4 | 4 | ['sp_home', 'sp_home', 'spdebatesfront', 'msps', 'interest_category_sp', 'spwransfront', 'divisions_recent_sp'], |
5 | - ['wales_home', 'wales_home', 'wales_debates', 'mss','interest_category_wp', 'welshlanguage', 'divisions_recent_wales'], |
|
6 | - ['ni_home', 'ni_home', 'nioverview', 'mlas','interest_category_ni'], |
|
5 | + ['wales_home', 'wales_home', 'wales_debates', 'mss', 'interest_category_wp', 'welshlanguage', 'divisions_recent_wales'], |
|
6 | + ['ni_home', 'ni_home', 'nioverview', 'mlas', 'interest_category_ni'], |
|
7 | 7 | ]; |
8 | 8 | |
9 | 9 | ?> |
@@ -16,7 +16,7 @@ |
||
16 | 16 | |
17 | 17 | public function limitToCategoryIds(array $categoryIds) { |
18 | 18 | // Filter the categories to only include those with the given IDs |
19 | - $this->items = array_filter($this->items, function ($category) use ($categoryIds) { |
|
19 | + $this->items = array_filter($this->items, function($category) use ($categoryIds) { |
|
20 | 20 | return in_array($category->category_id, $categoryIds); |
21 | 21 | }); |
22 | 22 | } |
@@ -169,7 +169,7 @@ discard block |
||
169 | 169 | |
170 | 170 | if ($nextprev) { |
171 | 171 | // Four different kinds of back/forth links we might build. |
172 | - $links = ["first", "prev", "up", "next", "last"]; |
|
172 | + $links = ["first", "prev", "up", "next", "last"]; |
|
173 | 173 | |
174 | 174 | foreach ($links as $type) { |
175 | 175 | if ($link = $this->generate_next_prev_link($nextprev, $type)) { |
@@ -307,9 +307,9 @@ discard block |
||
307 | 307 | // Page names mapping to those in metadata.php. |
308 | 308 | // Links in the top menu, and the sublinks we see if |
309 | 309 | // we're within that section. |
310 | - $nav_items = [ |
|
310 | + $nav_items = [ |
|
311 | 311 | ['home'], |
312 | - ['hansard', 'mps', 'peers', 'alldebatesfront', 'interests_home', 'wranswmsfront', 'pbc_front', 'divisions_recent_commons', 'divisions_recent_lords', 'calendar_summary'], |
|
312 | + ['hansard', 'mps', 'peers', 'alldebatesfront', 'interests_home', 'wranswmsfront', 'pbc_front', 'divisions_recent_commons', 'divisions_recent_lords', 'calendar_summary'], |
|
313 | 313 | ['sp_home', 'spoverview', 'msps', 'interest_category_sp', 'spdebatesfront', 'divisions_recent_sp'], #'spwransfront' |
314 | 314 | ['ni_home', 'nioverview', 'mlas', 'interest_category_ni'], |
315 | 315 | ['wales_home', 'seneddoverview', 'mss', 'interest_category_wp', 'wales_debates', 'divisions_recent_wales'], |