Passed
Push — master ( 5f2bd1...7c2064 )
by
unknown
13:34
created
www/docs/news/rdf.php 2 patches
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,7 +25,9 @@  discard block
 block discarded – undo
25 25
 <?php
26 26
     $c = 0;
27 27
     foreach ($all_news as $id => $news_row) {
28
-        if ($c++ == 10) break;
28
+        if ($c++ == 10) {
29
+            break;
30
+        }
29 31
         list($title, $content, $date) = $news_row;
30 32
         $url = "https://www.theyworkforyou.com".news_individual_link($date, $title);
31 33
         print "<rdf:li rdf:resource=\"$url\" />\n";
@@ -39,7 +41,9 @@  discard block
 block discarded – undo
39 41
 <?php
40 42
     $c = 0;
41 43
     foreach ($all_news as $id => $news_row) {
42
-        if ($c++ == 10) break;
44
+        if ($c++ == 10) {
45
+            break;
46
+        }
43 47
         list($title, $content, $date) = $news_row;
44 48
         $url = "https://www.theyworkforyou.com".news_individual_link($date, $title);
45 49
         $excerpt = trim_characters(news_format_body($content), 0, 250);
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
     foreach ($all_news as $id => $news_row) {
28 28
         if ($c++ == 10) break;
29 29
         list($title, $content, $date) = $news_row;
30
-        $url = "https://www.theyworkforyou.com".news_individual_link($date, $title);
30
+        $url = "https://www.theyworkforyou.com" . news_individual_link($date, $title);
31 31
         print "<rdf:li rdf:resource=\"$url\" />\n";
32 32
     }
33 33
 ?>
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
     foreach ($all_news as $id => $news_row) {
42 42
         if ($c++ == 10) break;
43 43
         list($title, $content, $date) = $news_row;
44
-        $url = "https://www.theyworkforyou.com".news_individual_link($date, $title);
44
+        $url = "https://www.theyworkforyou.com" . news_individual_link($date, $title);
45 45
         $excerpt = trim_characters(news_format_body($content), 0, 250);
46 46
         $date = str_replace(" ", "T", $date) . "+00:00";
47 47
 ?>
Please login to merge, or discard this patch.
www/docs/api/api_getComments.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
 }
25 25
 
26 26
 function api_getComments_start_date($start_date) {
27
-        $args = array (
27
+        $args = array(
28 28
             'start_date' => $start_date,
29 29
             'end_date' => get_http_var('end_date')
30 30
         );
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 }
34 34
 
35 35
 function api_getComments_search($s) {
36
-        $args = array (
36
+        $args = array(
37 37
             's' => $s,
38 38
             'p' => get_http_var('page'),
39 39
             'num' => get_http_var('num'),
Please login to merge, or discard this patch.
www/docs/bills/2005-06/identity-cards/index.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -2,12 +2,12 @@  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','Identity Cards Act 2006');
5
+$DATA->set_page_metadata($this_page, 'heading', 'Identity Cards Act 2006');
6 6
 
7 7
 $PAGE->page_start();
8 8
 $PAGE->stripe_start();
9 9
 
10
-$PAGE->block_start(array ('title'=>'House of Commons - Normal Run'));
10
+$PAGE->block_start(array('title'=>'House of Commons - Normal Run'));
11 11
 ?>
12 12
 <ul> <li>Back on 25th May 2005, a bill was introduced: the <a
13 13
 href="http://www.publications.parliament.uk/pa/cm200506/cmbills/009/2006009.htm">Identity
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
 
33 33
 <?php
34 34
 $PAGE->block_end();
35
-$PAGE->block_start(array ('title'=>'House of Lords - Normal Run'));
35
+$PAGE->block_start(array('title'=>'House of Lords - Normal Run'));
36 36
 ?>
37 37
 
38 38
 <ul>
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
 
50 50
 <?php
51 51
 $PAGE->block_end();
52
-$PAGE->block_start(array ('title'=>'Ping Pong'));
52
+$PAGE->block_start(array('title'=>'Ping Pong'));
53 53
 ?>
54 54
 
55 55
 <ul>
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
 $PAGE->block_end();
95 95
 
96 96
     $includes = array(
97
-        array (
97
+        array(
98 98
             'type' => 'include',
99 99
             'content' => 'bills_intro'
100 100
         ),
Please login to merge, or discard this patch.
classes/SectionView/SpView.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
 
25 25
     protected function getSearchSections() {
26 26
         return array(
27
-            array( 'section' => 'sp' )
27
+            array('section' => 'sp')
28 28
         );
29 29
     }
30 30
 }
Please login to merge, or discard this patch.
classes/SectionView/WransView.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -12,13 +12,13 @@  discard block
 block discarded – undo
12 12
 
13 13
     protected function display_front() {
14 14
         global $DATA, $this_page;
15
-        if ( get_http_var('type') == 'wrans') {
15
+        if (get_http_var('type') == 'wrans') {
16 16
             return parent::display_front();
17 17
         }
18 18
 
19 19
         $data = array();
20 20
 
21
-        $args = array( 'months' => 1 );
21
+        $args = array('months' => 1);
22 22
         $WRANSLIST = new \WRANSLIST;
23 23
 
24 24
         $wrans = array();
@@ -50,10 +50,10 @@  discard block
 block discarded – undo
50 50
 
51 51
     protected function getSearchSections() {
52 52
         $sections = array(
53
-            array( 'section' => 'wrans', 'title' => 'Written Answers' ),
53
+            array('section' => 'wrans', 'title' => 'Written Answers'),
54 54
         );
55
-        if ( get_http_var('type') == '') {
56
-            $sections[] = array( 'section' => 'wms', 'title' => 'Written Ministerial Statements' );
55
+        if (get_http_var('type') == '') {
56
+            $sections[] = array('section' => 'wms', 'title' => 'Written Ministerial Statements');
57 57
         }
58 58
         return $sections;
59 59
     }
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
     # speech bar the first (assuming that's the question)
63 63
     private $votelinks_so_far = 0;
64 64
 
65
-    protected function generate_votes ($votes, $id, $gid) {
65
+    protected function generate_votes($votes, $id, $gid) {
66 66
         /*
67 67
         Returns HTML for the 'Does this answer the question?' links (wrans) in the sidebar.
68 68
         $votes = => array (
Please login to merge, or discard this patch.
classes/Utility/Postcode.php 3 patches
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
 
40 40
         if ($last_postcode == $postcode) {
41 41
             $return_value = $mp_only ? $last_postcode_value['WMC'] : $last_postcode_value;
42
-            twfy_debug ("TIME", "Postcode $postcode looked up last time, is " . ( is_array($return_value) ? implode(', ', $return_value) : $return_value ));
42
+            twfy_debug ("TIME", "postcode $postcode looked up last time, is " . ( is_array($return_value) ? implode(', ', $return_value) : $return_value ));
43 43
             return $return_value;
44 44
         }
45 45
 
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
 
40 40
         if ($last_postcode == $postcode) {
41 41
             $return_value = $mp_only ? $last_postcode_value['WMC'] : $last_postcode_value;
42
-            twfy_debug ("TIME", "Postcode $postcode looked up last time, is " . ( is_array($return_value) ? implode(', ', $return_value) : $return_value ));
42
+            twfy_debug("TIME", "Postcode $postcode looked up last time, is " . (is_array($return_value) ? implode(', ', $return_value) : $return_value));
43 43
             return $return_value;
44 44
         }
45 45
 
@@ -82,9 +82,9 @@  discard block
 block discarded – undo
82 82
             $name = explode('|', $name);
83 83
             if ($country == 'W') {
84 84
                 return array('WMC' => $name[0], 'WAC' => $name[1], 'WAE' => $name[2]);
85
-            } elseif ($country == 'S' || count($name)==3) {
85
+            } elseif ($country == 'S' || count($name) == 3) {
86 86
                 return array('WMC' => $name[0], 'SPC' => $name[1], 'SPE' => $name[2]);
87
-            } elseif ($country == 'N' || count($name)==2) {
87
+            } elseif ($country == 'N' || count($name) == 2) {
88 88
                 return array('WMC' => $name[0], 'NIE' => $name[1]);
89 89
             } else {
90 90
                 return array('WMC' => $name[0]);
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
 
119 119
         $r = json_decode($file, true);
120 120
         if (!$r) {
121
-            trigger_error("Postcode database is not working. Content:\n".$file.", request: ". $filename, E_USER_WARNING);
121
+            trigger_error("Postcode database is not working. Content:\n" . $file . ", request: " . $filename, E_USER_WARNING);
122 122
             return '';
123 123
         }
124 124
         if (isset($r['error']) || !isset($r['areas'])) {
Please login to merge, or discard this patch.
Braces   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -52,7 +52,9 @@  discard block
 block discarded – undo
52 52
             $ret = self::postcodeFetchFromMapit($postcode);
53 53
         }
54 54
 
55
-        if (is_string($ret)) return $ret;
55
+        if (is_string($ret)) {
56
+            return $ret;
57
+        }
56 58
 
57 59
         $last_postcode = $postcode;
58 60
         $last_postcode_value = $ret;
@@ -126,8 +128,9 @@  discard block
 block discarded – undo
126 128
         }
127 129
         $areas = array();
128 130
         foreach ($r['areas'] as $row) {
129
-            if (in_array($row['type'], array('WMC', 'SPC', 'SPE', 'NIE', 'WAC', 'WAE')))
130
-                $areas[$row['type']] = $row['name'];
131
+            if (in_array($row['type'], array('WMC', 'SPC', 'SPE', 'NIE', 'WAC', 'WAE'))) {
132
+                            $areas[$row['type']] = $row['name'];
133
+            }
131 134
         }
132 135
 
133 136
         if (!isset($areas['WMC'])) {
Please login to merge, or discard this patch.
classes/SectionView/PbcView.php 2 patches
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
         } elseif ($this->session) {
66 66
             # Display the bills for a particular session
67 67
             $this_page = 'pbc_session';
68
-            $DATA->set_page_metadata($this_page, 'title', "Session $this->session");
68
+            $DATA->set_page_metadata($this_page, 'title', "session $this->session");
69 69
             $args = array (
70 70
                 'session' => $this->session,
71 71
             );
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
         } elseif ($bill_id) {
48 48
             # Display the page for a particular bill
49 49
             $this_page = 'pbc_bill';
50
-            $args = array (
50
+            $args = array(
51 51
                 'id' => $bill_id,
52 52
                 'title' => $this->bill,
53 53
                 'session' => $this->session,
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
             # Display the bills for a particular session
67 67
             $this_page = 'pbc_session';
68 68
             $DATA->set_page_metadata($this_page, 'title', "Session $this->session");
69
-            $args = array (
69
+            $args = array(
70 70
                 'session' => $this->session,
71 71
             );
72 72
             $data = array();
@@ -88,12 +88,12 @@  discard block
 block discarded – undo
88 88
 
89 89
     protected function getSearchSections() {
90 90
         return array(
91
-            array( 'section' => 'pbc' )
91
+            array('section' => 'pbc')
92 92
         );
93 93
     }
94 94
 
95 95
     protected function front_content() {
96
-        return $this->list->display( 'recent_pbc_debates', array( 'num' => 50 ), 'none' );
96
+        return $this->list->display('recent_pbc_debates', array('num' => 50), 'none');
97 97
     }
98 98
 
99 99
     protected function display_front() {
Please login to merge, or discard this patch.
classes/SectionView/SectionView.php 2 patches
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -512,7 +512,7 @@
 block discarded – undo
512 512
             if ($row['totalcomments'] > 1) {
513 513
                 $morecount = $row['totalcomments'] - 1;
514 514
                 $plural = $morecount == 1 ? 'annotation' : 'annotations';
515
-                $linktext = "Read $morecount more $plural";
515
+                $linktext = "read $morecount more $plural";
516 516
             }
517 517
 
518 518
         } else {
Please login to merge, or discard this patch.
Spacing   +35 added lines, -35 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
             $data = $this->addCommonData($data);
39 39
         } elseif ($date = get_http_var('d')) {
40 40
             $data = $this->display_day($date);
41
-            if ( !isset($data['template']) ) {
41
+            if (!isset($data['template'])) {
42 42
                 $data['template'] = 'section/day';
43 43
             }
44 44
             $data = $this->addCommonData($data);
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
             $data = $this->display_section_or_speech();
47 47
         } else {
48 48
             $data = $this->display_front();
49
-            if ( !isset($data['template']) ) {
49
+            if (!isset($data['template'])) {
50 50
                 $data['template'] = 'section/recent';
51 51
             }
52 52
             $data['search_sections'] = $this->getSearchSections();
@@ -68,10 +68,10 @@  discard block
 block discarded – undo
68 68
         $data['recess_major'] = $this->getRecessMajor();
69 69
 
70 70
         $nextprev = $DATA->page_metadata($this_page, 'nextprev');
71
-        if ( isset($nextprev['next']['url']) ) {
71
+        if (isset($nextprev['next']['url'])) {
72 72
             $data['next'] = $nextprev['next'];
73 73
         }
74
-        if ( isset($nextprev['prev']['url']) ) {
74
+        if (isset($nextprev['prev']['url'])) {
75 75
             $data['prev'] = $nextprev['prev'];
76 76
         }
77 77
 
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
         if (!isset($data['title']) && $parent_page != '') {
81 81
             $data['title'] = $DATA->page_metadata($parent_page, 'title');
82 82
         }
83
-        if ( $parent_page ) {
83
+        if ($parent_page) {
84 84
             $data['parent_title'] = $DATA->page_metadata($parent_page, 'title');
85 85
         }
86 86
 
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
 
97 97
         $urls = array_merge($urls, $this->getViewUrls());
98 98
 
99
-        if ( isset($data['info']['page']) ) {
99
+        if (isset($data['info']['page'])) {
100 100
             $day = new \MySociety\TheyWorkForYou\Url($data['info']['page']);
101 101
             $urls['day'] = $day;
102 102
         }
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
             $DATA->set_page_metadata($this_page, 'title', $year);
141 141
         }
142 142
 
143
-        $args = array ( 'year' => $year );
143
+        $args = array('year' => $year);
144 144
         $data = $this->list->display('calendar', $args, 'none');
145 145
         return $data;
146 146
     }
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
     protected function display_column($date, $column) {
149 149
         global $this_page;
150 150
         $this_page = $this->page_base;
151
-        $args = array( 'date' => $date, 'column' => $column );
151
+        $args = array('date' => $date, 'column' => $column);
152 152
         $content = $this->list->display('column', $args, 'none');
153 153
 
154 154
         $data = array();
@@ -168,12 +168,12 @@  discard block
 block discarded – undo
168 168
     protected function display_day($date) {
169 169
         global $this_page;
170 170
         $this_page = $this->page_base . 'day';
171
-        $args = array ( 'date' => get_http_var('d') );
171
+        $args = array('date' => get_http_var('d'));
172 172
         $data = $this->list->display('date', $args, 'none');
173 173
         list($year, $month, $day) = explode('-', $date);
174
-        $args = array( 'year' => $year, 'month' => $month, 'day' => $day);
174
+        $args = array('year' => $year, 'month' => $month, 'day' => $day);
175 175
         $calendar = $this->list->display('calendar', $args, 'none');
176
-        if ( isset($calendar['years']) ) {
176
+        if (isset($calendar['years'])) {
177 177
             $data['calendar'] = $calendar['years'];
178 178
         }
179 179
         return $data;
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
         global $DATA, $this_page, $THEUSER;
184 184
 
185 185
         # += as we *don't* want to override any already supplied argument
186
-        $args += array (
186
+        $args += array(
187 187
             'gid' => get_http_var('id'),
188 188
             's' => get_http_var('s'), // Search terms to be highlighted.
189 189
             'member_id' => get_http_var('m'), // Member's speeches to be highlighted.
@@ -200,14 +200,14 @@  discard block
 block discarded – undo
200 200
             if ($this->major == 6) {
201 201
                 # Magically (as in I can't remember quite why), pbc_clause will
202 202
                 # contain the new URL without any change...
203
-                $URL->remove( array('id') );
203
+                $URL->remove(array('id'));
204 204
             } else {
205
-                $URL->insert( array('id'=>$e->getMessage()) );
205
+                $URL->insert(array('id'=>$e->getMessage()));
206 206
             }
207 207
             # put the search term back in so highlighting works.
208 208
             # NB: as we don't see the # part of the URL we lose this :(
209
-            if ( $args['s'] !== '' ) {
210
-                $URL->insert( array('s'=>$args['s']) );
209
+            if ($args['s'] !== '') {
210
+                $URL->insert(array('s'=>$args['s']));
211 211
             }
212 212
             redirect($URL->generate('none'), 301);
213 213
         }
@@ -284,7 +284,7 @@  discard block
 block discarded – undo
284 284
         if (array_key_exists('text_heading', $data['info'])) {
285 285
             // avoid having Clause 1 etc as the alert text search string on PBC pages as it's
286 286
             // almost certainly not what the person wants
287
-            if ( $this->major == 6 ) {
287
+            if ($this->major == 6) {
288 288
                 $data['email_alert_text'] = $data['section_title'];
289 289
             } else {
290 290
                 $data['email_alert_text'] = $data['info']['text_heading'];
@@ -331,7 +331,7 @@  discard block
 block discarded – undo
331 331
             $body = preg_replace('#<phrase class="honfriend" id="uk.org.publicwhip/member/(\d+)" name="([^"]*?)">(.*?\s*\((.*?)\))</phrase>#', '<a href="/mp/?m=$1" title="Our page on $2 - \'$3\'">$4</a>', $body);
332 332
             $body = preg_replace('#<phrase class="honfriend" name="([^"]*?)" person_id="uk.org.publicwhip/person/(\d+)">(.*?\s*\((.*?)\))</phrase>#', '<a href="/mp/?p=$2" title="Our page on $1 - \'$3\'">$4</a>', $body);
333 333
             $body = preg_replace_callback('#<phrase class="offrep" id="(.*?)/(\d+)-(\d+)-(\d+)\.(.*?)">(.*?)</phrase>#', function($matches) {
334
-                return '<a href="/search/?pop=1&s=date:' . $matches[2] . $matches[3] . $matches[4] . '+column:' . $matches[5] . '+section:' . $matches[1] .'">' . str_replace("Official Report", "Hansard", $matches[6]) . '</a>';
334
+                return '<a href="/search/?pop=1&s=date:' . $matches[2] . $matches[3] . $matches[4] . '+column:' . $matches[5] . '+section:' . $matches[1] . '">' . str_replace("Official Report", "Hansard", $matches[6]) . '</a>';
335 335
             }, $body);
336 336
             #$body = preg_replace('#<phrase class="offrep" id="((.*?)/(\d+)-(\d+)-(\d+)\.(.*?))">(.*?)</phrase>#e', "\"<a href='/search/?pop=1&amp;s=date:$3$4$5+column:$6+section:$2&amp;match=$1'>\" . str_replace('Official Report', 'Hansard', '$7') . '</a>'", $body);
337 337
             $bodies[] = $body;
@@ -364,7 +364,7 @@  discard block
 block discarded – undo
364 364
         $data['section_title'] = '';
365 365
         $subsection_title = '';
366 366
         $rows = count($data['rows']);
367
-        for ($i=0; $i<$rows; $i++) {
367
+        for ($i = 0; $i < $rows; $i++) {
368 368
             $row = $data['rows'][$i];
369 369
             $htype = $row['htype'];
370 370
             // HPOS should be defined below if it's needed; otherwise default to 0
@@ -387,7 +387,7 @@  discard block
 block discarded – undo
387 387
                 # Voting links
388 388
                 $data['rows'][$i]['voting_data'] = '';
389 389
                 if (isset($row['votes'])) {
390
-                    $data['rows'][$i]['voting_data'] = $this->generate_votes( $row['votes'], $row['epobject_id'], $row['gid'] );
390
+                    $data['rows'][$i]['voting_data'] = $this->generate_votes($row['votes'], $row['epobject_id'], $row['gid']);
391 391
                 }
392 392
 
393 393
                 # Annotation link
@@ -424,62 +424,62 @@  discard block
 block discarded – undo
424 424
 
425 425
     private function getCountryDetails() {
426 426
         $details = array(
427
-            1 => array (
427
+            1 => array(
428 428
                 'country' => 'UK',
429 429
                 'assembly' => 'uk-commons',
430 430
                 'location' => '&ndash; in the House of Commons'
431 431
             ),
432
-            2 => array (
432
+            2 => array(
433 433
                 'country' => 'UK',
434 434
                 'assembly' => 'uk-commons',
435 435
                 'location' => '&ndash; in Westminster Hall'
436 436
             ),
437
-            3 => array (
437
+            3 => array(
438 438
                 'country' => 'UK',
439 439
                 'assembly' => 'uk-commons',
440 440
                 'location' => 'written question &ndash; answered'
441 441
             ),
442
-            4 => array (
442
+            4 => array(
443 443
                 'country' => 'UK',
444 444
                 'assembly' => 'uk-commons',
445 445
                 'location' => 'written statement &ndash; made'
446 446
             ),
447
-            5 => array (
447
+            5 => array(
448 448
                 'country' => 'NORTHERN IRELAND',
449 449
                 'assembly' => 'ni',
450 450
                 'location' => '&ndash; in the Northern Ireland Assembly'
451 451
             ),
452
-            6 => array (
452
+            6 => array(
453 453
                 'country' => 'UK',
454 454
                 'assembly' => 'uk-commons',
455 455
                 'location' => '&ndash; in a Public Bill Committee'
456 456
             ),
457
-            7 => array (
457
+            7 => array(
458 458
                 'country' => 'SCOTLAND',
459 459
                 'assembly' => 'scotland',
460 460
                 'location' => '&ndash; in the Scottish Parliament'
461 461
             ),
462
-            8 => array (
462
+            8 => array(
463 463
                 'country' => 'SCOTLAND',
464 464
                 'assembly' => 'scotland',
465 465
                 'location' => '&ndash; Scottish Parliament written question &ndash; answered'
466 466
             ),
467
-            9 => array (
467
+            9 => array(
468 468
                 'country' => 'LONDON',
469 469
                 'assembly' => 'london-assembly',
470 470
                 'location' => 'Questions to the Mayor of London &ndash; answered'
471 471
             ),
472
-            10 => array (
472
+            10 => array(
473 473
                 'country' => 'WALES',
474 474
                 'assembly' => 'senedd',
475 475
                 'location' => '&ndash; in the Senedd'
476 476
             ),
477
-            11 => array (
477
+            11 => array(
478 478
                 'country' => 'WALES',
479 479
                 'assembly' => 'senedd',
480 480
                 'location' => '&ndash; Senedd Cymru'
481 481
             ),
482
-            101 => array (
482
+            101 => array(
483 483
                 'country' => 'UK',
484 484
                 'assembly' => 'uk-lords',
485 485
                 'location' => '&ndash; in the House of Lords'
@@ -512,7 +512,7 @@  discard block
 block discarded – undo
512 512
         global $DATA, $this_page;
513 513
         $this_page = $this->page_base . 'front';
514 514
         $data = array();
515
-        if ( $this->index_template ) {
515
+        if ($this->index_template) {
516 516
             $data['template'] = $this->index_template;
517 517
         }
518 518
 
@@ -522,7 +522,7 @@  discard block
 block discarded – undo
522 522
 
523 523
         $content['calendar'] = $class->display('calendar', array('months' => 1), 'none');
524 524
 
525
-        if ( $rssurl = $DATA->page_metadata($this_page, 'rss') ) {
525
+        if ($rssurl = $DATA->page_metadata($this_page, 'rss')) {
526 526
             $content['rssurl'] = $rssurl;
527 527
         }
528 528
 
@@ -537,7 +537,7 @@  discard block
 block discarded – undo
537 537
     }
538 538
 
539 539
     //$totalcomments, $comment, $commenturl
540
-    function generate_commentteaser ($row) {
540
+    function generate_commentteaser($row) {
541 541
         // Returns HTML for the one fragment of comment and link for the sidebar.
542 542
         // $totalcomments is the number of comments this item has on it.
543 543
         // $comment is an array like:
Please login to merge, or discard this patch.
www/includes/easyparliament/templates/html/static/linktous.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
     </form>
25 25
 </div>
26 26
 <!-- TheyWorkForYou box, end -->
27
-END;
27
+end;
28 28
 print $link_to_us_form;
29 29
 ?>
30 30
 
Please login to merge, or discard this patch.