Passed
Push — master ( 4d7353...172ce8 )
by Matthew
04:35
created
www/docs/api/api_getPerson.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
 <?php
18 18
 }
19 19
 
20
-function _api_getPerson_row($row, $has_party=false) {
20
+function _api_getPerson_row($row, $has_party = false) {
21 21
     global $parties;
22 22
     $row['full_name'] = member_full_name($row['house'], $row['title'], $row['given_name'],
23 23
         $row['family_name'], $row['lordofname']);
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
     if ($has_party && isset($parties[$row['party']])) {
32 32
         $row['party'] = $parties[$row['party']];
33 33
     }
34
-    list($image,$sz) = MySociety\TheyWorkForYou\Utility\Member::findMemberImage($row['person_id']);
34
+    list($image, $sz) = MySociety\TheyWorkForYou\Utility\Member::findMemberImage($row['person_id']);
35 35
     if ($image) {
36 36
         list($width, $height) = getimagesize(str_replace(IMAGEPATH, BASEDIR . IMAGEPATH, $image));
37 37
         $row['image'] = $image;
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
     return $row;
59 59
 }
60 60
 
61
-function api_getPerson_id($id, $house='') {
61
+function api_getPerson_id($id, $house = '') {
62 62
     $db = new ParlDB;
63 63
     $params = array(
64 64
         ':person_id' => $id
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
     }
81 81
 }
82 82
 
83
-function _api_getPerson_output($q, $flatten=false) {
83
+function _api_getPerson_output($q, $flatten = false) {
84 84
     $output = array();
85 85
     $last_mod = 0;
86 86
     $house = null;
Please login to merge, or discard this patch.
www/docs/api/api_getConstituencies.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
         and c_main.main_name and constituency.name like :constituency_name and constituency.from_date <= date(now())
42 42
         and date(now()) <= constituency.to_date
43 43
         order by name', array(
44
-        ':constituency_name' => '%' . $s .'%'
44
+        ':constituency_name' => '%' . $s . '%'
45 45
         ));
46 46
     $output = array();
47 47
     $done = array();
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 function api_getConstituencies($date = 'now()') {
71 71
     $db = new ParlDB;
72 72
     $q = $db->query('select cons_id, name from constituency
73
-        where main_name and from_date <= date('.$date.') and date('.$date.') <= to_date
73
+        where main_name and from_date <= date('.$date . ') and date(' . $date . ') <= to_date
74 74
         order by name');
75 75
     $output = array();
76 76
     foreach ($q as $row) {
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
  */
153 153
 function _api_angle_between($a1, $a2) {
154 154
     if (abs($a1 - $a2) > M_PI) {
155
-        return 2*M_PI - abs($a1 - $a2);
155
+        return 2 * M_PI - abs($a1 - $a2);
156 156
     }
157 157
     return abs($a1 - $a2);
158 158
 }
Please login to merge, or discard this patch.
www/docs/api/api_getAlerts.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 function api_getAlerts_start_date($start_date) {
4
-    $args = array ('start_date' => $start_date, 'end_date' => get_http_var('end_date'));
4
+    $args = array('start_date' => $start_date, 'end_date' => get_http_var('end_date'));
5 5
     $alert = new ALERT();
6
-    $data = $alert->fetch_between($confirmed=1, $deleted=0, $args['start_date'], $args['end_date']);
6
+    $data = $alert->fetch_between($confirmed = 1, $deleted = 0, $args['start_date'], $args['end_date']);
7 7
     api_output($data);
8 8
 }
9 9
 
Please login to merge, or discard this patch.
www/docs/bills/2005-06/legislative-and-regulatory-reform/index.php 1 patch
Spacing   +31 added lines, -31 removed lines patch added patch discarded remove patch
@@ -2,10 +2,10 @@  discard block
 block discarded – undo
2 2
 
3 3
 $this_page = 'bill_index';
4 4
 include_once '../../../../includes/easyparliament/init.php';
5
-$DATA->set_page_metadata($this_page, 'heading','Legislative and Regulatory Reform Bill');
5
+$DATA->set_page_metadata($this_page, 'heading', 'Legislative and Regulatory Reform Bill');
6 6
 $PAGE->page_start();
7 7
 $PAGE->stripe_start();
8
-$PAGE->block_start(array ('title'=>'House of Commons - Normal Run'));
8
+$PAGE->block_start(array('title'=>'House of Commons - Normal Run'));
9 9
 ?>
10 10
 <ul>
11 11
 
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
     parse_bill('2006141.txt');
46 46
     $amendments = read_amendments('amendments.txt'); # The amendments, by number
47 47
     parse_amendments();
48
-    $out = $title."\n\n";
48
+    $out = $title . "\n\n";
49 49
     $out .= "Page,Line\n";
50 50
     foreach ($bill as $page_num => $page) {
51 51
         foreach ($page as $line_num => $line) {
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 print '</ul>';
60 60
 $PAGE->block_end();
61 61
 $includes = array(
62
-    array (
62
+    array(
63 63
         'type' => 'include',
64 64
         'content' => 'bills_intro'
65 65
     ),
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
     $intitle = true;
78 78
     $title = '';
79 79
     foreach ($f as $r) {
80
-        if ($line<1) {
80
+        if ($line < 1) {
81 81
             $line++;
82 82
             continue;
83 83
         }
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
             }
97 97
             continue;
98 98
         }
99
-        if (substr($r, 0, 8)=='Bill 141') {
99
+        if (substr($r, 0, 8) == 'Bill 141') {
100 100
             continue;
101 101
         }
102 102
         if (preg_match('#\s+([1-4]?[05])$#', $r, $m)) {
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
         if ($r == "\n") {
144 144
             continue;
145 145
         }
146
-        if ($line<1) {
146
+        if ($line < 1) {
147 147
             $line++;
148 148
             continue;
149 149
         }
@@ -157,8 +157,8 @@  discard block
 block discarded – undo
157 157
             $number = $m[1];
158 158
             $amendments[$number] = '';
159 159
         } elseif (preg_match('#To move the following Clause#', $r)) {
160
-            preg_match('#\n(.*?)$#', $amendments[$number-1], $m);
161
-            $amendments[$number-1] = preg_replace('#\n(.*?)$#', '', $amendments[$number-1]);
160
+            preg_match('#\n(.*?)$#', $amendments[$number - 1], $m);
161
+            $amendments[$number - 1] = preg_replace('#\n(.*?)$#', '', $amendments[$number - 1]);
162 162
             $amendments[$number] .= '*' . trim($m[1]) . "*\n$r";
163 163
         } else {
164 164
             $amendments[$number] .= $r;
@@ -182,9 +182,9 @@  discard block
 block discarded – undo
182 182
             $page = $m[1]; $line = $m[2]; $clause = $m[3];
183 183
             $from_text = $m[4]; $end_line = $m[5]; $insert = $m[6];
184 184
             unset($amendments[$num]);
185
-            $bill[$page][$line] = str_replace($from_text, "$from_text <del title='$num'>", $bill[$page][$line]) . '</del><ins title="'.$num.'">' . $insert . '</ins>';
186
-            for ($i=$line+1; $i<=$end_line; $i++) {
187
-                $bill[$page][$i] = '<del title="'.$num.'">' . $bill[$page][$i] . '</del>';
185
+            $bill[$page][$line] = str_replace($from_text, "$from_text <del title='$num'>", $bill[$page][$line]) . '</del><ins title="' . $num . '">' . $insert . '</ins>';
186
+            for ($i = $line + 1; $i <= $end_line; $i++) {
187
+                $bill[$page][$i] = '<del title="' . $num . '">' . $bill[$page][$i] . '</del>';
188 188
             }
189 189
         }
190 190
         # Page  4, line 9 [Clause 6], leave out from `under' to `creating' and insert `this Part making provision'
@@ -201,10 +201,10 @@  discard block
 block discarded – undo
201 201
             $insert = $m[7];
202 202
             unset($amendments[$num]);
203 203
             $bill[$page][$from_line] = str_replace($from_text, "$from_text <del title='$num'>", $bill[$page][$from_line]) . '</del>';
204
-            for ($i=$from_line+1; $i<$to_line; $i++) {
205
-                $bill[$page][$i] = '<del title="'.$num.'">' . $bill[$page][$i] . '</del>';
204
+            for ($i = $from_line + 1; $i < $to_line; $i++) {
205
+                $bill[$page][$i] = '<del title="' . $num . '">' . $bill[$page][$i] . '</del>';
206 206
             }
207
-            $bill[$page][$to_line] = '<del title="'.$num.'">' . str_replace($to_text, "</del><ins title='$num'>$insert</ins> $to_text", $bill[$page][$to_line]);
207
+            $bill[$page][$to_line] = '<del title="' . $num . '">' . str_replace($to_text, "</del><ins title='$num'>$insert</ins> $to_text", $bill[$page][$to_line]);
208 208
         }
209 209
         # Page  3, line 13 [Clause 4], leave out from beginning to `confer' and insert `An order under this Part may not make provision to'
210 210
         if (preg_match('#Page\s+(\d+), line (\d+) \[Clause (\d+)\], leave out from beginning to `(.*?)\' and insert `(.*?)\'#s', $amendment, $m)) {
@@ -225,9 +225,9 @@  discard block
 block discarded – undo
225 225
             $page = $m[1]; $line = $m[3]; $clause = $m[2];
226 226
             $insert = isset($m[4]) ? $m[4] : null;
227 227
             unset($amendments[$num]);
228
-            $bill[$page][$line] = '<del title="'.$num.'">'.$bill[$page][$line].'</del>';
228
+            $bill[$page][$line] = '<del title="' . $num . '">' . $bill[$page][$line] . '</del>';
229 229
             if ($insert) {
230
-                $bill[$page][$line] .= '<ins title="'.$num.'">'.$insert.'</ins>';
230
+                $bill[$page][$line] .= '<ins title="' . $num . '">' . $insert . '</ins>';
231 231
             }
232 232
         }
233 233
         # Page 8, line 24 [Clause 14], at end insert-- `...'
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
             $page = $m[1]; $line = $m[2]; $clause = $m[3];
236 236
             $insert = $m[4];
237 237
             unset($amendments[$num]);
238
-            $bill[$page][$line] .= '<ins title="'.$num.'">'.$insert.'</ins>';
238
+            $bill[$page][$line] .= '<ins title="' . $num . '">' . $insert . '</ins>';
239 239
         }
240 240
         # Title, line    1, leave out `reforming legislation' and insert `...'
241 241
         if (preg_match('#Title, line.*?, leave out `(.*?)\' and insert `(.*?)\'#s', $amendment, $m)) {
@@ -251,14 +251,14 @@  discard block
 block discarded – undo
251 251
             foreach ($clauses[$clause] as $subclause_num => $subclause) {
252 252
                 foreach ($subclause as $subsubclause_num => $subsubclause) {
253 253
                     $startP = $subsubclause['startP'];
254
-                    if ($startP==$page && $subsubclause['startL']==$line) {
254
+                    if ($startP == $page && $subsubclause['startL'] == $line) {
255 255
                         if ($startP == $subsubclause['endP']) {
256 256
                             unset($amendments[$num]);
257
-                            for ($i = $subsubclause['startL']; $i<=$subsubclause['endL']; $i++) {
258
-                                $bill[$page][$i] = '<del title="'.$num.'">' . $bill[$page][$i] . '</del>';
257
+                            for ($i = $subsubclause['startL']; $i <= $subsubclause['endL']; $i++) {
258
+                                $bill[$page][$i] = '<del title="' . $num . '">' . $bill[$page][$i] . '</del>';
259 259
                             }
260 260
                             if ($insert) {
261
-                                $bill[$page][$i-1] .= "<ins title='$num'>$insert</ins>";
261
+                                $bill[$page][$i - 1] .= "<ins title='$num'>$insert</ins>";
262 262
                             }
263 263
                         }
264 264
                     }
@@ -274,21 +274,21 @@  discard block
 block discarded – undo
274 274
             foreach ($clauses[$clause] as $subclause_num => $subclause) {
275 275
                 foreach ($subclause as $subsubclause_num => $subsubclause) {
276 276
                     $startP = $subsubclause['startP'];
277
-                    if ($startP==$page && $subsubclause['startL']==$line) {
277
+                    if ($startP == $page && $subsubclause['startL'] == $line) {
278 278
                         if ($startP == $subsubclause['endP']) {
279 279
                             unset($amendments[$num]);
280 280
                             $finished = true;
281 281
                         }
282 282
                     }
283 283
                     if ($finished) {
284
-                        for ($i = $subsubclause['startL']; $i<=$subsubclause['endL']; $i++) {
285
-                            $bill[$page][$i] = '<del title="'.$num.'">' . $bill[$page][$i] . '</del>';
284
+                        for ($i = $subsubclause['startL']; $i <= $subsubclause['endL']; $i++) {
285
+                            $bill[$page][$i] = '<del title="' . $num . '">' . $bill[$page][$i] . '</del>';
286 286
                         }
287 287
                     }
288 288
                 }
289 289
                 if ($finished) {
290 290
                     if ($insert) {
291
-                        $bill[$page][$i-1] .= "<ins title='$num'>$insert</ins>";
291
+                        $bill[$page][$i - 1] .= "<ins title='$num'>$insert</ins>";
292 292
                     }
293 293
                     break;
294 294
                 }
@@ -300,19 +300,19 @@  discard block
 block discarded – undo
300 300
             $finished = false;
301 301
             foreach ($clauses[$clause] as $subclause_num => $subclause) {
302 302
                 foreach ($subclause as $subsubclause_num => $subsubclause) {
303
-                    if ($subsubclause['startP']==$page && $subsubclause['startL']==$line) {
303
+                    if ($subsubclause['startP'] == $page && $subsubclause['startL'] == $line) {
304 304
                         unset($amendments[$num]);
305 305
                         $finished = true;
306 306
                     }
307 307
                     if ($finished) {
308
-                        for ($p = $subsubclause['startP']; $p<=$subsubclause['endP']; $p++) {
309
-                            if ($p>$subsubclause['startP']) {
308
+                        for ($p = $subsubclause['startP']; $p <= $subsubclause['endP']; $p++) {
309
+                            if ($p > $subsubclause['startP']) {
310 310
                                 $starti = 1;
311 311
                             } else {
312 312
                                 $starti = $subsubclause['startL'];
313 313
                             }
314
-                            for ($i = $starti; $i<=$subsubclause['endL']; $i++) { # XXX Doesn't really work spanning pages
315
-                                $bill[$p][$i] = '<del title="'.$num.'">' . $bill[$p][$i] . '</del>';
314
+                            for ($i = $starti; $i <= $subsubclause['endL']; $i++) { # XXX Doesn't really work spanning pages
315
+                                $bill[$p][$i] = '<del title="' . $num . '">' . $bill[$p][$i] . '</del>';
316 316
                             }
317 317
                         }
318 318
                     }
Please login to merge, or discard this patch.
www/docs/boundaries/index.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -135,9 +135,9 @@
 block discarded – undo
135 135
 <li>You were in the <strong><?=$current['SPC']?></strong> constituency, in the <strong><?=$current['SPE']?></strong> region; your constituency MSP was <a href='<?=$mp_url?>'><?=$name?></a>, and your regional MSPs were <?php
136 136
         foreach ($mreg as $k => $n) {
137 137
             print "<a href='/msp/" . make_member_url($n, '', 4) . "'>$n</a>";
138
-            if ($k < count($mreg)-2) {
138
+            if ($k < count($mreg) - 2) {
139 139
                 print ', ';
140
-            } elseif ($k == count($mreg)-2) {
140
+            } elseif ($k == count($mreg) - 2) {
141 141
                 print ' and ';
142 142
             }
143 143
         }
Please login to merge, or discard this patch.
www/docs/admin/featured.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
 $out = '';
13 13
 if (get_http_var('preview')) {
14 14
     preview_featured();
15
-} else if ( get_http_var('confirm') ) {
15
+} else if (get_http_var('confirm')) {
16 16
     $out = update_featured();
17 17
 }
18 18
 
@@ -23,13 +23,13 @@  discard block
 block discarded – undo
23 23
 print '</div>';
24 24
 
25 25
 function gid_to_url($gid) {
26
-    if ( !$gid ) {
26
+    if (!$gid) {
27 27
         return '';
28 28
     }
29 29
     global $hansardmajors;
30 30
     global $db;
31 31
 
32
-    $q = $db->query("SELECT major FROM hansard WHERE gid = :gid", array( ':gid' => $gid ))->first();
32
+    $q = $db->query("SELECT major FROM hansard WHERE gid = :gid", array(':gid' => $gid))->first();
33 33
     $url_gid = fix_gid_from_db($gid);
34 34
     $url = new \MySociety\TheyWorkForYou\Url($hansardmajors[$q['major']]['page']);
35 35
     $url->insert(array('id' => $url_gid));
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
     $related = $featured->get_related();
44 44
     $context = $featured->get_context();
45 45
 
46
-    if ( get_http_var('url') ) {
46
+    if (get_http_var('url')) {
47 47
         $url = get_http_var('url');
48 48
         $title = get_http_var('title');
49 49
         $context = get_http_var('context');
@@ -113,9 +113,9 @@  discard block
 block discarded – undo
113 113
     $related_gid3 = $related3 ? get_gid_from_url($related3) : null;
114 114
 
115 115
     print "<h2>Preview Content</h2>";
116
-    if ( $gid !== null ) {
116
+    if ($gid !== null) {
117 117
         $h = new MySociety\TheyWorkForYou\Homepage;
118
-        $featured = $h->getFeaturedDebate($gid, $title, $context, array( $related_gid1, $related_gid2, $related_gid3 ));
118
+        $featured = $h->getFeaturedDebate($gid, $title, $context, array($related_gid1, $related_gid2, $related_gid3));
119 119
 
120 120
         include INCLUDESPATH . 'easyparliament/templates/html/homepage/featured.php';
121 121
     } else {
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
     $parts = parse_url($url);
158 158
     parse_str($parts['query'], $query);
159 159
 
160
-    if ( $query['id'] ) {
160
+    if ($query['id']) {
161 161
         if (strpos($parts['path'], 'lords') !== false) {
162 162
             $gid = 'uk.org.publicwhip/lords/';
163 163
         } elseif (strpos($parts['path'], 'whall') !== false) {
Please login to merge, or discard this patch.
www/docs/admin/edittopic.php 1 patch
Indentation   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -11,34 +11,34 @@  discard block
 block discarded – undo
11 11
 
12 12
 $slug = get_http_var('id');
13 13
 if ($slug) {
14
-  $topic = $topics->getTopic($slug);
14
+    $topic = $topics->getTopic($slug);
15 15
 } else {
16
-  $topic = new \MySociety\TheyWorkForYou\Topic();
16
+    $topic = new \MySociety\TheyWorkForYou\Topic();
17 17
 }
18 18
 
19 19
 $action = get_http_var('action');
20 20
 switch ($action) {
21 21
     case 'add':
22 22
       $success = add_topic($topic);
23
-      break;
23
+        break;
24 24
     case 'update':
25 25
       $success = update_topic($topic);
26
-      break;
26
+        break;
27 27
     case 'setimage':
28 28
       $success = add_image($topic);
29
-      break;
29
+        break;
30 30
     case 'addcontent':
31 31
       $success = add_content($topic);
32
-      break;
32
+        break;
33 33
     case 'deletecontent':
34 34
       $success = delete_content($topic);
35
-      break;
35
+        break;
36 36
     case 'addpolicysets':
37 37
       $success = add_policy_sets($topic);
38
-      break;
38
+        break;
39 39
     case 'addpolicies':
40 40
       $success = add_policies($topic);
41
-      break;
41
+        break;
42 42
     default:
43 43
       $success = null;
44 44
 }
@@ -125,10 +125,10 @@  discard block
 block discarded – undo
125 125
             <select name="sets[]" multiple>
126 126
               <option value="">None</option>
127 127
             <?php
128
-              $policies = new \MySociety\TheyWorkForYou\Policies;
129
-              $set_descriptions = $policies->getSetDescriptions();
130
-              $related_sets = $topic->getPolicySets();
131
-              foreach ($set_descriptions as $set => $description) { ?>
128
+                $policies = new \MySociety\TheyWorkForYou\Policies;
129
+                $set_descriptions = $policies->getSetDescriptions();
130
+                $related_sets = $topic->getPolicySets();
131
+                foreach ($set_descriptions as $set => $description) { ?>
132 132
               <option value="<?= $set ?>" <?= in_array($set, $related_sets) ? 'selected' : '' ?>><?= $description ?></option>
133 133
             <?php } ?>
134 134
             <input type="submit" value="Update">
@@ -143,10 +143,10 @@  discard block
 block discarded – undo
143 143
             <select name="policies[]" multiple>
144 144
               <option value="">None</option>
145 145
             <?php
146
-              $policies = new \MySociety\TheyWorkForYou\Policies;
147
-              $all_policies = $policies->getPolicies();
148
-              $related_policies = $topic->getPolicies();
149
-              foreach ($all_policies as $number => $description) { ?>
146
+                $policies = new \MySociety\TheyWorkForYou\Policies;
147
+                $all_policies = $policies->getPolicies();
148
+                $related_policies = $topic->getPolicies();
149
+                foreach ($all_policies as $number => $description) { ?>
150 150
               <option value="<?= $number ?>" <?= in_array($number, $related_policies) ? 'selected' : '' ?>><?= $description ?></option>
151 151
             <?php } ?>
152 152
 
@@ -214,9 +214,9 @@  discard block
 block discarded – undo
214 214
             $file_info['tmp_name'],
215 215
             $topic->image_path()
216 216
         );
217
-     } catch (ErrorException $e) {
217
+        } catch (ErrorException $e) {
218 218
         return false;
219
-     }
219
+        }
220 220
 
221 221
     if ($image_saved) {
222 222
         return $topic->save();
Please login to merge, or discard this patch.
www/docs/email/index.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -50,18 +50,18 @@  discard block
 block discarded – undo
50 50
 <?php
51 51
 } else {
52 52
     $rep_name = $MEMBER->full_name();
53
-    if ($MEMBER->house_disp==1) {
53
+    if ($MEMBER->house_disp == 1) {
54 54
         $rep_name .= ' MP';
55
-    } elseif ($MEMBER->house_disp==3) {
55
+    } elseif ($MEMBER->house_disp == 3) {
56 56
         $rep_name .= ' MLA';
57 57
     }
58
-    $data = array (
58
+    $data = array(
59 59
         'template'      => 'email_a_friend',
60 60
         'to'            => $recipient_email,
61 61
         'subject'       => 'Find out all about ' . $rep_name
62 62
     );
63 63
     $url = $MEMBER->url(true);
64
-    $merge = array (
64
+    $merge = array(
65 65
         'NAME' => $sender_name,
66 66
         'EMAIL' => $sender_email,
67 67
         'REP_NAME' => $rep_name,
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 
71 71
     $success = send_template_email($data, $merge);
72 72
     if ($success) {
73
-        print "<p>Your email has been sent successfully. Thank you for using TheyWorkForYou.</p> <p><a href=\"$url\">Return to ".$MEMBER->full_name()."'s page</a></p>";
73
+        print "<p>Your email has been sent successfully. Thank you for using TheyWorkForYou.</p> <p><a href=\"$url\">Return to " . $MEMBER->full_name() . "'s page</a></p>";
74 74
     } else {
75 75
         print "<p>Sorry, something went wrong trying to send an email. Please wait a few minutes and try again.</p>";
76 76
     }
Please login to merge, or discard this patch.
www/docs/glossary/index.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@  discard block
 block discarded – undo
6 6
 }
7 7
 
8 8
 include_once '../../includes/easyparliament/init.php';
9
-include_once INCLUDESPATH."easyparliament/glossary.php";
9
+include_once INCLUDESPATH . "easyparliament/glossary.php";
10 10
 
11 11
 $args = array(
12 12
     'sort'				=> "regexp_replace",
@@ -47,11 +47,11 @@  discard block
 block discarded – undo
47 47
 }
48 48
 
49 49
 if ($term) {
50
-    $DATA->set_page_metadata($this_page, 'title', $term['title'].': Glossary item');
50
+    $DATA->set_page_metadata($this_page, 'title', $term['title'] . ': Glossary item');
51 51
     $DATA->set_page_metadata($this_page, 'heading', $term['title']);
52 52
 } else {
53
-    $DATA->set_page_metadata ($this_page, 'title', $GLOSSARY->current_letter.': Glossary index');
54
-    $DATA->set_page_metadata ($this_page, 'heading', 'Glossary index');
53
+    $DATA->set_page_metadata($this_page, 'title', $GLOSSARY->current_letter . ': Glossary index');
54
+    $DATA->set_page_metadata($this_page, 'heading', 'Glossary index');
55 55
 }
56 56
 
57 57
 $PAGE->page_start();
@@ -70,13 +70,13 @@  discard block
 block discarded – undo
70 70
     $URL->update(array("gl" => $GLOSSARY->next_term['glossary_id']));
71 71
     $next_link = $URL->generate('url');
72 72
 
73
-    $nextprev = array (
74
-        'next'	=> array (
73
+    $nextprev = array(
74
+        'next'	=> array(
75 75
             'url'	=> $next_link,
76 76
             'title'	=> 'Next term',
77 77
             'body'	=> $GLOSSARY->next_term['title']
78 78
         ),
79
-        'prev'	=> array (
79
+        'prev'	=> array(
80 80
             'url'	=> $previous_link,
81 81
             'title'	=> 'Previous term',
82 82
             'body'	=> $GLOSSARY->previous_term['title']
@@ -109,8 +109,8 @@  discard block
 block discarded – undo
109 109
     }
110 110
 }
111 111
 
112
-$PAGE->stripe_end(array (
113
-    array (
112
+$PAGE->stripe_end(array(
113
+    array(
114 114
         'type'		=> 'nextprev',
115 115
         'content'	=> ''
116 116
     )
Please login to merge, or discard this patch.