Passed
Pull Request — master (#1932)
by Struan
05:36
created
www/docs/addlink/index.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,16 +1,16 @@  discard block
 block discarded – undo
1 1
     <?php
2 2
 
3 3
 include_once '../../includes/easyparliament/init.php';
4
-include_once INCLUDESPATH."easyparliament/glossary.php";
5
-include_once INCLUDESPATH."easyparliament/glossarylist.php";
4
+include_once INCLUDESPATH . "easyparliament/glossary.php";
5
+include_once INCLUDESPATH . "easyparliament/glossarylist.php";
6 6
 
7 7
 $this_page = "glossary_addlink";
8 8
 
9
-$args = array( 'action' => $this_page);
9
+$args = array('action' => $this_page);
10 10
 
11 11
 // First things first...
12 12
 
13
-if ((get_http_var('g') != '') && (get_http_var('previewterm') == '') ) {
13
+if ((get_http_var('g') != '') && (get_http_var('previewterm') == '')) {
14 14
     // We're searching for something.
15 15
     $args['s'] = filter_user_input(get_http_var('g'), 'strict');
16 16
     $GLOSSARY = new GLOSSARY($args);
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
 
26 26
 $PAGE->stripe_start();
27 27
 
28
-$data = array (
28
+$data = array(
29 29
     'title' => get_http_var('g'),
30 30
     'body'	=> get_http_var('definition')
31 31
 );
@@ -115,8 +115,8 @@  discard block
 block discarded – undo
115 115
 
116 116
     $PAGE->glossary_atoz($GLOSSARY);
117 117
 
118
-    $PAGE->stripe_end(array (
119
-        array (
118
+    $PAGE->stripe_end(array(
119
+        array(
120 120
             'type'		=> 'include',
121 121
             'content'	=> 'glossary_add'
122 122
         )
Please login to merge, or discard this patch.
www/docs/glossary/index.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
     $URL->update(["gl" => $GLOSSARY->next_term['glossary_id']]);
77 77
     $next_link = $URL->generate('url');
78 78
 
79
-    $nextprev =  [
79
+    $nextprev = [
80 80
         'next'	=>  [
81 81
             'url'	=> $next_link,
82 82
             'title'	=> 'Next term',
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
 
118 118
 $URL = new \MySociety\TheyWorkForYou\Url('glossary_addterm');
119 119
 $add_url = $URL->generate();
120
-print "<p>Think you know a phrase that should be here? Help us improve the site by <a href=\"".$add_url."\">adding it</a>.</p>";
120
+print "<p>Think you know a phrase that should be here? Help us improve the site by <a href=\"" . $add_url . "\">adding it</a>.</p>";
121 121
 
122 122
 $PAGE->stripe_end([
123 123
     [
Please login to merge, or discard this patch.