@@ -392,7 +392,7 @@ discard block |
||
| 392 | 392 | $divisions = new MySociety\TheyWorkForYou\Divisions($MEMBER); |
| 393 | 393 | $policySummaries = $divisions->getMemberDivisionDetails(true); |
| 394 | 394 | |
| 395 | - $policyOptions = [ 'summaries' => $policySummaries]; |
|
| 395 | + $policyOptions = ['summaries' => $policySummaries]; |
|
| 396 | 396 | |
| 397 | 397 | // Generate voting segments |
| 398 | 398 | $set_descriptions = $policiesList->getSetDescriptions(); |
@@ -429,7 +429,7 @@ discard block |
||
| 429 | 429 | |
| 430 | 430 | $data['sorted_diffs_only'] = array_filter( |
| 431 | 431 | $data['sorted_diffs'], |
| 432 | - function ($k) { return $k['score_difference'] >= 2; } |
|
| 432 | + function($k) { return $k['score_difference'] >= 2; } |
|
| 433 | 433 | ); |
| 434 | 434 | |
| 435 | 435 | // Send the output for rendering |
@@ -640,7 +640,7 @@ discard block |
||
| 640 | 640 | function person_error_page($message) { |
| 641 | 641 | global $this_page; |
| 642 | 642 | $SEARCHURL = ''; |
| 643 | - switch($this_page) { |
|
| 643 | + switch ($this_page) { |
|
| 644 | 644 | case 'peer': |
| 645 | 645 | $people = new MySociety\TheyWorkForYou\People\Peers(); |
| 646 | 646 | $MPSURL = new \MySociety\TheyWorkForYou\Url('peers'); |
@@ -825,7 +825,7 @@ discard block |
||
| 825 | 825 | $SEARCHENGINE = new \SEARCHENGINE($searchstring); |
| 826 | 826 | |
| 827 | 827 | $hansard = new MySociety\TheyWorkForYou\Hansard(); |
| 828 | - $args = [ |
|
| 828 | + $args = [ |
|
| 829 | 829 | 's' => $searchstring, |
| 830 | 830 | 'p' => 1, |
| 831 | 831 | 'num' => 3, |
@@ -1001,7 +1001,7 @@ discard block |
||
| 1001 | 1001 | |
| 1002 | 1002 | $lang = LANGUAGE; |
| 1003 | 1003 | |
| 1004 | - $reg = [ 'date' => '', 'chamber_registers' => [] ]; |
|
| 1004 | + $reg = ['date' => '', 'chamber_registers' => []]; |
|
| 1005 | 1005 | |
| 1006 | 1006 | foreach ($valid_chambers as $chamber) { |
| 1007 | 1007 | $key = 'person_regmem_' . $chamber . '_' . $lang; |
@@ -1105,8 +1105,8 @@ discard block |
||
| 1105 | 1105 | } |
| 1106 | 1106 | } |
| 1107 | 1107 | |
| 1108 | - foreach($mreg as $reg) { |
|
| 1109 | - $data['members'][] = [ |
|
| 1108 | + foreach ($mreg as $reg) { |
|
| 1109 | + $data['members'][] = [ |
|
| 1110 | 1110 | 'url' => '/' . $rep_type . '/?p=' . $reg['person_id'], |
| 1111 | 1111 | 'name' => $reg['given_name'] . ' ' . $reg['family_name'], |
| 1112 | 1112 | ]; |
@@ -42,6 +42,6 @@ |
||
| 42 | 42 | return $category; |
| 43 | 43 | } |
| 44 | 44 | } |
| 45 | - throw new InvalidArgumentException("Category $categoryId not found in register"); |
|
| 45 | + throw new InvalidArgumentException("category $categoryId not found in register"); |
|
| 46 | 46 | } |
| 47 | 47 | } |
@@ -7,9 +7,12 @@ discard block |
||
| 7 | 7 | <?php if ($entry->content): ?> |
| 8 | 8 | <?php if ($entry->info_type == "subentry"): ?> |
| 9 | 9 | <h6 class="interest-summary"><?= htmlspecialchars($entry->content) ?></h6> |
| 10 | - <?php else: ?> |
|
| 10 | + <?php else { |
|
| 11 | + : ?> |
|
| 11 | 12 | <h4 class="interest-summary"><?= htmlspecialchars($entry->content) ?></h4> |
| 12 | - <?php endif; ?> |
|
| 13 | + <?php endif; |
|
| 14 | +} |
|
| 15 | +?> |
|
| 13 | 16 | <?php endif; ?> |
| 14 | 17 | <ul class="interest-details-list"> |
| 15 | 18 | <?php foreach ($entry->details as $detail): ?> |
@@ -26,14 +29,17 @@ discard block |
||
| 26 | 29 | <?php endif; ?> |
| 27 | 30 | </ul> |
| 28 | 31 | |
| 29 | - <?php else: ?> |
|
| 32 | + <?php else { |
|
| 33 | + : ?> |
|
| 30 | 34 | <?php if ($entry->content): ?> |
| 31 | 35 | <?php // This is a more mininal style of entry, don't use the header structure, just print the xml content?> |
| 32 | 36 | <?php if ($entry->content_format == "xml") : ?> |
| 33 | 37 | <?= $entry->content ?> |
| 34 | 38 | <?php else: ?> |
| 35 | 39 | <p class="interest-content"><?= htmlspecialchars($entry->content) ?></p> |
| 36 | - <?php endif; ?> |
|
| 40 | + <?php endif; |
|
| 41 | +} |
|
| 42 | +?> |
|
| 37 | 43 | <?php endif; ?> |
| 38 | 44 | <?php endif; ?> |
| 39 | 45 | |
@@ -13,11 +13,14 @@ |
||
| 13 | 13 | <?php $detail = $upper_detail; ?> |
| 14 | 14 | </ul> |
| 15 | 15 | </li> |
| 16 | - <?php else : ?> |
|
| 16 | + <?php else { |
|
| 17 | + : ?> |
|
| 17 | 18 | <li class="interest-detail"> |
| 18 | 19 | <?php if ($detail->has_value()): ?> |
| 19 | 20 | <span class="interest-detail-name"><?= $detail->display_as ?>: </span> |
| 20 | 21 | <span class="interest-detail-value"><?= htmlspecialchars($detail->value) ?></span> |
| 21 | - <?php endif; ?> |
|
| 22 | + <?php endif; |
|
| 23 | +} |
|
| 24 | +?> |
|
| 22 | 25 | </li> |
| 23 | 26 | <?php endif; ?> |