@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | $THISPAGE = new \MySociety\TheyWorkForYou\Url($this_page); |
52 | 52 | |
53 | 53 | $LOGINURL = new \MySociety\TheyWorkForYou\Url('userlogin'); |
54 | - $LOGINURL->insert(['ret' => $THISPAGE->generate('none') ]); |
|
54 | + $LOGINURL->insert(['ret' => $THISPAGE->generate('none')]); |
|
55 | 55 | |
56 | 56 | $text = "<a href=\"" . $LOGINURL->generate() . '">' . gettext('You’d better sign in!') . '</a>'; |
57 | 57 | } else { |
@@ -391,7 +391,7 @@ discard block |
||
391 | 391 | if (is_string($message)) { |
392 | 392 | // Sometimes we're just sending a single line to this function |
393 | 393 | // rather like the bigger array... |
394 | - $message = [ |
|
394 | + $message = [ |
|
395 | 395 | 'text' => $message, |
396 | 396 | ]; |
397 | 397 | } |
@@ -405,7 +405,7 @@ discard block |
||
405 | 405 | if (!isset($page_errors)) { |
406 | 406 | $page_errors = []; |
407 | 407 | } |
408 | - $page_errors[] = $message; |
|
408 | + $page_errors[] = $message; |
|
409 | 409 | } |
410 | 410 | |
411 | 411 | if ($fatal) { |
@@ -754,7 +754,7 @@ discard block |
||
754 | 754 | <a href="<?php |
755 | 755 | $URL = new \MySociety\TheyWorkForYou\Url("userpassword"); |
756 | 756 | $URL->insert(["email" => get_http_var("email")]); |
757 | - echo $URL->generate();?>" |
|
757 | + echo $URL->generate(); ?>" |
|
758 | 758 | class="button button button--secondary"><?= gettext('Forgotten Password?') ?></a> |
759 | 759 | </p> |
760 | 760 | |
@@ -1094,7 +1094,7 @@ discard block |
||
1094 | 1094 | |
1095 | 1095 | $body = trim_characters($report['body'], 0, 40); |
1096 | 1096 | |
1097 | - $tabledata['rows'][] = [ |
|
1097 | + $tabledata['rows'][] = [ |
|
1098 | 1098 | _htmlentities($report['firstname'] . ' ' . $report['lastname']), |
1099 | 1099 | _htmlentities($body), |
1100 | 1100 | $report['reported'], |
@@ -1176,11 +1176,11 @@ discard block |
||
1176 | 1176 | // Returns HTML suitable for putting in the sidebar on Admin pages. |
1177 | 1177 | global $this_page, $DATA; |
1178 | 1178 | |
1179 | - $pages = ['admin_home', |
|
1179 | + $pages = ['admin_home', |
|
1180 | 1180 | 'admin_comments', 'admin_searchlogs', 'admin_popularsearches', 'admin_failedsearches', |
1181 | 1181 | 'alert_stats', 'admin_statistics', 'admin_reportstats', |
1182 | 1182 | 'admin_commentreports', 'admin_glossary', 'admin_glossary_pending', 'admin_badusers', |
1183 | - 'admin_profile_message', 'admin_photos', 'admin_mpurls', 'admin_policies', 'admin_banner', 'admin_announcement','admin_featured', 'admin_topics', |
|
1183 | + 'admin_profile_message', 'admin_photos', 'admin_mpurls', 'admin_policies', 'admin_banner', 'admin_announcement', 'admin_featured', 'admin_topics', |
|
1184 | 1184 | 'admin_wikipedia', |
1185 | 1185 | ]; |
1186 | 1186 |