Completed
Push — master ( cfcf82...657c44 )
by Nick
21:51 queued 16:40
created
www/docs/admin/trackbacks.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 include_once '../../includes/easyparliament/init.php';
4
-include_once (INCLUDESPATH."easyparliament/commentreportlist.php");
4
+include_once (INCLUDESPATH . "easyparliament/commentreportlist.php");
5 5
 
6 6
 $this_page = "admin_trackbacks";
7 7
 
Please login to merge, or discard this patch.
www/docs/admin/comments.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 include_once '../../includes/easyparliament/init.php';
4
-include_once (INCLUDESPATH."easyparliament/commentreportlist.php");
4
+include_once (INCLUDESPATH . "easyparliament/commentreportlist.php");
5 5
 
6 6
 $this_page = "admin_comments";
7 7
 
Please login to merge, or discard this patch.
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/docs/api/api_getMembers.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -8,14 +8,14 @@  discard block
 block discarded – undo
8 8
     $q = $db->query($sql, $params);
9 9
     $output = array();
10 10
     $last_mod = 0;
11
-    for ($i=0; $i<$q->rows(); $i++) {
11
+    for ($i = 0; $i < $q->rows(); $i++) {
12 12
         $pid = $q->field($i, 'person_id');
13 13
         $row = array(
14 14
             'member_id' => $q->field($i, 'member_id'),
15 15
             'person_id' => $pid,
16 16
             'name' => html_entity_decode(member_full_name($q->field($i, 'house'), $q->field($i, 'title'),
17 17
                 $q->field($i, 'given_name'), $q->field($i, 'family_name'),
18
-                $q->field($i, 'lordofname') )),
18
+                $q->field($i, 'lordofname'))),
19 19
             'party' => isset($parties[$q->field($i, 'party')]) ? $parties[$q->field($i, 'party')] : $q->field($i, 'party'),
20 20
         );
21 21
         if ($q->field($i, 'house') != 2) {
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
     if (count($pids)) {
33 33
         $q = $db->query('SELECT person, dept, position, from_date, to_date FROM moffice
34 34
             WHERE to_date="9999-12-31" AND person IN (' . join(',', $pids) . ')');
35
-        for ($i=0; $i<$q->rows(); $i++) {
35
+        for ($i = 0; $i < $q->rows(); $i++) {
36 36
             $row = $q->row($i);
37 37
             $pid = $row['person'];
38 38
             unset($row['person']);
Please login to merge, or discard this patch.
www/docs/api/api_getConstituency.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
     $q = $db->query("select constituency, data_key, data_value from consinfo
61 61
                      where constituency = :constituency", array(':constituency' => $constituency));
62 62
     if ($q->rows()) {
63
-        for ($i=0; $i<$q->rows(); $i++) {
63
+        for ($i = 0; $i < $q->rows(); $i++) {
64 64
             $data_key = $q->field($i, 'data_key');
65 65
             $output[$data_key] = $q->field($i, 'data_value');
66 66
         }
Please login to merge, or discard this patch.
www/docs/mps/index.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
 include_once '../../includes/easyparliament/init.php';
4
-include_once INCLUDESPATH."easyparliament/people.php";
4
+include_once INCLUDESPATH . "easyparliament/people.php";
5 5
 
6 6
 if (get_http_var('msp')) {
7 7
     $type = 'MSPs';
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
 $args = $people->getArgs();
19 19
 $people->setMetaData($args);
20 20
 $data = $people->getData($args);
21
-if ( isset($args['f']) && $args['f'] == 'csv' ) {
21
+if (isset($args['f']) && $args['f'] == 'csv') {
22 22
     $people->sendAsCSV($data);
23 23
 } else {
24 24
     MySociety\TheyWorkForYou\Renderer::output("people/index", $data);
Please login to merge, or discard this patch.