@@ -131,8 +131,8 @@ discard block |
||
131 | 131 | |
132 | 132 | <ul class="vote-descriptions"> |
133 | 133 | <?php foreach ($sig_diff_policy->policy_pairs as $policy_pair) { |
134 | - include '_vote_description.php'; |
|
135 | - } ?> |
|
134 | + include '_vote_description.php'; |
|
135 | + } ?> |
|
136 | 136 | </ul> |
137 | 137 | |
138 | 138 | <?php } ?> |
@@ -165,9 +165,9 @@ discard block |
||
165 | 165 | <ul class="vote-descriptions"> |
166 | 166 | <?php foreach ($segment->policy_pairs as $policy_pair) { |
167 | 167 | |
168 | - include '_vote_description.php'; |
|
168 | + include '_vote_description.php'; |
|
169 | 169 | |
170 | - } ?> |
|
170 | + } ?> |
|
171 | 171 | </ul> |
172 | 172 | |
173 | 173 | <p class="voting-information-provenance"> |
@@ -23,7 +23,7 @@ |
||
23 | 23 | |
24 | 24 | <h3 class="browse-content">Comparison periods</h3> |
25 | 25 | <ul> |
26 | - <?php foreach($available_periods as $period) { ?> |
|
26 | + <?php foreach ($available_periods as $period) { ?> |
|
27 | 27 | <li class="active"><a href="?comparison_period=<?= $period->lslug() ?>"><?= $period->description ?></a></li> |
28 | 28 | <?php } ?> |
29 | 29 | </ul> |
@@ -612,7 +612,7 @@ discard block |
||
612 | 612 | function person_error_page($message) { |
613 | 613 | global $this_page; |
614 | 614 | $SEARCHURL = ''; |
615 | - switch($this_page) { |
|
615 | + switch ($this_page) { |
|
616 | 616 | case 'peer': |
617 | 617 | $people = new MySociety\TheyWorkForYou\People\Peers(); |
618 | 618 | $MPSURL = new \MySociety\TheyWorkForYou\Url('peers'); |
@@ -798,7 +798,7 @@ discard block |
||
798 | 798 | $SEARCHENGINE = new \SEARCHENGINE($searchstring); |
799 | 799 | |
800 | 800 | $hansard = new MySociety\TheyWorkForYou\Hansard(); |
801 | - $args = [ |
|
801 | + $args = [ |
|
802 | 802 | 's' => $searchstring, |
803 | 803 | 'p' => 1, |
804 | 804 | 'num' => 3, |
@@ -985,7 +985,7 @@ discard block |
||
985 | 985 | |
986 | 986 | $lang = LANGUAGE; |
987 | 987 | |
988 | - $reg = [ 'date' => '', 'chamber_registers' => [] ]; |
|
988 | + $reg = ['date' => '', 'chamber_registers' => []]; |
|
989 | 989 | |
990 | 990 | foreach ($valid_chambers as $chamber) { |
991 | 991 | $key = 'person_regmem_' . $chamber . '_' . $lang; |
@@ -1089,8 +1089,8 @@ discard block |
||
1089 | 1089 | } |
1090 | 1090 | } |
1091 | 1091 | |
1092 | - foreach($mreg as $reg) { |
|
1093 | - $data['members'][] = [ |
|
1092 | + foreach ($mreg as $reg) { |
|
1093 | + $data['members'][] = [ |
|
1094 | 1094 | 'url' => '/' . $rep_type . '/?p=' . $reg['person_id'], |
1095 | 1095 | 'name' => $reg['given_name'] . ' ' . $reg['family_name'], |
1096 | 1096 | ]; |
@@ -66,7 +66,7 @@ |
||
66 | 66 | $group_name = $policies->getSetDescriptions()[$set_slug]; |
67 | 67 | $group_slug = $set_slug; |
68 | 68 | $comparison_period_slug = $period_slug; |
69 | - $policy_pairs = array_filter($pairs, function ($pair) use ($policy_ids) { |
|
69 | + $policy_pairs = array_filter($pairs, function($pair) use ($policy_ids) { |
|
70 | 70 | return in_array($pair->getPolicyID(), $policy_ids) && !$pair->member_distribution->noDataAvailable(); |
71 | 71 | }); |
72 | 72 | $collection = new PolicyDistributionCollection($group_slug, $group_name, $comparison_period_slug, $person_id, $party_slug, $policy_pairs); |