@@ -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(); |
@@ -410,7 +410,7 @@ discard block |
||
410 | 410 | 'health', 'education', 'reform', 'home', 'environment', |
411 | 411 | 'transport', 'housing', 'misc', |
412 | 412 | ]; |
413 | - $sets = array_filter($sets, function ($v) use ($set_descriptions) { |
|
413 | + $sets = array_filter($sets, function($v) use ($set_descriptions) { |
|
414 | 414 | return array_key_exists($v, $set_descriptions); |
415 | 415 | }); |
416 | 416 | shuffle($sets); |
@@ -433,7 +433,7 @@ discard block |
||
433 | 433 | |
434 | 434 | $data['sorted_diffs_only'] = array_filter( |
435 | 435 | $data['sorted_diffs'], |
436 | - function ($k) { return $k['score_difference'] >= 2; } |
|
436 | + function($k) { return $k['score_difference'] >= 2; } |
|
437 | 437 | ); |
438 | 438 | |
439 | 439 | // Send the output for rendering |
@@ -665,7 +665,7 @@ discard block |
||
665 | 665 | function person_error_page($message) { |
666 | 666 | global $this_page; |
667 | 667 | $SEARCHURL = ''; |
668 | - switch($this_page) { |
|
668 | + switch ($this_page) { |
|
669 | 669 | case 'peer': |
670 | 670 | $people = new MySociety\TheyWorkForYou\People\Peers(); |
671 | 671 | $MPSURL = new \MySociety\TheyWorkForYou\Url('peers'); |
@@ -850,7 +850,7 @@ discard block |
||
850 | 850 | $SEARCHENGINE = new \SEARCHENGINE($searchstring); |
851 | 851 | |
852 | 852 | $hansard = new MySociety\TheyWorkForYou\Hansard(); |
853 | - $args = [ |
|
853 | + $args = [ |
|
854 | 854 | 's' => $searchstring, |
855 | 855 | 'p' => 1, |
856 | 856 | 'num' => 3, |
@@ -1066,7 +1066,7 @@ discard block |
||
1066 | 1066 | |
1067 | 1067 | $lang = LANGUAGE; |
1068 | 1068 | |
1069 | - $reg = ['chamber_registers' => [] ]; |
|
1069 | + $reg = ['chamber_registers' => []]; |
|
1070 | 1070 | |
1071 | 1071 | foreach ($valid_chambers as $chamber) { |
1072 | 1072 | $key = 'person_regmem_' . $chamber . '_' . $lang; |
@@ -1081,7 +1081,7 @@ discard block |
||
1081 | 1081 | } |
1082 | 1082 | |
1083 | 1083 | // sort chamber registers by published_date |
1084 | - uasort($reg['chamber_registers'], function ($a, $b) { |
|
1084 | + uasort($reg['chamber_registers'], function($a, $b) { |
|
1085 | 1085 | return $a->published_date <=> $b->published_date; |
1086 | 1086 | }); |
1087 | 1087 | |
@@ -1175,8 +1175,8 @@ discard block |
||
1175 | 1175 | } |
1176 | 1176 | } |
1177 | 1177 | |
1178 | - foreach($mreg as $reg) { |
|
1179 | - $data['members'][] = [ |
|
1178 | + foreach ($mreg as $reg) { |
|
1179 | + $data['members'][] = [ |
|
1180 | 1180 | 'url' => '/' . $rep_type . '/?p=' . $reg['person_id'], |
1181 | 1181 | 'name' => $reg['given_name'] . ' ' . $reg['family_name'], |
1182 | 1182 | ]; |