Passed
Push — master ( c35b14...c67b7a )
by Matthew
05:11
created
www/docs/mp/index.php 1 patch
Upper-Lower-Casing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
  */
30 30
 
31 31
 // Disable the old PAGE class.
32
-$new_style_template = TRUE;
32
+$new_style_template = true;
33 33
 
34 34
 // Include all the things this page needs.
35 35
 include_once '../../includes/easyparliament/init.php';
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
 // Basic name, title and description
222 222
 $member_name = ucfirst($MEMBER->full_name());
223 223
 $title = $member_name;
224
-$desc = "Read $member_name's contributions to Parliament, including speeches and questions";
224
+$desc = "read $member_name's contributions to Parliament, including speeches and questions";
225 225
 
226 226
 // Enhance description if this is a current member
227 227
 if ($MEMBER->current_member_anywhere()) {
@@ -284,7 +284,7 @@  discard block
 block discarded – undo
284 284
 }
285 285
 
286 286
 $known_for = '';
287
-$current_offices_ignoring_committees = $MEMBER->offices('current', TRUE);
287
+$current_offices_ignoring_committees = $MEMBER->offices('current', true);
288 288
 if (count($current_offices_ignoring_committees) > 0) {
289 289
     $known_for = $current_offices_ignoring_committees[0];
290 290
 }
@@ -357,11 +357,11 @@  discard block
 block discarded – undo
357 357
 $data['has_email_alerts'] = ($MEMBER->current_member_anywhere() && !($MEMBER->current_member(HOUSE_TYPE_COMMONS) && $MEMBER->party() == 'Sinn Féin' && !$MEMBER->current_member(HOUSE_TYPE_NI)));
358 358
 $data['has_expenses'] = $data['leave_date'] > '2004-01-01';
359 359
 
360
-$data['pre_2010_expenses'] = False;
360
+$data['pre_2010_expenses'] = false;
361 361
 $data['post_2010_expenses'] = $data['leave_date'] > '2010-05-05' ? $MEMBER->extra_info['datadotparl_id'] : '';
362 362
 
363 363
 if ($data['entry_date'] < '2010-05-05') {
364
-    $data['pre_2010_expenses'] = True;
364
+    $data['pre_2010_expenses'] = true;
365 365
     // Set the expenses URL if we know it
366 366
     $data['expenses_url_2004'] = $MEMBER->extra_info['expenses_url'] ?? 'https://mpsallowances.parliament.uk/mpslordsandoffices/hocallowances/allowances%2Dby%2Dmp/';
367 367
 }
@@ -591,7 +591,7 @@  discard block
 block discarded – undo
591 591
  * Redirect to the canonical page for a member.
592 592
  */
593 593
 
594
-function member_redirect (&$MEMBER, $code = 301, $pagetype = NULL) {
594
+function member_redirect (&$MEMBER, $code = 301, $pagetype = null) {
595 595
     // We come here after creating a MEMBER object by various methods.
596 596
     // Now we redirect to the canonical MP page, with a person_id.
597 597
     if ($MEMBER->person_id()) {
Please login to merge, or discard this patch.