Failed Conditions
Pull Request — master (#1326)
by Nick
60:22 queued 50:08
created
www/includes/easyparliament/templates/html/divisions/index.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -7,9 +7,9 @@  discard block
 block discarded – undo
7 7
           </div>
8 8
           <div class="business-section__primary">
9 9
                <?php
10
-               if ( isset($divisions) && $divisions ) {
11
-                 $current_date = '';
12
-               ?>
10
+                if ( isset($divisions) && $divisions ) {
11
+                    $current_date = '';
12
+                ?>
13 13
                <ul class="business-list">
14 14
                     <?php foreach ($divisions as $division) { ?>
15 15
                     <li id="<?= $division['division_id'] ?>">
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
                         <h3><?= format_date($division['date'], LONGERDATEFORMAT) ?></h3>
19 19
                         </span>
20 20
                         <?php
21
-                          $current_date = $division['date'];
21
+                            $current_date = $division['date'];
22 22
                         } ?>
23 23
                         <a href="/divisions/<?= $division['division_id'] ?>" class="business-list__title">
24 24
                             <h3><?= $division['division_title'] ?></h3>
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
7 7
           </div>
8 8
           <div class="business-section__primary">
9 9
                <?php
10
-               if ( isset($divisions) && $divisions ) {
10
+               if (isset($divisions) && $divisions) {
11 11
                  $current_date = '';
12 12
                ?>
13 13
                <ul class="business-list">
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
                             <br>
30 30
                             <span class="business-list__meta">
31 31
                                 <?= $division['summary'] ?>
32
-                                <?= $division['mp_vote'] !== '' ? '. <b>Your MP, ' . $mp_name . ', ' . $division['mp_vote'] . '.</b>': '' ?>
32
+                                <?= $division['mp_vote'] !== '' ? '. <b>Your MP, ' . $mp_name . ', ' . $division['mp_vote'] . '.</b>' : '' ?>
33 33
                             </span>
34 34
                         </p>
35 35
                     </li>
Please login to merge, or discard this patch.
www/includes/easyparliament/templates/html/comments_recent.php 2 patches
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,7 +18,9 @@  discard block
 block discarded – undo
18 18
     }
19 19
     $PAGE->block_start(array('id'=>'recentcomments', 'title'=>$title));
20 20
 
21
-    if ($this_page != 'home') $PAGE->page_links($data);
21
+    if ($this_page != 'home') {
22
+        $PAGE->page_links($data);
23
+    }
22 24
     $USERURL = new URL('userview');
23 25
     ?>
24 26
                         <ul>
@@ -50,7 +52,9 @@  discard block
 block discarded – undo
50 52
                         <p><a href="<?php echo $MOREURL->generate(); ?>#c<?php echo count($data['comments'])+1; ?>">See more annotations posted recently</a></p>
51 53
 <?php
52 54
     }
53
-    if ($this_page != 'home') $PAGE->page_links($data);
55
+    if ($this_page != 'home') {
56
+        $PAGE->page_links($data);
57
+    }
54 58
     $PAGE->block_end();
55 59
 }
56 60
 ?>
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
         $date = format_date($date, SHORTDATEFORMAT);
34 34
         $time = format_time($time, TIMEFORMAT);
35 35
 
36
-        $count = $n+1;
36
+        $count = $n + 1;
37 37
 
38 38
         $USERURL->insert(array('u'=>$comment['user_id']));
39 39
 
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
     if ($this_page == 'home') {
48 48
         $MOREURL = new URL('comments_recent');
49 49
         ?>
50
-                        <p><a href="<?php echo $MOREURL->generate(); ?>#c<?php echo count($data['comments'])+1; ?>">See more annotations posted recently</a></p>
50
+                        <p><a href="<?php echo $MOREURL->generate(); ?>#c<?php echo count($data['comments']) + 1; ?>">See more annotations posted recently</a></p>
51 51
 <?php
52 52
     }
53 53
     if ($this_page != 'home') $PAGE->page_links($data);
Please login to merge, or discard this patch.
www/includes/easyparliament/templates/html/footer.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -84,13 +84,13 @@
 block discarded – undo
84 84
         $db->display_total_duration();
85 85
 
86 86
         $duration = getmicrotime() - STARTTIME;
87
-        twfy_debug ("TIME", "Total time for page: $duration seconds.");
87
+        twfy_debug("TIME", "Total time for page: $duration seconds.");
88 88
         if (!isset($_SERVER['WINDIR'])) {
89 89
             $rusage = getrusage();
90
-            $duration = $rusage['ru_utime.tv_sec']*1000000 + $rusage['ru_utime.tv_usec'] - STARTTIMEU;
91
-            twfy_debug ('TIME', "Total user time: $duration microseconds.");
92
-            $duration = $rusage['ru_stime.tv_sec']*1000000 + $rusage['ru_stime.tv_usec'] - STARTTIMES;
93
-            twfy_debug ('TIME', "Total system time: $duration microseconds.");
90
+            $duration = $rusage['ru_utime.tv_sec'] * 1000000 + $rusage['ru_utime.tv_usec'] - STARTTIMEU;
91
+            twfy_debug('TIME', "Total user time: $duration microseconds.");
92
+            $duration = $rusage['ru_stime.tv_sec'] * 1000000 + $rusage['ru_stime.tv_usec'] - STARTTIMES;
93
+            twfy_debug('TIME', "Total system time: $duration microseconds.");
94 94
         }
95 95
 
96 96
 ?>
Please login to merge, or discard this patch.
www/includes/easyparliament/templates/html/static/search_help.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
 </li>
32 32
 
33 33
 <?php
34
-$user_agent = ( isset( $_SERVER['HTTP_USER_AGENT'] ) ) ? strtolower( $_SERVER['HTTP_USER_AGENT'] ) : '';
34
+$user_agent = (isset($_SERVER['HTTP_USER_AGENT'])) ? strtolower($_SERVER['HTTP_USER_AGENT']) : '';
35 35
 if (stristr($user_agent, 'Firefox/')) {
36 36
 ?>
37 37
      <li>You can also add TheyWorkForYou to <a href="http://mycroft.mozdev.org/download.html?name=theyworkforyou">Firefox's search box</a>.</li>
Please login to merge, or discard this patch.
www/includes/easyparliament/templates/api/hansard_gid.php 3 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,4 +67,4 @@
 block discarded – undo
67 67
     api_output($out);
68 68
 } else {
69 69
     api_error('Nothing');
70
-   }
70
+    }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
 
13 13
 $out = array();
14 14
 if (isset ($data['rows'])) {
15
-    for ($i=0; $i<count($data['rows']); $i++) {
15
+    for ($i = 0; $i < count($data['rows']); $i++) {
16 16
         $row = $data['rows'][$i];
17 17
         if (count($row) == 0) continue;
18 18
         if ($row['htype'] == '12') {
Please login to merge, or discard this patch.
Braces   +19 added lines, -9 removed lines patch added patch discarded remove patch
@@ -14,13 +14,16 @@  discard block
 block discarded – undo
14 14
 if (isset ($data['rows'])) {
15 15
     for ($i=0; $i<count($data['rows']); $i++) {
16 16
         $row = $data['rows'][$i];
17
-        if (count($row) == 0) continue;
17
+        if (count($row) == 0) {
18
+            continue;
19
+        }
18 20
         if ($row['htype'] == '12') {
19 21
             if (isset($row['speaker']) && count($row['speaker']) > 0) {
20 22
                 $speaker = $row['speaker'];
21 23
                 if (is_file(BASEDIR . IMAGEPATH . 'mps/' . $speaker['person_id'] . '.jpeg')) {
22 24
                     $row['speaker']['image'] = IMAGEPATH . 'mps/' . $speaker['person_id'] . '.jpeg';
23
-                } elseif (is_file(BASEDIR . IMAGEPATH . 'mps/' . $speaker['person_id'] . '.jpg')) {
25
+                }
26
+                elseif (is_file(BASEDIR . IMAGEPATH . 'mps/' . $speaker['person_id'] . '.jpg')) {
24 27
                     $row['speaker']['image'] = IMAGEPATH . 'mps/' . $speaker['person_id'] . '.jpg';
25 28
                 }
26 29
                 $desc = '';
@@ -36,7 +39,9 @@  discard block
 block discarded – undo
36 39
                     $desc .= $speaker['constituency'] . ', ';
37 40
                 }
38 41
                 $desc .= _htmlentities($speaker['party']);
39
-                if ($desc) $row['speaker']['desc'] = $desc;
42
+                if ($desc) {
43
+                    $row['speaker']['desc'] = $desc;
44
+                }
40 45
             }
41 46
         }
42 47
         $out[] = $row;
@@ -46,16 +51,20 @@  discard block
 block discarded – undo
46 51
         foreach ($data['subrows'] as $row) {
47 52
             if (isset($row['contentcount']) && $row['contentcount'] > 0) {
48 53
                 $has_content = true;
49
-            } elseif ($row['htype'] == '11' && $hansardmajors[$row['major']]['type'] == 'other') {
54
+            }
55
+            elseif ($row['htype'] == '11' && $hansardmajors[$row['major']]['type'] == 'other') {
50 56
                 $has_content = true;
51
-            } else {
57
+            }
58
+            else {
52 59
                 $has_content = false;
53 60
             }
54 61
             $entry = $row;
55
-            if (isset($row['excerpt']))
56
-                $entry['excerpt'] = trim_characters($entry['excerpt'], 0, 200);
62
+            if (isset($row['excerpt'])) {
63
+                            $entry['excerpt'] = trim_characters($entry['excerpt'], 0, 200);
64
+            }
57 65
             if ($has_content) {
58
-            } else {
66
+            }
67
+            else {
59 68
                 unset($entry['listurl']);
60 69
                 unset($entry['commentsurl']);
61 70
                 unset($entry['comment']);
@@ -65,6 +74,7 @@  discard block
 block discarded – undo
65 74
         }
66 75
     }
67 76
     api_output($out);
68
-} else {
77
+}
78
+else {
69 79
     api_error('Nothing');
70 80
    }
Please login to merge, or discard this patch.
www/includes/easyparliament/templates/api/hansard_date.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
 
12 12
 if (isset ($data['rows'])) {
13 13
     $out = array();
14
-    for ($i=0; $i<count($data['rows']); $i++) {
14
+    for ($i = 0; $i < count($data['rows']); $i++) {
15 15
         $row = $data['rows'][$i];
16 16
 
17 17
         if ($row['htype'] == '10' && isset($row['excerpt']) && strstr($row['excerpt'], "was asked&#8212;")) {
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
         if ($row['htype'] == '10') {
41 41
             $out[] = array('entry' => $entry, 'subs' => array());
42 42
         } else {
43
-            $out[sizeof($out)-1]['subs'][] = $entry;
43
+            $out[sizeof($out) - 1]['subs'][] = $entry;
44 44
         }
45 45
 
46 46
     }
Please login to merge, or discard this patch.
Braces   +15 added lines, -8 removed lines patch added patch discarded remove patch
@@ -18,19 +18,24 @@  discard block
 block discarded – undo
18 18
             // We fake it here. We hope this section only has a single line like
19 19
             // "The Secretary of State was asked-" and we don't want to make it a link.
20 20
             $has_content = false;
21
-        } elseif (isset($row['contentcount']) && $row['contentcount'] > 0) {
21
+        }
22
+        elseif (isset($row['contentcount']) && $row['contentcount'] > 0) {
22 23
             $has_content = true;
23
-        } elseif ($row['htype'] == '11' && $hansardmajors[$row['major']]['type'] == 'other') {
24
+        }
25
+        elseif ($row['htype'] == '11' && $hansardmajors[$row['major']]['type'] == 'other') {
24 26
             $has_content = true;
25
-        } else {
27
+        }
28
+        else {
26 29
             $has_content = false;
27 30
         }
28 31
 
29 32
         $entry = $row;
30
-        if (isset($row['excerpt']))
31
-            $entry['excerpt'] = trim_characters($entry['excerpt'], 0, 200);
33
+        if (isset($row['excerpt'])) {
34
+                    $entry['excerpt'] = trim_characters($entry['excerpt'], 0, 200);
35
+        }
32 36
         if ($has_content) {
33
-        } else {
37
+        }
38
+        else {
34 39
             unset($entry['listurl']);
35 40
             unset($entry['commentsurl']);
36 41
             unset($entry['comment']);
@@ -39,12 +44,14 @@  discard block
 block discarded – undo
39 44
 
40 45
         if ($row['htype'] == '10') {
41 46
             $out[] = array('entry' => $entry, 'subs' => array());
42
-        } else {
47
+        }
48
+        else {
43 49
             $out[sizeof($out)-1]['subs'][] = $entry;
44 50
         }
45 51
 
46 52
     }
47 53
     api_output($out);
48
-} else {
54
+}
55
+else {
49 56
     api_error('No data to display');
50 57
 }
Please login to merge, or discard this patch.
www/includes/easyparliament/sidebars/search_filters.php 3 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
  <select id="section" name="section">
67 67
  <option value="">Any
68 68
 <?php
69
- optgroups(array(
69
+    optgroups(array(
70 70
     'UK Parliament' => array(
71 71
         'uk' => 'All UK',
72 72
         'debates' => 'House of Commons debates',
@@ -85,8 +85,8 @@  discard block
 block discarded – undo
85 85
         'sp' => 'Debates',
86 86
         'spwrans' => 'Written answers',
87 87
     ),
88
- ), $section);
89
- ?>
88
+    ), $section);
89
+    ?>
90 90
  </select>
91 91
  <div class="help">
92 92
  Restrict results to a particular parliament or assembly that we cover (e.g. the
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
 if (preg_match('#\s*([0-9/.-]*)\.\.([0-9/.-]*)#', $filter_ss, $m)) {
24 24
     $from = $m[1];
25 25
     $to = $m[2];
26
-    $filter_ss =  preg_replace('#\s*([0-9/.-]*)\.\.([0-9/.-]*)#', '', $filter_ss);
26
+    $filter_ss = preg_replace('#\s*([0-9/.-]*)\.\.([0-9/.-]*)#', '', $filter_ss);
27 27
 }
28 28
 $section = get_http_var('section');
29 29
 if (preg_match('#\s*section:([a-z]*)#', $filter_ss, $m)) {
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
     $filter_ss = preg_replace('#\s*speaker:[0-9]*#', '', $filter_ss);
37 37
 }
38 38
 
39
-$this->block_start(array( 'title' => "Filtering your results"));
39
+$this->block_start(array('title' => "Filtering your results"));
40 40
 
41 41
 ?>
42 42
 <form method="get" action="/search/">
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,9 @@
 block discarded – undo
5 5
         echo '<optgroup label="', $key, '">';
6 6
         foreach ($values as $k => $v) {
7 7
             echo '<option';
8
-            if ($current == $k) echo ' selected';
8
+            if ($current == $k) {
9
+                echo ' selected';
10
+            }
9 11
             echo ' value="', $k, '">', $v;
10 12
         }
11 13
         echo "</optgroup>\n";
Please login to merge, or discard this patch.
www/includes/easyparliament/comment.php 4 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -210,8 +210,8 @@
 block discarded – undo
210 210
                             array(':epobject_id' => $this->epobject_id));
211 211
 
212 212
             if ($q->rows() > 0) {
213
-                 // If you change stuff here, you might have to change it in
214
-                 // $COMMENTLIST->_get_comment_data() too...
213
+                    // If you change stuff here, you might have to change it in
214
+                    // $COMMENTLIST->_get_comment_data() too...
215 215
 
216 216
                 $gid = fix_gid_from_db($q->field(0, 'gid')); // In includes/utility.php
217 217
 
Please login to merge, or discard this patch.
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
     public $body = '';
32 32
     public $posted = '';
33 33
     public $visible = false;
34
-    public $modflagged = NULL;	// Is a datetime when set.
34
+    public $modflagged = null;	// Is a datetime when set.
35 35
     public $firstname = '';	// Of the person who posted it.
36 36
     public $lastname = '';
37 37
     public $url = '';
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
             $flag = "'$date'";
139 139
 
140 140
         } elseif ($switch == 'off') {
141
-            $date = NULL;
141
+            $date = null;
142 142
             $flag = 'NULL';
143 143
 
144 144
         } else {
Please login to merge, or discard this patch.
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -31,8 +31,8 @@  discard block
 block discarded – undo
31 31
     public $body = '';
32 32
     public $posted = '';
33 33
     public $visible = false;
34
-    public $modflagged = NULL;	// Is a datetime when set.
35
-    public $firstname = '';	// Of the person who posted it.
34
+    public $modflagged = NULL; // Is a datetime when set.
35
+    public $firstname = ''; // Of the person who posted it.
36 36
     public $lastname = '';
37 37
     public $url = '';
38 38
 
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
     public $exists = false;
42 42
 
43 43
 
44
-    public function __construct($comment_id='') {
44
+    public function __construct($comment_id = '') {
45 45
 
46 46
         $this->db = new ParlDB;
47 47
 
@@ -69,12 +69,12 @@  discard block
 block discarded – undo
69 69
             if ($q->rows() > 0) {
70 70
 
71 71
                 $this->comment_id 	= $comment_id;
72
-                $this->user_id		= $q->field(0, 'user_id');
72
+                $this->user_id = $q->field(0, 'user_id');
73 73
                 $this->epobject_id	= $q->field(0, 'epobject_id');
74
-                $this->body			= $q->field(0, 'body');
75
-                $this->posted		= $q->field(0, 'posted');
76
-                $this->visible		= $q->field(0, 'visible');
77
-                $this->modflagged	= $q->field(0, 'modflagged');
74
+                $this->body = $q->field(0, 'body');
75
+                $this->posted = $q->field(0, 'posted');
76
+                $this->visible = $q->field(0, 'visible');
77
+                $this->modflagged = $q->field(0, 'modflagged');
78 78
 
79 79
                 // Sets the URL and username for this comment. Duh.
80 80
                 $this->_set_url();
@@ -104,9 +104,9 @@  discard block
 block discarded – undo
104 104
     public function comments_enabled() { return $this->comments_enabled; }
105 105
 
106 106
 
107
-    public function display($format='html', $template='comments') {
107
+    public function display($format = 'html', $template = 'comments') {
108 108
 
109
-        $data['comments'][0] = array (
109
+        $data['comments'][0] = array(
110 110
             'comment_id'	=> $this->comment_id,
111 111
             'user_id'		=> $this->user_id,
112 112
             'epobject_id'	=> $this->epobject_id,
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
             $flag = 'NULL';
143 143
 
144 144
         } else {
145
-            $PAGE->error_message ("Why are you trying to switch this comment's modflag to '" . _htmlentities($switch) . "'!");
145
+            $PAGE->error_message("Why are you trying to switch this comment's modflag to '" . _htmlentities($switch) . "'!");
146 146
         }
147 147
 
148 148
         $q = $this->db->query("UPDATE comments
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
             $this->modflagged = $date;
155 155
             return true;
156 156
         } else {
157
-            $message = array (
157
+            $message = array(
158 158
                 'title' => 'Sorry',
159 159
                 'text' => "We couldn't update the annotation's modflag."
160 160
             );
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
             if ($q->success()) {
177 177
                 return true;
178 178
             } else {
179
-                $message = array (
179
+                $message = array(
180 180
                     'title' => 'Sorry',
181 181
                     'text' => "We were unable to delete the annotation."
182 182
                 );
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
             }
186 186
 
187 187
         } else {
188
-            $message = array (
188
+            $message = array(
189 189
                 'title' => 'Sorry',
190 190
                 'text' => "You are not authorised to delete annotations."
191 191
             );
Please login to merge, or discard this patch.
Braces   +14 added lines, -7 removed lines patch added patch discarded remove patch
@@ -48,7 +48,8 @@  discard block
 block discarded – undo
48 48
         // Set in init.php
49 49
         if (ALLOWCOMMENTS == true) {
50 50
             $this->comments_enabled = true;
51
-        } else {
51
+        }
52
+        else {
52 53
             $this->comments_enabled = false;
53 54
         }
54 55
 
@@ -81,7 +82,8 @@  discard block
 block discarded – undo
81 82
                 $this->_set_username();
82 83
 
83 84
                 $this->exists = true;
84
-            } else {
85
+            }
86
+            else {
85 87
                 $this->exists = false;
86 88
             }
87 89
         }
@@ -137,11 +139,13 @@  discard block
 block discarded – undo
137 139
             $date = gmdate("Y-m-d H:i:s");
138 140
             $flag = "'$date'";
139 141
 
140
-        } elseif ($switch == 'off') {
142
+        }
143
+        elseif ($switch == 'off') {
141 144
             $date = NULL;
142 145
             $flag = 'NULL';
143 146
 
144
-        } else {
147
+        }
148
+        else {
145 149
             $PAGE->error_message ("Why are you trying to switch this comment's modflag to '" . _htmlentities($switch) . "'!");
146 150
         }
147 151
 
@@ -153,7 +157,8 @@  discard block
 block discarded – undo
153 157
         if ($q->success()) {
154 158
             $this->modflagged = $date;
155 159
             return true;
156
-        } else {
160
+        }
161
+        else {
157 162
             $message = array (
158 163
                 'title' => 'Sorry',
159 164
                 'text' => "We couldn't update the annotation's modflag."
@@ -175,7 +180,8 @@  discard block
 block discarded – undo
175 180
 
176 181
             if ($q->success()) {
177 182
                 return true;
178
-            } else {
183
+            }
184
+            else {
179 185
                 $message = array (
180 186
                     'title' => 'Sorry',
181 187
                     'text' => "We were unable to delete the annotation."
@@ -184,7 +190,8 @@  discard block
 block discarded – undo
184 190
                 return false;
185 191
             }
186 192
 
187
-        } else {
193
+        }
194
+        else {
188 195
             $message = array (
189 196
                 'title' => 'Sorry',
190 197
                 'text' => "You are not authorised to delete annotations."
Please login to merge, or discard this patch.
www/includes/dbtypes.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
 );
125 125
 $hansardmajors[104] = $hansardmajors[4];
126 126
 
127
-$parties = array (
127
+$parties = array(
128 128
     'Bp'    => 'Bishop',
129 129
     'Con'   => 'Conservative',
130 130
     'CWM'   => 'Deputy Speaker',
@@ -166,9 +166,9 @@  discard block
 block discarded – undo
166 166
 */
167 167
 
168 168
 // Constants for various house types
169
-define ('HOUSE_TYPE_ROYAL', 0);
170
-define ('HOUSE_TYPE_COMMONS', 1);
171
-define ('HOUSE_TYPE_LORDS', 2);
172
-define ('HOUSE_TYPE_NI', 3);
173
-define ('HOUSE_TYPE_SCOTLAND', 4);
174
-define ('HOUSE_TYPE_WALES', 5);
169
+define('HOUSE_TYPE_ROYAL', 0);
170
+define('HOUSE_TYPE_COMMONS', 1);
171
+define('HOUSE_TYPE_LORDS', 2);
172
+define('HOUSE_TYPE_NI', 3);
173
+define('HOUSE_TYPE_SCOTLAND', 4);
174
+define('HOUSE_TYPE_WALES', 5);
Please login to merge, or discard this patch.