Passed
Push — master ( 4d7353...172ce8 )
by Matthew
04:35
created
www/includes/easyparliament/templates/html/alert/_list.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,14 +1,14 @@
 block discarded – undo
1 1
 <h3><?= gettext('Your current email alerts') ?></h3>
2 2
 
3 3
 <ul class="alerts-manage__list">
4
-  <?php foreach ( $alerts as $alert ) { ?>
4
+  <?php foreach ($alerts as $alert) { ?>
5 5
     <li>
6 6
         <?= sprintf(gettext('When %s'), _htmlspecialchars($alert['criteria'])) ?>.
7 7
         <form action="<?= $actionurl ?>" method="POST">
8 8
             <input type="hidden" name="t" value="<?= _htmlspecialchars($alert['token']) ?>">
9
-          <?php if ( $alert['status'] == 'unconfirmed' ) { ?>
9
+          <?php if ($alert['status'] == 'unconfirmed') { ?>
10 10
             <input type="submit" class="button small" name="action" value="<?= gettext('Confirm') ?>">
11
-          <?php } elseif ( $alert['status'] == 'suspended' ) { ?>
11
+          <?php } elseif ($alert['status'] == 'suspended') { ?>
12 12
             <input type="submit" class="button small" name="action" value="<?= gettext('Resume') ?>">
13 13
           <?php } else { ?>
14 14
             <input type="submit" class="button button--secondary small" name="action" value="<?= gettext('Suspend') ?>">
Please login to merge, or discard this patch.
www/includes/easyparliament/templates/html/search/form_main.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@  discard block
 block discarded – undo
4 4
             <input type="text" name="q" value="<?= _htmlentities($search_keyword) ?>" class="form-control">
5 5
             <input type="submit" class="button" value="<?= gettext('Search') ?>">
6 6
         </p>
7
-      <?php if (isset($warnings) ) { ?>
7
+      <?php if (isset($warnings)) { ?>
8 8
         <p class="error">
9 9
             <?= $warnings ?>
10 10
         </p>
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
         <p>
19 19
             <ul class="search-result-display-options">
20 20
                 <li><a href="#options" class="search-options-toggle js-toggle-search-options"><?= gettext('Advanced search') ?></a></li>
21
-              <?php if ( $is_adv ) { ?>
21
+              <?php if ($is_adv) { ?>
22 22
                 <?= $search_phrase ? '<li>' . gettext('Exactly:') . ' ' . _htmlentities($search_phrase) . '</li>' : '' ?>
23 23
                 <?= $search_exclude ? '<li>' . gettext('Excluding:') . ' ' . _htmlentities($search_exclude) . '</li>' : '' ?>
24 24
                 <?= $search_from ? '<li>' . gettext('From:') . ' ' . _htmlentities($search_from) . '</li>' : '' ?>
Please login to merge, or discard this patch.
www/includes/easyparliament/templates/html/search/person.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,12 +2,12 @@
 block discarded – undo
2 2
     <img src="<?= $member->image()['url'] ?>" alt="">
3 3
     <h3 class="search-result__title"><a href="<?= $member->url() ?>"><?= $member->full_name() ?></a></h3>
4 4
     <?php $latest_membership = $member->getMostRecentMembership(); ?>
5
-    <?php if ( $latest_membership && $latest_membership['house'] != HOUSE_TYPE_ROYAL ) { ?>
5
+    <?php if ($latest_membership && $latest_membership['house'] != HOUSE_TYPE_ROYAL) { ?>
6 6
         <p class="search-result__description">
7 7
             <?= $latest_membership['current'] ? '' : 'Former' ?>
8 8
             <?= $latest_membership['party'] == 'Bishop' ? '' : $latest_membership['party'] ?>
9 9
             <?= $latest_membership['rep_name'] ?>
10
-            <?php if ( $latest_membership['constituency'] ) { ?>
10
+            <?php if ($latest_membership['constituency']) { ?>
11 11
                 <?= sprintf(gettext('for %s'), $latest_membership['constituency']) ?>
12 12
             <?php } ?>
13 13
             (<?= format_date($latest_membership['start_date'], SHORTDATEFORMAT) ?> – <?= $latest_membership['current'] ? gettext('current') : format_date($latest_membership['end_date'], SHORTDATEFORMAT); ?>)
Please login to merge, or discard this patch.
www/includes/easyparliament/templates/html/search/results.php 3 patches
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,9 +19,11 @@
 block discarded – undo
19 19
                     }
20 20
                 ?>
21 21
                   <h2><?= sprintf(gettext('%s in constituencies matching <em class="current-search-term">%s</em>'), $desc, _htmlentities($searchstring)) ?></h2>
22
-                <?php } elseif ($mp_types['former']) { // count($cons) <= 1 ?>
22
+                <?php } elseif ($mp_types['former']) {
23
+// count($cons) <= 1 ?>
23 24
                   <h2><?= sprintf(gettext('Former MP for <em class="current-search-term">%s</em>'), _htmlentities($searchstring)) ?></h2>
24
-                <?php } else { // count($cons) <= 1 ?>
25
+                <?php } else {
26
+// count($cons) <= 1 ?>
25 27
                   <h2><?= sprintf(gettext('MP for <em class="current-search-term">%s</em>'), _htmlentities($searchstring)) ?></h2>
26 28
                 <?php } ?>
27 29
                 <?php foreach ( $cons as $member ) { ?>
Please login to merge, or discard this patch.
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,8 +9,8 @@
 block discarded – undo
9 9
         <div class="search-page__section search-page__section--results">
10 10
             <div class="search-page__section__primary">
11 11
               <?php
12
-              # XXX Hack
13
-              if (preg_match('#winter\s+f[eu]el#i', $searchstring)) { ?>
12
+                # XXX Hack
13
+                if (preg_match('#winter\s+f[eu]el#i', $searchstring)) { ?>
14 14
                 <h3 style="margin-bottom: 1em;" class="search-result__title"><a href="https://www.theyworkforyou.com/debates/?id=2024-09-10a.712.0">⭐️ Read the debate on the winter fuel regulations</a></h3>
15 15
               <?php } ?>
16 16
 
Please login to merge, or discard this patch.
Spacing   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@  discard block
 block discarded – undo
1 1
 <div class="full-page">
2
-    <div class="full-page__row search-page <?php if ( !$searchstring ) { ?>search-page--blank<?php } ?>">
2
+    <div class="full-page__row search-page <?php if (!$searchstring) { ?>search-page--blank<?php } ?>">
3 3
 
4 4
         <form class="js-search-form-without-options">
5 5
             <?php include 'form_main.php'; ?>
6 6
         </form>
7 7
 
8
-      <?php if ( $searchstring && !isset($warnings) ) { ?>
8
+      <?php if ($searchstring && !isset($warnings)) { ?>
9 9
         <div class="search-page__section search-page__section--results">
10 10
             <div class="search-page__section__primary">
11 11
               <?php
@@ -14,13 +14,13 @@  discard block
 block discarded – undo
14 14
                 <h3 style="margin-bottom: 1em;" class="search-result__title"><a href="https://www.theyworkforyou.com/debates/?id=2024-09-10a.712.0">⭐️ Read the debate on the winter fuel regulations</a></h3>
15 15
               <?php } ?>
16 16
 
17
-              <?php if ( $cons ) { ?>
18
-                <?php if ( count($cons) > 1 ) {
19
-                    if ( $mp_types['mp'] > 0 && $mp_types['former'] > 0 ) {
17
+              <?php if ($cons) { ?>
18
+                <?php if (count($cons) > 1) {
19
+                    if ($mp_types['mp'] > 0 && $mp_types['former'] > 0) {
20 20
                         $desc = gettext('MPs and former MPs');
21
-                    } elseif ( $mp_types['mp'] > 0 ) {
21
+                    } elseif ($mp_types['mp'] > 0) {
22 22
                         $desc = gettext('MPs');
23
-                    } elseif ( $mp_types['former'] > 0 ) {
23
+                    } elseif ($mp_types['former'] > 0) {
24 24
                         $desc = gettext('Former MPs');
25 25
                     }
26 26
                 ?>
@@ -30,14 +30,14 @@  discard block
 block discarded – undo
30 30
                 <?php } else { // count($cons) <= 1 ?>
31 31
                   <h2><?= sprintf(gettext('MP for <em class="current-search-term">%s</em>'), _htmlentities($searchstring)) ?></h2>
32 32
                 <?php } ?>
33
-                <?php foreach ( $cons as $member ) { ?>
33
+                <?php foreach ($cons as $member) { ?>
34 34
                   <?php include('person.php'); ?>
35 35
                 <?php } ?>
36 36
               <?php } ?>
37 37
 
38
-              <?php if ( $members ) { ?>
38
+              <?php if ($members) { ?>
39 39
                 <h2><?= sprintf(gettext('People matching <em class="current-search-term">%s</em>'), _htmlentities($searchstring)) ?></h2>
40
-                <?php foreach ( $members as $member ) { ?>
40
+                <?php foreach ($members as $member) { ?>
41 41
                     <?php include('person.php'); ?>
42 42
                 <?php } ?>
43 43
                 <hr>
@@ -45,43 +45,43 @@  discard block
 block discarded – undo
45 45
 
46 46
               <?php if ($glossary) { ?>
47 47
                 <h2>Glossary items matching <em class="current-search-term"><?= _htmlentities($searchstring) ?></em></h2>
48
-                <?php foreach ( $glossary as $item ) { ?>
48
+                <?php foreach ($glossary as $item) { ?>
49 49
                     <?php include('glossary.php'); ?>
50 50
                 <?php } ?>
51 51
                 <hr>
52 52
               <?php } ?>
53 53
 
54
-              <?php if ( isset($pid) && $wtt == 2 ) { ?>
54
+              <?php if (isset($pid) && $wtt == 2) { ?>
55 55
                 <p>I want to <a href="https://www.writetothem.com/lords/?pid=<?= $pid ?>">write to <?= $wtt_lord_name ?></a></p>
56 56
               <?php } ?>
57 57
 
58
-              <?php if ( isset($error) ) { ?>
58
+              <?php if (isset($error)) { ?>
59 59
                 There was an error &ndash; <?= $error ?> &ndash; searching for <em class="current-search-term"><?= _htmlentities($searchstring) ?></em>.
60 60
               <?php } else { ?>
61 61
                 <h2>
62 62
                   <?php
63 63
                         $term = sprintf('<em class="current-search-term">%s</em>', _htmlentities($searchdescription));
64
-                        if ( $pagination_links ) { ?>
64
+                        if ($pagination_links) { ?>
65 65
                     <?= sprintf(gettext('Results %s–%s of %s for %s'), $pagination_links['first_result'], $pagination_links['last_result'], $info['total_results'], $term) ?>
66
-                  <?php } else if ( $info['total_results'] == 1 ) { ?>
66
+                  <?php } else if ($info['total_results'] == 1) { ?>
67 67
                     <?= sprintf(gettext('The only result for %s'), $term) ?>
68
-                  <?php } else if ( $info['total_results'] == 0 ) { ?>
68
+                  <?php } else if ($info['total_results'] == 0) { ?>
69 69
                     <?= sprintf(gettext('There were no results for %s'), $term) ?>
70 70
                   <?php } else { ?>
71 71
                     <?= sprintf(gettext('All %s results for %s'), $info['total_results'], $term) ?>
72 72
                   <?php } ?>
73 73
                 </h2>
74 74
 
75
-                  <?php if ( $info['spelling_correction'] ) { ?>
76
-                    <p><?= sprintf(gettext('Did you mean %s?'), '<a href="/search/?q=' . urlencode($info['spelling_correction']) . '">' . _htmlentities( $info['spelling_correction_display'] ) . '</a>') ?></p>
75
+                  <?php if ($info['spelling_correction']) { ?>
76
+                    <p><?= sprintf(gettext('Did you mean %s?'), '<a href="/search/?q=' . urlencode($info['spelling_correction']) . '">' . _htmlentities($info['spelling_correction_display']) . '</a>') ?></p>
77 77
                   <?php } ?>
78 78
 
79
-                  <?php if ( $info['total_results'] ) { ?>
79
+                  <?php if ($info['total_results']) { ?>
80 80
                     <ul class="search-result-display-options">
81
-                      <?php if ( $sort_order == 'relevance' ) { ?>
81
+                      <?php if ($sort_order == 'relevance') { ?>
82 82
                         <li><?= gettext('Sorted by relevance') ?></li>
83 83
                         <li><?= gettext('Sort by date') ?>: <a href="<?= $urls['newest'] ?>"><?= gettext('newest') ?></a> / <a href="<?= $urls['oldest'] ?>"><?= gettext('oldest') ?></a></li>
84
-                      <?php } else if ( $sort_order == 'oldest' ) { ?>
84
+                      <?php } else if ($sort_order == 'oldest') { ?>
85 85
                         <li><?= sprintf(gettext('Sort by <a href="%s">relevance</a>'), $urls['relevance']) ?></li>
86 86
                         <li><?= gettext('Sorted by date') ?>: <a href="<?= $urls['newest'] ?>"><?= gettext('newest') ?></a> / <?= gettext('oldest') ?></li>
87 87
                       <?php } else { ?>
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
                     </ul>
93 93
                   <?php } ?>
94 94
 
95
-                  <?php foreach ( $rows as $result ) { ?>
95
+                  <?php foreach ($rows as $result) { ?>
96 96
                     <div class="search-result search-result--generic">
97 97
                         <h3 class="search-result__title"><a href="<?= $result['listurl'] ?>"><?= $result['parent']['body'] ?></a> (<?= format_date($result['hdate'], SHORTDATEFORMAT) ?>)</h3>
98 98
                         <p class="search-result__description"><?= isset($result['speaker']) ? $result['speaker']['name'] . ': ' : '' ?><?= $result['extract'] ?></p>
@@ -101,16 +101,16 @@  discard block
 block discarded – undo
101 101
 
102 102
                 <hr>
103 103
 
104
-                  <?php if ( $pagination_links ) { ?>
104
+                  <?php if ($pagination_links) { ?>
105 105
                     <div class="search-result-pagination">
106
-                      <?php if ( isset($pagination_links['prev']) ) { ?>
106
+                      <?php if (isset($pagination_links['prev'])) { ?>
107 107
                         <a href="<?= $pagination_links['firstpage']['url'] ?>" title="<?= gettext('First page') ?>">&lt;&lt;</a>
108 108
                         <a href="<?= $pagination_links['prev']['url'] ?>" title="<?= gettext('Previous page') ?>">&lt;</a>
109 109
                       <?php } ?>
110
-                      <?php foreach ( $pagination_links['nums'] as $link ) { ?>
110
+                      <?php foreach ($pagination_links['nums'] as $link) { ?>
111 111
                         <a href="<?= $link['url'] ?>"<?= $link['current'] ? ' class="search-result-pagination__current-page"' : '' ?>><?= $link['page'] ?></a>
112 112
                       <?php } ?>
113
-                      <?php if ( isset($pagination_links['next']) ) { ?>
113
+                      <?php if (isset($pagination_links['next'])) { ?>
114 114
                         <a href="<?= $pagination_links['next']['url'] ?>" title="<?= gettext('Next page') ?>">&gt;</a>
115 115
                         <a href="<?= $pagination_links['lastpage']['url'] ?>" title="<?= gettext('Final page') ?>">&gt;&gt;</a>
116 116
                       <?php } ?>
Please login to merge, or discard this patch.
www/includes/easyparliament/templates/html/search/sidebar.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@
 block discarded – undo
1 1
             <div class="search-page__section__secondary search-page-sidebar">
2
-                <?php if ( isset( $search_sidebar['email'] ) ) { ?>
2
+                <?php if (isset($search_sidebar['email'])) { ?>
3 3
                 <h2><?= gettext('Create an alert') ?></h2>
4 4
                 <p class="sidebar-item-with-icon">
5 5
                     <?= sprintf(gettext('<a href="%s">Subscribe to an email alert</a> for <em class="current-search-term">%s</em>'), $search_sidebar['email'], $search_sidebar['email_desc']) ?>
6
-                    <?php if (isset( $search_sidebar['email_section'] ) ) { ?>
6
+                    <?php if (isset($search_sidebar['email_section'])) { ?>
7 7
                     <br><small><?= sprintf(gettext('(or just <a href="%s">%s</a>)'), $search_sidebar['email_section'], $search_sidebar['email_desc_section']) ?></small>
8 8
                     <?php } ?>
9 9
                 </p>
Please login to merge, or discard this patch.
www/includes/easyparliament/templates/html/section/_section_toc.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 $divisions_to_link = array();
4
-foreach($data['rows'] as $speech) {
4
+foreach ($data['rows'] as $speech) {
5 5
 
6 6
     # Only care about divisions...
7 7
     if ($speech['htype'] != 14) {
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
                     <li><a href="#g<?= gid_to_anchor($speech['gid']) ?>"><?= sprintf(gettext('Division number %s'), $division['number']) ?></a>
35 35
                         <?php if ($division['has_description']) { ?>
36 36
                             <br><span class="policy-vote__text">
37
-                                <?php include( dirname(__FILE__) . '/../divisions/_vote_description.php'); ?>
37
+                                <?php include(dirname(__FILE__) . '/../divisions/_vote_description.php'); ?>
38 38
                             </span>
39 39
                         <?php } ?>
40 40
 
Please login to merge, or discard this patch.
www/includes/easyparliament/templates/html/section/_business_list_item.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <a href="<?= $item['list_url'] ?>" class="business-list__title">
2 2
     <h3>
3
-      <?php if ( isset( $item['parent'] ) ) { ?>
3
+      <?php if (isset($item['parent'])) { ?>
4 4
         <?= $item['parent']['body'] ?>
5 5
         <br><?= $item['body'] ?>
6 6
       <?php } else { ?>
@@ -12,11 +12,11 @@  discard block
 block discarded – undo
12 12
       <?=  isset($item['contentcount']) ? '&middot; ' . sprintf(ngettext('%s speech', '%s speeches', $item['contentcount']), $item['contentcount']) : '' ?>
13 13
     </span>
14 14
 </a>
15
-<?php if ( isset( $item['child'] ) ) { ?>
15
+<?php if (isset($item['child'])) { ?>
16 16
 <p class="business-list__excerpt">
17
-  <?php if ( isset($item['child']['speaker']) && count($item['child']['speaker']) > 0 ) { ?>
17
+  <?php if (isset($item['child']['speaker']) && count($item['child']['speaker']) > 0) { ?>
18 18
     <a href="<?= $item['child']['speaker']['url'] ?>"><?= $item['child']['speaker']['name'] ?></a>
19 19
   <?php } ?>
20
-  <?= strip_tags(trim_characters( $item['child']['body'], 0, 200 )) ?>
20
+  <?= strip_tags(trim_characters($item['child']['body'], 0, 200)) ?>
21 21
 </p>
22 22
 <?php } ?>
Please login to merge, or discard this patch.
www/includes/easyparliament/templates/html/people/index.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@
 block discarded – undo
82 82
         </div>
83 83
 
84 84
       <?php } else {
85
-      $pc_form = ($type == 'mlas' || $type == 'msps' || $type == 'mss');
85
+        $pc_form = ($type == 'mlas' || $type == 'msps' || $type == 'mss');
86 86
 ?>
87 87
 
88 88
         <form action="/<?= $pc_form ? 'postcode' : 'search' ?>/">
Please login to merge, or discard this patch.
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
                           <?= sprintf(gettext('Based on postcode <strong>%s</strong>'), $mp_data['postcode']) ?>
29 29
                           <a href="<?= $mp_data['change_url'] ?>"><?= gettext('(Change postcode)') ?></a>
30 30
                       </p>
31
-                    <?php if ( isset( $mp_data ) && $type != 'mlas' ) { ?>
31
+                    <?php if (isset($mp_data) && $type != 'mlas') { ?>
32 32
                       <h3><?php
33 33
                         if ($mp_data['former']) {
34 34
                             printf(gettext('Your former %s is'), $rep_name);
@@ -46,8 +46,8 @@  discard block
 block discarded – undo
46 46
                         </p>
47 47
                     </a>
48 48
                     <?php }
49
-                    if ( isset($reps) ) {
50
-                        if ( isset($mp_data) && $type != 'mlas' ) { ?>
49
+                    if (isset($reps)) {
50
+                        if (isset($mp_data) && $type != 'mlas') { ?>
51 51
                     <div class="people-list__your-mp__replist-header">
52 52
                         <?php } ?>
53 53
                       <h3><?php
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
                         }
67 67
                         ?></h3>
68 68
                     </div>
69
-                        <?php foreach ( $reps as $rep ) { ?>
69
+                        <?php foreach ($reps as $rep) { ?>
70 70
                     <a href="<?= $rep['mp_url'] ?>" class="people-list__person">
71 71
                     <img class="people-list__person__image" src="<?= $rep['image'] ?>">
72 72
                         <h2 class="people-list__person__name"><?= $rep['name'] ?></h2>
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
             <div class="search-page__section search-page__section--search">
90 90
                 <div class="search-page__section__primary">
91 91
                     <p class="search-page-main-inputs">
92
-                    <?php if ( $type == 'peers' ) { ?>
92
+                    <?php if ($type == 'peers') { ?>
93 93
                         <label for="find-mp-by-name-or-postcode"><?= sprintf(gettext('Find %s by name:'), $rep_plural) ?></label>
94 94
                     <?php } elseif ($pc_form) { ?>
95 95
                         <label for="find-mp-by-name-or-postcode"><?= sprintf(gettext('Find your %s by postcode:'), $rep_name) ?></label>
@@ -137,12 +137,12 @@  discard block
 block discarded – undo
137 137
             <div class="search-page__section__primary">
138 138
             <h2><?= sprintf(gettext('All %s'), $rep_plural) ?></h2>
139 139
 
140
-                <?php if ( $type != 'peers' ) { ?>
140
+                <?php if ($type != 'peers') { ?>
141 141
                 <ul class="search-result-display-options">
142
-                    <?php if ( $order == 'given_name' ) { ?>
142
+                    <?php if ($order == 'given_name') { ?>
143 143
                     <li><?= gettext('<strong>Sorted by</strong> First name') ?></li>
144 144
                     <li><?= gettext('Sort by') ?> <a href="<?= $urls['by_last'] ?>"><?= gettext('Last name') ?></a> / <a href="<?= $urls['by_party'] ?>"><?= gettext('Party') ?></a></li>
145
-                    <?php } else if ( $order == 'party' ) { ?>
145
+                    <?php } else if ($order == 'party') { ?>
146 146
                     <li><?= gettext('<strong>Sorted by</strong> Party') ?></li>
147 147
                     <li><?= gettext('Sort by') ?> <a href="<?= $urls['by_first'] ?>"><?= gettext('First name') ?></a> / <a href="<?= $urls['by_last'] ?>"><?= gettext('Last name') ?></a></li>
148 148
                     <?php } else { ?>
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
                 </ul>
153 153
                 <?php } else { ?>
154 154
                 <ul class="search-result-display-options">
155
-                    <?php if ( $order == 'party' ) { ?>
155
+                    <?php if ($order == 'party') { ?>
156 156
                     <li><?= gettext('<strong>Sorted by</strong> Party') ?></li>
157 157
                     <li>Sort by <a href="<?= $urls['by_name'] ?>"><?= gettext('Name') ?></a></li>
158 158
                     <?php } else { ?>
@@ -202,10 +202,10 @@  discard block
 block discarded – undo
202 202
                     }
203 203
                 }
204 204
                 $initial_link = '';
205
-                foreach ( $data as $person ) {
205
+                foreach ($data as $person) {
206 206
                     if ($order != 'party') {
207
-                        $initial = substr( strtoupper($person[$a_to_z_key]), 0, 1);
208
-                        if ( $initial != $current_initial ) {
207
+                        $initial = substr(strtoupper($person[$a_to_z_key]), 0, 1);
208
+                        if ($initial != $current_initial) {
209 209
                             $current_initial = $initial;
210 210
                             $initial_link = "name=\"$initial\" ";
211 211
                         } else {
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
                 </noscript>
220 220
                         <h2 class="people-list__person__name"><?= ucfirst($person['name']) ?></h2>
221 221
                         <p class="people-list__person__memberships">
222
-                        <?php if ( $person['constituency'] ) { ?>
222
+                        <?php if ($person['constituency']) { ?>
223 223
                         <span class="people-list__person__constituency"><?= $person['constituency'] ?></span>
224 224
                         <?php } ?>
225 225
                         <span class="people-list__person__party <?= slugify($person['party']) ?>"><?= $person['party'] ?></span>
@@ -237,7 +237,7 @@  discard block
 block discarded – undo
237 237
                 <a href="<?= $urls['by_csv'] ?>"><?= gettext('Download this list as a CSV') ?></a>
238 238
                     <?= gettext('suitable for Excel') ?>
239 239
                 </p>
240
-                <?php if ( $type == 'mps' ) { ?>
240
+                <?php if ($type == 'mps') { ?>
241 241
                 <style>
242 242
                 .js #past-list-dates { display: none; }
243 243
                 </style>
@@ -282,7 +282,7 @@  discard block
 block discarded – undo
282 282
                     </p>
283 283
                 </form>
284 284
 
285
-                <?php } else if ( $type == 'msps' ) { ?>
285
+                <?php } else if ($type == 'msps') { ?>
286 286
                     <p class="past-list-dates" id="past-list-dates">
287 287
                         <a href="<?= $urls['plain'] ?>?date=2011-05-05">MSPs at 2011 election</a>
288 288
                         <a href="<?= $urls['plain'] ?>?date=2007-05-03">MSPs at 2007 election</a>
Please login to merge, or discard this patch.
www/includes/easyparliament/templates/html/user/view_user.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 
9 9
                 <div class="row">
10 10
                 <span class="label"><?= gettext('Website') ?></span>
11
-                <span class="formw"><?= $website == '' ? 'none' : '<a rel="nofollow" href="' . _htmlentities($website) . '">'. _htmlentities($website) . '</a>' ?></span>
11
+                <span class="formw"><?= $website == '' ? 'none' : '<a rel="nofollow" href="' . _htmlentities($website) . '">' . _htmlentities($website) . '</a>' ?></span>
12 12
                 </div>
13 13
 
14 14
                 <div class="row">
Please login to merge, or discard this patch.