Completed
Pull Request — master (#1450)
by Nick
08:21 queued 03:29
created
www/docs/admin/banner.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
     global $banner;
62 62
     $banner_text = get_http_var('banner');
63 63
 
64
-    if ( $banner->set_text($banner_text) ) {
64
+    if ($banner->set_text($banner_text)) {
65 65
         $out = "<h4>update successful</h4>";
66 66
         $out .= "<p>Banner text is now:</p><p>$banner_text</p>";
67 67
     } else {
Please login to merge, or discard this patch.
www/docs/admin/policies.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
         )
111 111
     );
112 112
 
113
-    if ( $q->success() ) {
113
+    if ($q->success()) {
114 114
         $out = "<h4>update successful</h4>";
115 115
     }
116 116
 
@@ -125,9 +125,9 @@  discard block
 block discarded – undo
125 125
 
126 126
     $rettext .= '<div id="subnav_websites">';
127 127
     foreach ($subnav as $label => $path) {
128
-        $rettext .=  '<a href="'. $path . '">'. $label .'</a>';
128
+        $rettext .= '<a href="' . $path . '">' . $label . '</a>';
129 129
     }
130
-    $rettext .=  '</div>';
130
+    $rettext .= '</div>';
131 131
 
132 132
     return $rettext;
133 133
 }
Please login to merge, or discard this patch.
www/docs/api/api_getWMS.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -100,11 +100,11 @@
 block discarded – undo
100 100
     _api_getHansard_year('WMS', $y);
101 101
 }
102 102
 function api_getWMS_search($s) {
103
-    _api_getHansard_search( array(
103
+    _api_getHansard_search(array(
104 104
         's' => $s,
105 105
         'pid' => get_http_var('person'),
106 106
         'type' => 'wms',
107
-    ) );
107
+    ));
108 108
 }
109 109
 function api_getWMS_person($pid) {
110 110
     _api_getHansard_search(array(
Please login to merge, or discard this patch.
www/docs/api/api_getWrans.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,11 +57,11 @@
 block discarded – undo
57 57
     _api_getHansard_year('WRANS', $y);
58 58
 }
59 59
 function api_getWrans_search($s) {
60
-    _api_getHansard_search( array(
60
+    _api_getHansard_search(array(
61 61
         's' => $s,
62 62
         'pid' => get_http_var('person'),
63 63
         'type' => 'wrans',
64
-    ) );
64
+    ));
65 65
 }
66 66
 function api_getWrans_person($pid) {
67 67
     _api_getHansard_search(array(
Please login to merge, or discard this patch.
www/includes/easyparliament/glossarylist.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@  discard block
 block discarded – undo
2 2
 
3 3
 class GLOSSARYLIST {
4 4
 
5
-    public function render($data, $format='html', $template='glossary') {
5
+    public function render($data, $format = 'html', $template = 'glossary') {
6 6
         // Once we have the data that's to be rendered,
7 7
         // include the template.
8 8
 
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
             $format = 'html';
11 11
         }
12 12
 
13
-        include (INCLUDESPATH."easyparliament/templates/$format/$template.php");
13
+        include (INCLUDESPATH . "easyparliament/templates/$format/$template.php");
14 14
 
15 15
     }
16 16
 
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="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">Advanced search</a></li>
21
-              <?php if ( $is_adv ) { ?>
21
+              <?php if ($is_adv) { ?>
22 22
                 <?= $search_phrase ? '<li>Exactly: ' . _htmlentities($search_phrase) . '</li>' : '' ?>
23 23
                 <?= $search_exclude ? '<li>Excluding: ' . _htmlentities($search_exclude) . '</li>' : '' ?>
24 24
                 <?= $search_from ? '<li>From: ' . _htmlentities($search_from) . '</li>' : '' ?>
Please login to merge, or discard this patch.
www/includes/easyparliament/templates/html/search/sidebar.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@  discard block
 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>Create an alert</h2>
4 4
                 <p class="sidebar-item-with-icon">
5 5
                     <a href="<?= $search_sidebar['email'] ?>">Subscribe to an email alert</a>
6 6
                     for <em class="current-search-term"><?= $search_sidebar['email_desc'] ?></em>
7
-                    <?php if (isset( $search_sidebar['email_section'] ) ) { ?>
7
+                    <?php if (isset($search_sidebar['email_section'])) { ?>
8 8
                     <br><small>(or just <a href="<?= $search_sidebar['email_section'] ?>"><?= $search_sidebar['email_desc_section'] ?></a>)</small>
9 9
                     <?php } ?>
10 10
                 </p>
@@ -16,5 +16,5 @@  discard block
 block discarded – undo
16 16
                 <?php } ?>
17 17
 
18 18
 
19
-                <?php include( dirname(__FILE__) . '/../sidebar/looking_for.php' ) ?>
19
+                <?php include(dirname(__FILE__) . '/../sidebar/looking_for.php') ?>
20 20
             </div>
Please login to merge, or discard this patch.
www/includes/easyparliament/templates/html/hansard_glossary_search.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
     ?>
43 43
                 <dl id="searchresults">
44 44
 <?php
45
-    for ($i=0; $i<count($data['rows']); $i++) {
45
+    for ($i = 0; $i < count($data['rows']); $i++) {
46 46
 
47 47
         $row = $data['rows'][$i];
48 48
 
Please login to merge, or discard this patch.
www/includes/easyparliament/templates/html/homepage/recent-debates.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@  discard block
 block discarded – undo
1
-                            <?php if ( isset( $recent['child'] ) ) { ?>
1
+                            <?php if (isset($recent['child'])) { ?>
2 2
                             <li class="parliamentary-excerpt">
3 3
                             <h3 class="excerpt__title"><a href="<?= $recent['list_url'] ?>"><?= $recent['parent']['body'] ? $recent['parent']['body'] . ' : ' : '' ?><?= $recent['body'] ?></a></h3>
4 4
                                 <p class="meta"><?=format_date($recent['hdate'], LONGERDATEFORMAT); ?></p>
5 5
                                 <p class="meta excerpt__category"><a href="<?= $recent['more_url'] ?>"><?= $recent['desc'] ?></a></p>
6 6
                                 <p class="excerpt__statement">
7
-                                <?php if ( isset($recent['child']['speaker']) && count($recent['child']['speaker']) ) { ?>
7
+                                <?php if (isset($recent['child']['speaker']) && count($recent['child']['speaker'])) { ?>
8 8
                                 <a href="<?= $recent['child']['speaker']['url'] ?>"><?= $recent['child']['speaker']['name'] ?></a>
9 9
                                 <?php } ?>
10 10
                                 <?= trim_characters($recent['child']['body'], 0, 200) ?>
@@ -13,10 +13,10 @@  discard block
 block discarded – undo
13 13
                             <?php } else { ?>
14 14
                             <li class="parliamentary-excerpt">
15 15
                             <h3 class="excerpt__title"><?= $recent['desc'] ?></h3>
16
-                                <?php foreach ( $recent['data'] as $date => $details ) { ?>
16
+                                <?php foreach ($recent['data'] as $date => $details) { ?>
17 17
                                 <p class="meta"><?= $date ?></p>
18 18
                                 <p class="meta excerpt__category"><a href="<?= $recent['more_url'] ?>"><?= $recent['desc'] ?></a></p>
19
-                                <?php foreach ( $details as $bill ) { ?>
19
+                                <?php foreach ($details as $bill) { ?>
20 20
                                 <p class="excerpt__statement">
21 21
                                     <a href="<?= $bill['url'] ?>"><?= $bill['bill'] ?>, <?= $bill['sitting'] ?></a>
22 22
                                 </p>
Please login to merge, or discard this patch.