Passed
Pull Request — master (#1700)
by Struan
04:10
created
www/includes/easyparliament/templates/html/section/_business_section.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@  discard block
 block discarded – undo
6 6
         </div>
7 7
 
8 8
         <?php
9
-            if ( isset($content['data']['data']) ) {
9
+            if (isset($content['data']['data'])) {
10 10
                 $data = $content['data']['data'];
11 11
                 include '_business_list.php'; ?>
12 12
                 <div class="business-section__secondary">
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
                         include '_calendar_section.php';
21 21
                         ?>
22 22
                     </div>
23
-                  <?php if ( isset($content['rssurl']) ) { ?>
23
+                  <?php if (isset($content['rssurl'])) { ?>
24 24
                     <div class="business-section__secondary__item">
25 25
                         <p class="rss-feed">
26 26
                             <a href="<?= WEBPATH . $content['rssurl'] ?>"><?= sprintf(gettext('RSS feed of %s'), $title) ?></a>
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/senedd/index.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
                 <div class="row nested-row">
42 42
                     <div class="homepage-in-the-news homepage-content-section">
43 43
                         <?php if ( $featured ) {
44
-                             include dirname(__FILE__) . "/../homepage/featured.php";
44
+                                include dirname(__FILE__) . "/../homepage/featured.php";
45 45
                         } ?>
46 46
                     </div>
47 47
                     <div class="homepage-create-alert homepage-content-section">
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -4,10 +4,10 @@  discard block
 block discarded – undo
4 4
             <div class="hero__mp-search__wrap">
5 5
                 <h1><?= gettext('Do your MSs represent you?') ?></h1>
6 6
                 <div class="row collapse">
7
-                    <?php if ( count($data['regional']) > 0 ) { ?>
7
+                    <?php if (count($data['regional']) > 0) { ?>
8 8
                         <ul class="homepage-rep-list">
9 9
                             <li><?= gettext('Your MSs:') ?></li>
10
-                        <?php foreach ( $data['regional'] as $ms ) { ?>
10
+                        <?php foreach ($data['regional'] as $ms) { ?>
11 11
                             <li class="homepage-rep-list__rep"><a href="/ms/?p=<?= $ms['person_id'] ?>"><?= $ms['name'] ?></a></li>
12 12
                         <?php } ?>
13 13
                         </ul>
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
             <div class="panel panel--flushtop clearfix">
41 41
                 <div class="row nested-row">
42 42
                     <div class="homepage-in-the-news homepage-content-section">
43
-                        <?php if ( $featured ) {
43
+                        <?php if ($featured) {
44 44
                              include dirname(__FILE__) . "/../homepage/featured.php";
45 45
                         } ?>
46 46
                     </div>
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
                     <div class="homepage-recently homepage-content-section">
86 86
                         <h2><?= gettext('Recently in the Welsh Parliament') ?></h2>
87 87
                         <ul class="recently__list"><?php
88
-                            foreach ( $debates['recent'] as $recent ) {
88
+                            foreach ($debates['recent'] as $recent) {
89 89
                                 include dirname(__FILE__) . '/../homepage/recent-debates.php';
90 90
                             }
91 91
                         ?></ul>
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.
www/includes/easyparliament/templates/html/user/index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
 
38 38
           <div class="row">
39 39
             <span class="label"><?= gettext('Website') ?></span>
40
-            <span class="formw"><?= $website == '' ? 'none' : '<a rel="nofollow" href="' . _htmlentities($website) . '">'. _htmlentities($website) . '</a>' ?></span>
40
+            <span class="formw"><?= $website == '' ? 'none' : '<a rel="nofollow" href="' . _htmlentities($website) . '">' . _htmlentities($website) . '</a>' ?></span>
41 41
           </div>
42 42
 
43 43
           <?php if ($facebook_user) { ?>
Please login to merge, or discard this patch.
www/includes/easyparliament/templates/html/mp/profile.php 3 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
 
84 84
                             include '_vote_description.php';
85 85
 
86
-                          } ?>
86
+                            } ?>
87 87
                         </ul>
88 88
 
89 89
                         <p>We have <b>lots more</b> plain English analysis of <?= $full_name ?>&rsquo;s voting record  on issues like health, welfare, taxation and more. Visit <a href="<?= $member_url ?>/votes"><?= $full_name ?>&rsquo;s full vote analysis page</a> for more.</p>
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
 
132 132
                             include '_vote_description.php';
133 133
 
134
-                          } ?>
134
+                            } ?>
135 135
                         </ul>
136 136
 
137 137
                         <p>We have <b>lots more</b> plain English analysis of <?= $full_name ?>&rsquo;s voting record on issues like health, welfare, taxation and more. Visit <a href="<?= $member_url ?>/votes"><?= $full_name ?>&rsquo;s full vote analysis page</a> for more.</p>
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
 
172 172
                             include '_vote_description.php';
173 173
 
174
-                          } ?>
174
+                            } ?>
175 175
                         </ul>
176 176
 
177 177
                         <p class="voting-information-provenance">
@@ -413,7 +413,7 @@  discard block
 block discarded – undo
413 413
                         printf(gettext('Voting information from <a href="%s">Public Whip</a>.'), "https://www.publicwhip.org.uk/mp.php?id=uk.org.publicwhip/member/ $member_id&amp;showall=yes"); ?></p>
414 414
 
415 415
                   <?php if($image && $image['exists']) {
416
-                      if(isset($data['photo_attribution_text'])) { ?>
416
+                        if(isset($data['photo_attribution_text'])) { ?>
417 417
                     <p>
418 418
                       <?php if(isset($data['photo_attribution_link'])) { ?>
419 419
                         <?= gettext('Profile photo:') ?>
@@ -423,7 +423,7 @@  discard block
 block discarded – undo
423 423
                       <?php } ?>
424 424
                     </p>
425 425
                   <?php }
426
-                  } else { ?>
426
+                    } else { ?>
427 427
                     <p>
428 428
                         We&rsquo;re missing a photo of <?= $full_name ?>.
429 429
                         If you have a photo <em>that you can release under
Please login to merge, or discard this patch.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -217,11 +217,14 @@
 block discarded – undo
217 217
                         <?= $recent_appearances['additional_links'] ?>
218 218
                         <?php endif; ?>
219 219
 
220
-                    <?php else: ?>
220
+                    <?php else {
221
+    : ?>
221 222
 
222 223
                         <p><?=gettext('No recent appearances to display.') ?></p>
223 224
 
224
-                    <?php endif; ?>
225
+                    <?php endif;
226
+}
227
+?>
225 228
 
226 229
                 </div>
227 230
                 <?php endif; ?>
Please login to merge, or discard this patch.
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
                 </div>
64 64
               <?php endif; ?>
65 65
 
66
-                <?php if ( !$current_member[HOUSE_TYPE_COMMONS] ) { ?>
66
+                <?php if (!$current_member[HOUSE_TYPE_COMMONS]) { ?>
67 67
                     <?php if (count($policyPositions->positions) > 0) { ?>
68 68
                     <div class="panel">
69 69
                         <a name="votes"></a>
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
                             $policy_direction = $key_vote["person_position"];
117 117
                             $policy_group = "highlighted";
118 118
                             $party_score_difference = $key_vote["score_difference"];
119
-                            $party_position = $key_vote['party_position'] ;
119
+                            $party_position = $key_vote['party_position'];
120 120
                             $comparison_party = $data["comparison_party"];
121 121
                             $current_party_comparison = $data["current_party_comparison"];
122 122
                             $party_voting_line = sprintf("%s, %s", $party, $diff['party_voting_summary']);
@@ -138,9 +138,9 @@  discard block
 block discarded – undo
138 138
 
139 139
                         <p>We have <b>lots more</b> plain English analysis of <?= $full_name ?>&rsquo;s voting record on issues like health, welfare, taxation and more. Visit <a href="<?= $member_url ?>/votes"><?= $full_name ?>&rsquo;s full vote analysis page</a> for more.</p>
140 140
 
141
-                    <?php elseif (count($policyPositions->positions) > 0 ): ?>
141
+                    <?php elseif (count($policyPositions->positions) > 0): ?>
142 142
                         <?php if (count($party_positions) && $party_member_count > 1) { ?>
143
-                            <?php if ($current_party_comparison <> $comparison_party){ ?> 
143
+                            <?php if ($current_party_comparison <> $comparison_party) { ?> 
144 144
                                 <p>
145 145
                                     <?= $full_name ?> is a <?= $party ?> MP, but has changed parties or become independent.
146 146
                                 </p>
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
                           <?php foreach ($policyPositions->positions as $key_vote) {
165 165
                             
166 166
                             $policy_id = $key_vote['policy_id'];
167
-                            $covid_affected = in_array($policy_id, $covid_policy_list);                            $description = ucfirst($key_vote['desc']);
167
+                            $covid_affected = in_array($policy_id, $covid_policy_list); $description = ucfirst($key_vote['desc']);
168 168
                             $link = sprintf(
169 169
                                 '%s/divisions?policy=%s',
170 170
                                 $member_url,
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
                         </p>
184 184
 
185 185
                         <p>We have <b>lots more</b> plain English analysis of <?= $full_name ?>&rsquo;s voting record  on issues like health, welfare, taxation and more. Visit <a href="<?= $member_url ?>/votes"><?= $full_name ?>&rsquo;s full vote analysis page</a> for more.</p>
186
-                    <?php elseif (count($policyPositions->positions) == 0 ): ?>
186
+                    <?php elseif (count($policyPositions->positions) == 0): ?>
187 187
 
188 188
                         <p>No votes to display.</p>
189 189
 
@@ -415,10 +415,10 @@  discard block
 block discarded – undo
415 415
                     <p><?php print gettext('This data was produced by TheyWorkForYou from a variety of sources.') . ' ';
416 416
                         printf(gettext('Voting information from <a href="%s">Public Whip</a>.'), "https://www.publicwhip.org.uk/mp.php?id=uk.org.publicwhip/member/ $member_id&amp;showall=yes"); ?></p>
417 417
 
418
-                  <?php if($image && $image['exists']) {
419
-                      if(isset($data['photo_attribution_text'])) { ?>
418
+                  <?php if ($image && $image['exists']) {
419
+                      if (isset($data['photo_attribution_text'])) { ?>
420 420
                     <p>
421
-                      <?php if(isset($data['photo_attribution_link'])) { ?>
421
+                      <?php if (isset($data['photo_attribution_link'])) { ?>
422 422
                         <?= gettext('Profile photo:') ?>
423 423
                         <a href="<?= $data['photo_attribution_link'] ?>"><?= $data['photo_attribution_text'] ?></a>
424 424
                       <?php } else { ?>
Please login to merge, or discard this patch.
www/includes/easyparliament/templates/html/mp/header.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
                 <?php
22 22
                     $lat = $latest_membership['party'] == 'Bishop' ? '' : $latest_membership['party'];
23 23
                     if ($latest_membership['current']) {
24
-                          if ($latest_membership['constituency']) {
24
+                            if ($latest_membership['constituency']) {
25 25
                             # First %s is party, second is type of rep (e.g. MS), third is constituency name
26 26
                             printf(gettext('<span class="person-header__about__position__role">%s %s</span> for <span class="person-header__about__position__constituency">%s</span>'),
27 27
                                 $lat, $latest_membership['rep_name'], $latest_membership['constituency']);
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
                                 $lat, $latest_membership['rep_name']);
31 31
                         }
32 32
                     } else {
33
-                          if ($latest_membership['constituency']) {
33
+                            if ($latest_membership['constituency']) {
34 34
                             printf(gettext('<span class="person-header__about__position__role">Former %s %s</span> for <span class="person-header__about__position__constituency">%s</span>'),
35 35
                                 $lat, $latest_membership['rep_name'], $latest_membership['constituency']);
36 36
                         } else {
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
                 } else if ($the_users_mp) {
70 70
                     $wtt_url = $wtt_url . "?a=WMC&amp;pc=" . _htmlentities(urlencode($user_postcode));
71 71
                 }
72
-              ?>
72
+                ?>
73 73
                 <a href="<?= $wtt_url ?>" class="button" onclick="trackLinkClick(this, 'Links', 'WriteToThem', 'Person'); return false;"><?= gettext('Send a message') ?></a>
74 74
               <?php } ?>
75 75
               <?php if ($has_email_alerts) { ?>
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@  discard block
 block discarded – undo
1 1
 <div class="person-header <?= $current_member_anywhere ? '' : 'person-header--historical'; ?>">
2 2
     <div class="full-page__row">
3 3
         <div class="full-page__unit">
4
-          <?php if ( $image ) { ?>
4
+          <?php if ($image) { ?>
5 5
             <div class="person-header__image <?= $image['size'] == 'S' ? 'person-header__image--small' : '' ?>">
6
-              <?php if ( $image['size'] == 'S' ) { ?>
6
+              <?php if ($image['size'] == 'S') { ?>
7 7
                 <span style="background-image: url('<?= $image['url'] ?>');"></span>
8 8
               <?php } ?>
9 9
                 <img src="<?= $image['url'] ?>">
@@ -11,12 +11,12 @@  discard block
 block discarded – undo
11 11
           <?php } ?>
12 12
             <div class="person-header__about">
13 13
                 <h1 class="person-header__about__name"><?= ucfirst($full_name) ?></h1>
14
-              <?php if ( $known_for ) { ?>
14
+              <?php if ($known_for) { ?>
15 15
                 <p class="person-header__about__known-for">
16 16
                     <?= $known_for ?>
17 17
                 </p>
18 18
               <?php } ?>
19
-              <?php if ( $latest_membership && $latest_membership['house'] != HOUSE_TYPE_ROYAL ) { ?>
19
+              <?php if ($latest_membership && $latest_membership['house'] != HOUSE_TYPE_ROYAL) { ?>
20 20
                 <p class="person-header__about__position">
21 21
                 <?php
22 22
                     $lat = $latest_membership['party'] == 'Bishop' ? '' : $latest_membership['party'];
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
               <?php } ?>
44 44
               <?php if (count($social_links) > 0) { ?>
45 45
                 <p class="person-header__about__media">
46
-                  <?php foreach ($social_links as $link){ ?>
46
+                  <?php foreach ($social_links as $link) { ?>
47 47
                       <a href="<?= $link['href'] ?>" onclick="trackLinkClick(this, 'Social-Link', '<?= $link['type'] ?>', '<?= $link['text'] ?>'); return false;"><?= $link['text'] ?></a>
48 48
                   <?php } ?>
49 49
                 </p>
Please login to merge, or discard this patch.