Passed
Push — master ( d7c477...ca5311 )
by Sam
05:11
created
www/docs/admin/searchlogs.php 1 patch
Spacing   +5 added lines, -5 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/searchlog.php");
4
+include_once (INCLUDESPATH . "easyparliament/searchlog.php");
5 5
 
6 6
 $this_page = "admin_searchlogs";
7 7
 
@@ -18,8 +18,8 @@  discard block
 block discarded – undo
18 18
     $host = trim_characters($host, strlen($host) - 25, 100);
19 19
     $time = relative_time($row['query_time']);
20 20
     $time = str_replace(" ago", "", $time);
21
-    $rows[] = array (
22
-        '<a href="'.$row['url'].'">' . _htmlentities($row['query']) . '</a>',
21
+    $rows[] = array(
22
+        '<a href="' . $row['url'] . '">' . _htmlentities($row['query']) . '</a>',
23 23
         $row['page_number'],
24 24
         $row['count_hits'],
25 25
         $host,
@@ -27,8 +27,8 @@  discard block
 block discarded – undo
27 27
     );
28 28
 }
29 29
 
30
-$tabledata = array (
31
-    'header' => array (
30
+$tabledata = array(
31
+    'header' => array(
32 32
         'Query',
33 33
         'Page',
34 34
         'Hits',
Please login to merge, or discard this patch.
www/docs/admin/failedsearches.php 1 patch
Spacing   +5 added lines, -5 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/searchlog.php");
4
+include_once (INCLUDESPATH . "easyparliament/searchlog.php");
5 5
 
6 6
 $this_page = "admin_failedsearches";
7 7
 
@@ -20,17 +20,17 @@  discard block
 block discarded – undo
20 20
     $max_time = relative_time($row['max_time']);
21 21
     $min_time = str_replace(" ago", "", $min_time);
22 22
     $max_time = str_replace(" ago", "", $max_time);
23
-    $rows[] = array (
23
+    $rows[] = array(
24 24
         $row['count_ips'],
25 25
         $row['group_count'],
26
-        '<a href="'.$row['url'].'">'._htmlentities($row['query']).'</a>',
26
+        '<a href="' . $row['url'] . '">' . _htmlentities($row['query']) . '</a>',
27 27
         $max_time,
28 28
         $min_time,
29 29
     );
30 30
 }
31 31
 
32
-$tabledata = array (
33
-    'header' => array (
32
+$tabledata = array(
33
+    'header' => array(
34 34
         'Distinct IPs',
35 35
         'Number of times',
36 36
         'Query',
Please login to merge, or discard this patch.
www/docs/admin/reports.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_commentreports";
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/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.