@@ -85,13 +85,13 @@ |
||
| 85 | 85 | |
| 86 | 86 | <p><strong>Chairpersons</strong></p> |
| 87 | 87 | <ul> |
| 88 | - <?php foreach($committee['chairmen'] as $chair) { ?> |
|
| 88 | + <?php foreach ($committee['chairmen'] as $chair) { ?> |
|
| 89 | 89 | <li><?= $chair['name'] ?> (<?= $chair['attending'] ?>)</li> |
| 90 | 90 | <?php } ?> |
| 91 | 91 | </ul> |
| 92 | 92 | <p><strong>Members</strong></p> |
| 93 | 93 | <ul> |
| 94 | - <?php foreach($committee['members'] as $chair) { ?> |
|
| 94 | + <?php foreach ($committee['members'] as $chair) { ?> |
|
| 95 | 95 | <li><?= $chair['name'] ?> (<?= $chair['attending'] ?>)</li> |
| 96 | 96 | <?php } ?> |
| 97 | 97 | </ul> |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | <?php |
| 10 | 10 | # remove the current policy from the list of related policies |
| 11 | 11 | if (isset($policy)) { |
| 12 | - $division['related_policies'] = array_filter($division['related_policies'], function ($related_policy) use ($policy) { |
|
| 12 | + $division['related_policies'] = array_filter($division['related_policies'], function($related_policy) use ($policy) { |
|
| 13 | 13 | return $related_policy['policy_id'] != $policy['policy_id']; |
| 14 | 14 | }); |
| 15 | 15 | } |
@@ -82,8 +82,8 @@ discard block |
||
| 82 | 82 | </div> |
| 83 | 83 | |
| 84 | 84 | <?php } else { |
| 85 | - $pc_form = ($type == 'mlas' || $type == 'msps' || $type == 'mss'); |
|
| 86 | - ?> |
|
| 85 | + $pc_form = ($type == 'mlas' || $type == 'msps' || $type == 'mss'); |
|
| 86 | + ?> |
|
| 87 | 87 | |
| 88 | 88 | <form action="/<?= $pc_form ? 'postcode' : 'search' ?>/"> |
| 89 | 89 | <div class="search-page__section search-page__section--search"> |
@@ -107,10 +107,10 @@ discard block |
||
| 107 | 107 | |
| 108 | 108 | <div class="search-page__section search-page__section--results"> |
| 109 | 109 | <?php |
| 110 | - if (isset($former)) { |
|
| 111 | - if ($type == 'mps') { |
|
| 112 | - # No reps. Election period! |
|
| 113 | - ?> |
|
| 110 | + if (isset($former)) { |
|
| 111 | + if ($type == 'mps') { |
|
| 112 | + # No reps. Election period! |
|
| 113 | + ?> |
|
| 114 | 114 | <div class="search-page__section__primary"> |
| 115 | 115 | During the period from the dissolution of Parliament to the general election, there are no Members of Parliament. |
| 116 | 116 | <a href="/mps/?date=<?=$dissolution[1] ?>">View list of MPs as it was when Parliament was dissolved</a> |
@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | </div> |
| 133 | 133 | <?php |
| 134 | 134 | } |
| 135 | - } else { ?> |
|
| 135 | + } else { ?> |
|
| 136 | 136 | |
| 137 | 137 | <div class="search-page__section__primary"> |
| 138 | 138 | <h2><?= sprintf(gettext('All %s'), $rep_plural) ?></h2> |
@@ -201,18 +201,18 @@ discard block |
||
| 201 | 201 | $a_to_z_key = 'given_name'; |
| 202 | 202 | } |
| 203 | 203 | } |
| 204 | - $initial_link = ''; |
|
| 205 | - foreach ($data as $person) { |
|
| 206 | - if ($order != 'party') { |
|
| 207 | - $initial = substr(strtoupper($person[$a_to_z_key]), 0, 1); |
|
| 208 | - if ($initial != $current_initial) { |
|
| 209 | - $current_initial = $initial; |
|
| 210 | - $initial_link = "name=\"$initial\" "; |
|
| 211 | - } else { |
|
| 212 | - $initial_link = ""; |
|
| 213 | - } |
|
| 214 | - } |
|
| 215 | - ?> |
|
| 204 | + $initial_link = ''; |
|
| 205 | + foreach ($data as $person) { |
|
| 206 | + if ($order != 'party') { |
|
| 207 | + $initial = substr(strtoupper($person[$a_to_z_key]), 0, 1); |
|
| 208 | + if ($initial != $current_initial) { |
|
| 209 | + $current_initial = $initial; |
|
| 210 | + $initial_link = "name=\"$initial\" "; |
|
| 211 | + } else { |
|
| 212 | + $initial_link = ""; |
|
| 213 | + } |
|
| 214 | + } |
|
| 215 | + ?> |
|
| 216 | 216 | <a <?= $initial_link ?>href="/mp/<?= $person['url'] ?>" class="people-list__person"> |
| 217 | 217 | <noscript class="loading-lazy"> |
| 218 | 218 | <img class="people-list__person__image" src="<?= $person['image'] ?>" loading="lazy" alt=""> |
@@ -107,7 +107,7 @@ |
||
| 107 | 107 | } |
| 108 | 108 | |
| 109 | 109 | if (($this_page != 'commentreport' && |
| 110 | - $this_page != 'addcomment' && |
|
| 110 | + $this_page != 'addcomment' && |
|
| 111 | 111 | $this_page != 'admin_commentreport') |
| 112 | 112 | && $THEUSER->is_able_to('reportcomment') |
| 113 | 113 | && !$comment['modflagged'] |
@@ -84,7 +84,7 @@ |
||
| 84 | 84 | if (!$comment['visible']) { |
| 85 | 85 | $reporthtml = ''; |
| 86 | 86 | } elseif (($this_page != 'commentreport' && |
| 87 | - $this_page != 'addcomment' && |
|
| 87 | + $this_page != 'addcomment' && |
|
| 88 | 88 | $this_page != 'admin_commentreport') |
| 89 | 89 | && $THEUSER->is_able_to('reportcomment') |
| 90 | 90 | && $THEUSER->user_id() != $comment['user_id'] |
@@ -26,8 +26,8 @@ discard block |
||
| 26 | 26 | </h2> |
| 27 | 27 | |
| 28 | 28 | <?php if (isset($data['mp_data'])) { |
| 29 | - include('_your_mp.php'); |
|
| 30 | - } ?> |
|
| 29 | + include('_your_mp.php'); |
|
| 30 | + } ?> |
|
| 31 | 31 | |
| 32 | 32 | <div class="debate-speech__division__details"> |
| 33 | 33 | <p> |
@@ -38,10 +38,10 @@ discard block |
||
| 38 | 38 | <?php } else { ?> |
| 39 | 39 | <?php if ($mp_vote['with_majority']) { ?> |
| 40 | 40 | <?php $vote_prefix = 'A majority of ' . $division['members']['plural'] . ' <b>agreed</b> and'; |
| 41 | - include('_vote_description.php'); ?> |
|
| 41 | + include('_vote_description.php'); ?> |
|
| 42 | 42 | <?php } else { ?> |
| 43 | 43 | <?php $vote_prefix = 'A majority of ' . $division['members']['plural'] . ' <b>disagreed</b> and'; |
| 44 | - include('_vote_description.php'); ?> |
|
| 44 | + include('_vote_description.php'); ?> |
|
| 45 | 45 | <?php } ?> |
| 46 | 46 | <?php } ?> |
| 47 | 47 | </p> |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | <?php if (count($tellers) > 0) { ?> |
| 30 | 30 | <h4><?= gettext('Tellers') ?></h4> |
| 31 | 31 | <ul class="division-names"> |
| 32 | - <?php foreach($tellers as $teller) { |
|
| 32 | + <?php foreach ($tellers as $teller) { |
|
| 33 | 33 | print_voter($teller); |
| 34 | 34 | } ?> |
| 35 | 35 | </p> |
@@ -1,9 +1,9 @@ |
||
| 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 | - } |
|
| 6 | + } |
|
| 7 | 7 | if ($division['absent'] > 0) { ?>, |
| 8 | 8 | <a href="#absent"><?= sprintf(gettext('%s absent'), $division['absent']) ?></a><?php |
| 9 | 9 | } ?>. |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | ], |
| 20 | 20 | ]; |
| 21 | 21 | |
| 22 | -$sections_with_votes = array_filter(array_keys($vote_sets), function ($s) use ($division) { |
|
| 22 | +$sections_with_votes = array_filter(array_keys($vote_sets), function($s) use ($division) { |
|
| 23 | 23 | return count($division[$s]); |
| 24 | 24 | }); |
| 25 | 25 | $sections_with_votes = array_values($sections_with_votes); |