Passed
Push — master ( 2073b4...fffc45 )
by Struan
06:46
created
www/includes/easyparliament/sidebars/minisurvey.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -33,10 +33,10 @@  discard block
 block discarded – undo
33 33
 if ($hide_question) {
34 34
     $always_ask = 0;
35 35
     $show_survey_qn = $current_question;
36
-    setcookie('survey', $current_question, time()+60*60*24*365, '/');
36
+    setcookie('survey', $current_question, time() + 60 * 60 * 24 * 365, '/');
37 37
 } elseif ($has_answered_question == $current_question && !$always_ask) {
38 38
     $show_survey_qn = $current_question;
39
-    setcookie('survey', $current_question, time()+60*60*24*365, '/');
39
+    setcookie('survey', $current_question, time() + 60 * 60 * 24 * 365, '/');
40 40
 } elseif (isset($_COOKIE['survey'])) {
41 41
     $show_survey_qn = $_COOKIE['survey'];
42 42
 }
@@ -49,16 +49,16 @@  discard block
 block discarded – undo
49 49
 if ($show_survey_qn < $current_question && !$has_answered_question) {
50 50
     $page_url = '';
51 51
     $hide_url = '';
52
-    if ( in_array( $this_page, array('mp', 'peer', 'msp', 'mla', 'royal') ) ) {
52
+    if (in_array($this_page, array('mp', 'peer', 'msp', 'mla', 'royal'))) {
53 53
         global $MEMBER;
54 54
         $page_url = $MEMBER->url(true) . "?answered_survey=$current_question";
55 55
         $hide_url = $MEMBER->url() . "?hide_survey=$current_question";
56 56
     } else {
57 57
         $URL = new \MySociety\TheyWorkForYou\Url($this_page);
58
-        $URL->insert(array('answered_survey' => $current_question ));
58
+        $URL->insert(array('answered_survey' => $current_question));
59 59
         $page_url = 'https://' . DOMAIN . $URL->generate();
60 60
         $URL = new \MySociety\TheyWorkForYou\Url($this_page);
61
-        $URL->insert(array('hide_survey' => $current_question ));
61
+        $URL->insert(array('hide_survey' => $current_question));
62 62
         $hide_url = $URL->generate();
63 63
     }
64 64
 
Please login to merge, or discard this patch.
www/docs/admin/badusers.php 1 patch
Spacing   +11 added lines, -11 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/commentreportlist.php");
4
+include_once (INCLUDESPATH . "easyparliament/commentreportlist.php");
5 5
 
6 6
 $this_page = "admin_badusers";
7 7
 
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
 $rows = array();
33 33
 $USERURL = new \MySociety\TheyWorkForYou\Url('userview');
34 34
 
35
-for ($row=0; $row<$q->rows(); $row++) {
35
+for ($row = 0; $row < $q->rows(); $row++) {
36 36
 
37 37
     $user_id = $q->field($row, 'user_id');
38 38
 
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
 
44 44
     $totalcomments = $r->field(0, 'totalcount');
45 45
 
46
-    $percentagedeleted = ( $q->field($row, 'deletedcount') / $totalcomments ) * 100;
46
+    $percentagedeleted = ($q->field($row, 'deletedcount') / $totalcomments) * 100;
47 47
 
48 48
 
49 49
     // Get complaints made about this user's comments, but not upheld.
@@ -59,17 +59,17 @@  discard block
 block discarded – undo
59 59
 
60 60
     $USERURL->insert(array('u'=>$user_id));
61 61
 
62
-    $rows[] = array (
62
+    $rows[] = array(
63 63
         '<a href="' . $USERURL->generate() . '">' . $q->field($row, 'firstname') . ' ' . $q->field($row, 'lastname') . '</a>',
64 64
         $totalcomments,
65 65
         $q->field($row, 'deletedcount'),
66
-        $percentagedeleted.'%',
66
+        $percentagedeleted . '%',
67 67
         $notupheldcount
68 68
     );
69 69
 }
70 70
 
71
-$tabledata = array (
72
-    'header' => array (
71
+$tabledata = array(
72
+    'header' => array(
73 73
         'Name',
74 74
         'Total comments',
75 75
         'Number deleted',
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
 $rows = array();
106 106
 $USERURL = new \MySociety\TheyWorkForYou\Url('userview');
107 107
 
108
-for ($row=0; $row<$q->rows(); $row++) {
108
+for ($row = 0; $row < $q->rows(); $row++) {
109 109
 
110 110
     $user_id = $q->field($row, 'user_id');
111 111
 
@@ -117,15 +117,15 @@  discard block
 block discarded – undo
117 117
                     WHERE	user_id = '$user_id'
118 118
                     AND		upheld = '1'");
119 119
 
120
-    $rows[] = array (
120
+    $rows[] = array(
121 121
         '<a href="' . $USERURL->generate() . '">' . $q->field($row, 'firstname') . ' ' . $q->field($row, 'lastname') . '</a>',
122 122
         $q->field($row, 'rejectedcount'),
123 123
         $r->field(0, 'upheldcount')
124 124
     );
125 125
 
126 126
 }
127
-$tabledata = array (
128
-    'header' => array (
127
+$tabledata = array(
128
+    'header' => array(
129 129
         'Name',
130 130
         'Reports not upheld',
131 131
         'Reports upheld'
Please login to merge, or discard this patch.
www/docs/admin/index.php 1 patch
Spacing   +7 added lines, -7 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/commentreportlist.php");
4
+include_once (INCLUDESPATH . "easyparliament/commentreportlist.php");
5 5
 
6 6
 $this_page = "admin_home";
7 7
 
@@ -22,11 +22,11 @@  discard block
 block discarded – undo
22 22
 $q = $db->query("SELECT COUNT(*) AS count FROM users WHERE confirmed = '0'");
23 23
 $unconfirmedusers = $q->field(0, 'count');
24 24
 
25
-$olddate = gmdate("Y-m-d H:i:s", time()-86400);
25
+$olddate = gmdate("Y-m-d H:i:s", time() - 86400);
26 26
 $q = $db->query("SELECT COUNT(*) AS count FROM users WHERE lastvisit > '$olddate'");
27 27
 $dayusers = $q->field(0, 'count');
28 28
 
29
-$olddate = gmdate("Y-m-d H:i:s", time()-86400*7);
29
+$olddate = gmdate("Y-m-d H:i:s", time() - 86400 * 7);
30 30
 $q = $db->query("SELECT COUNT(*) AS count FROM users WHERE lastvisit > '$olddate'");
31 31
 $weekusers = $q->field(0, 'count');
32 32
 ?>
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
 $rows = array();
62 62
 $USERURL = new \MySociety\TheyWorkForYou\Url('userview');
63 63
 
64
-for ($row=0; $row<$q->rows(); $row++) {
64
+for ($row = 0; $row < $q->rows(); $row++) {
65 65
 
66 66
     $user_id = $q->field($row, 'user_id');
67 67
 
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
         $name = _htmlspecialchars($q->field($row, 'firstname') . ' ' . $q->field($row, 'lastname'));
77 77
     }
78 78
 
79
-    $rows[] = array (
79
+    $rows[] = array(
80 80
         $name,
81 81
         '<a href="mailto:' . $q->field($row, 'email') . '">' . $q->field($row, 'email') . '</a>',
82 82
         $confirmed,
@@ -84,8 +84,8 @@  discard block
 block discarded – undo
84 84
     );
85 85
 }
86 86
 
87
-$tabledata = array (
88
-    'header' => array (
87
+$tabledata = array(
88
+    'header' => array(
89 89
         'Name',
90 90
         'Email',
91 91
         'Confirmed?',
Please login to merge, or discard this patch.
www/docs/user/prompt/index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
 $anchor = '#addcomment';
21 21
 
22 22
 $URL = new \MySociety\TheyWorkForYou\Url('userjoin');
23
-$URL->insert(array('ret'=>$returl.$anchor));
23
+$URL->insert(array('ret'=>$returl . $anchor));
24 24
 $joinurl = $URL->generate();
25 25
 
26 26
 
Please login to merge, or discard this patch.
www/docs/index-election.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
 $HANSARDURL = new \MySociety\TheyWorkForYou\Url('hansard');
73 73
 $MPURL = new \MySociety\TheyWorkForYou\Url('yourmp');
74 74
 
75
-$PAGE->block_start(array ('id'=>'intro', 'title'=>'Election special! Find out how they performed for YOU:'));
75
+$PAGE->block_start(array('id'=>'intro', 'title'=>'Election special! Find out how they performed for YOU:'));
76 76
 ?>
77 77
                         <ol>
78 78
 
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
     } else {
90 90
         $CHANGEURL = new \MySociety\TheyWorkForYou\Url('userchangepc');
91 91
     }
92
-    $MEMBER = new MEMBER(array ('postcode'=>$THEUSER->postcode(), 'house'=>1));
92
+    $MEMBER = new MEMBER(array('postcode'=>$THEUSER->postcode(), 'house'=>1));
93 93
     $mpname = $MEMBER->full_name();
94 94
     ?>
95 95
       <p><a href="<?php echo $MPURL->generate(); ?>"><strong>Find out more about how <?php echo $mpname; ?>, your ex-MP, represented you over the last parliament</strong></a><br>
@@ -185,11 +185,11 @@  discard block
 block discarded – undo
185 185
 //$PAGE->block_end();
186 186
 
187 187
 $PAGE->stripe_end(array(
188
-    array (
188
+    array(
189 189
         'type' => 'include',
190 190
         'content' => 'whatisthissite'
191 191
     ),
192
-    array (
192
+    array(
193 193
         'type' => 'include',
194 194
         'content' => 'sitenews_recent'
195 195
     )
Please login to merge, or discard this patch.
classes/Utility/Wikipedia.php 3 patches
Braces   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -99,8 +99,9 @@  discard block
 block discarded – undo
99 99
 
100 100
             # See if already matched a string this one is contained within
101 101
             foreach ($matched as $got) {
102
-                if (strstr($got, $phrase))
103
-                    continue 2;
102
+                if (strstr($got, $phrase)) {
103
+                                    continue 2;
104
+                }
104 105
             }
105 106
 
106 107
             twfy_debug("WIKIPEDIA", "Matched '$phrase'");
@@ -119,8 +120,9 @@  discard block
 block discarded – undo
119 120
             array_push($matched, $phrase);
120 121
         }
121 122
 
122
-        if (!$was_array)
123
-            $source = join('|||', $source);
123
+        if (!$was_array) {
124
+                    $source = join('|||', $source);
125
+        }
124 126
 
125 127
         return $source;
126 128
 
@@ -148,28 +150,26 @@  discard block
 block discarded – undo
148 150
         {
149 151
           $nextopen = strpos( $content, '<', $walker );
150 152
           $nextclose = strpos( $content, '>', $walker );
151
-          if( $nextclose === false )
152
-            {    // ERROR! Open waka without close waka!
153
+          if( $nextclose === false ) {
154
+// ERROR! Open waka without close waka!
153 155
               // echo '<code>Error in antiTagInTag - malformed tag!</code> ';
154 156
               return $content;
155 157
             }
156
-          if( $nextopen === false || $nextopen > $nextclose )
157
-            { // No more opens, but there was a close; or, a close happens before the next open.
158
+          if( $nextopen === false || $nextopen > $nextclose ) {
159
+// No more opens, but there was a close; or, a close happens before the next open.
158 160
               // walker goes to the close+1, and open decrements
159 161
               $open --;
160 162
               $walker = $nextclose + 1;
161
-            }
162
-          elseif( $nextopen < $nextclose )
163
-            { // an open before the next close
163
+            } elseif( $nextopen < $nextclose ) {
164
+// an open before the next close
164 165
               $open ++;
165 166
               $walker = $nextopen + 1;
166 167
             }
167 168
         }
168 169
           $tagend = $walker;
169
-          if( $tagend > strlen( $content ) )
170
-        $tagend = strlen( $content );
171
-          else
172
-        {
170
+          if( $tagend > strlen( $content ) ) {
171
+                  $tagend = strlen( $content );
172
+          } else {
173 173
           $tagend --;
174 174
           $tagstart ++;
175 175
         }
Please login to merge, or discard this patch.
Indentation   +35 added lines, -35 removed lines patch added patch discarded remove patch
@@ -136,61 +136,61 @@
 block discarded – undo
136 136
 
137 137
     public static function antiTagInTag($content = '', $format = 'htmlhead')
138 138
     {
139
-      $tagend = -1;
140
-      for( $tagstart = strpos( $content, '<', $tagend + 1 ) ; $tagstart !== false && $tagstart < strlen( $content ); $tagstart = strpos( $content, '<', $tagend ) )
139
+        $tagend = -1;
140
+        for( $tagstart = strpos( $content, '<', $tagend + 1 ) ; $tagstart !== false && $tagstart < strlen( $content ); $tagstart = strpos( $content, '<', $tagend ) )
141 141
         {
142
-          // got the start of a tag.  Now find the proper end!
143
-          $walker = $tagstart + 1;
144
-          $open = 1;
145
-          while( $open != 0 && $walker < strlen( $content ) )
142
+            // got the start of a tag.  Now find the proper end!
143
+            $walker = $tagstart + 1;
144
+            $open = 1;
145
+            while( $open != 0 && $walker < strlen( $content ) )
146 146
         {
147
-          $nextopen = strpos( $content, '<', $walker );
148
-          $nextclose = strpos( $content, '>', $walker );
149
-          if( $nextclose === false )
147
+            $nextopen = strpos( $content, '<', $walker );
148
+            $nextclose = strpos( $content, '>', $walker );
149
+            if( $nextclose === false )
150 150
             {    // ERROR! Open waka without close waka!
151
-              // echo '<code>Error in antiTagInTag - malformed tag!</code> ';
152
-              return $content;
151
+                // echo '<code>Error in antiTagInTag - malformed tag!</code> ';
152
+                return $content;
153 153
             }
154
-          if( $nextopen === false || $nextopen > $nextclose )
154
+            if( $nextopen === false || $nextopen > $nextclose )
155 155
             { // No more opens, but there was a close; or, a close happens before the next open.
156
-              // walker goes to the close+1, and open decrements
157
-              $open --;
158
-              $walker = $nextclose + 1;
156
+                // walker goes to the close+1, and open decrements
157
+                $open --;
158
+                $walker = $nextclose + 1;
159 159
             }
160
-          elseif( $nextopen < $nextclose )
160
+            elseif( $nextopen < $nextclose )
161 161
             { // an open before the next close
162
-              $open ++;
163
-              $walker = $nextopen + 1;
162
+                $open ++;
163
+                $walker = $nextopen + 1;
164 164
             }
165 165
         }
166
-          $tagend = $walker;
167
-          if( $tagend > strlen( $content ) )
166
+            $tagend = $walker;
167
+            if( $tagend > strlen( $content ) )
168 168
         $tagend = strlen( $content );
169
-          else
169
+            else
170 170
         {
171
-          $tagend --;
172
-          $tagstart ++;
171
+            $tagend --;
172
+            $tagstart ++;
173 173
         }
174
-          $tag = substr( $content, $tagstart, $tagend - $tagstart );
175
-          $tags[] = '<' . $tag . '>';
174
+            $tag = substr( $content, $tagstart, $tagend - $tagstart );
175
+            $tags[] = '<' . $tag . '>';
176 176
 
177
-          if (function_exists('format_to_output')) {
177
+            if (function_exists('format_to_output')) {
178 178
             $newtag = format_to_output($tag, $format);
179
-          } else {
179
+            } else {
180 180
             $newtag = strip_tags($tag);
181
-          }
181
+            }
182 182
 
183
-          $newtags[] = '<' . $newtag . '>';
183
+            $newtags[] = '<' . $newtag . '>';
184 184
 
185
-          if (function_exists('format_to_output')) {
185
+            if (function_exists('format_to_output')) {
186 186
             $newtag = format_to_output($tag, $format);
187
-          } else {
187
+            } else {
188 188
             $newtag = strip_tags($tag);
189
-          }
189
+            }
190
+        }
191
+        if (isset($tags)&&isset($newtags)) {
192
+        $content = str_replace($tags, $newtags, $content);
190 193
         }
191
-      if (isset($tags)&&isset($newtags)) {
192
-      $content = str_replace($tags, $newtags, $content);
193
-      }
194 194
 
195 195
     return $content;
196 196
 
Please login to merge, or discard this patch.
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
         $source = explode('|||', $source);
84 84
         $q = $db->query("SELECT titles.title FROM titles LEFT JOIN titles_ignored ON titles.title=titles_ignored.title WHERE titles.title IN (" . join(',', array_keys($params)) . ") AND titles_ignored.title IS NULL", $params);
85 85
         $phrases = array();
86
-        for ($i=0; $i<$q->rows(); $i++) {
86
+        for ($i = 0; $i < $q->rows(); $i++) {
87 87
             $phrases[] = $q->field($i, 'title');
88 88
         }
89 89
 
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
 
106 106
             twfy_debug("WIKIPEDIA", "Matched '$phrase'");
107 107
             # 1 means only replace one match for phrase per paragraph
108
-            $source = preg_replace ('{
108
+            $source = preg_replace('{
109 109
             \b(' . $phrase_re . ')\b # Match the phrase itself
110 110
             (?!                      # Match as long as the following does *not* apply:
111 111
                 (?:                  #   Match, possessively, as many strings of:
@@ -137,41 +137,41 @@  discard block
 block discarded – undo
137 137
     public static function antiTagInTag($content = '', $format = 'htmlhead')
138 138
     {
139 139
       $tagend = -1;
140
-      for( $tagstart = strpos( $content, '<', $tagend + 1 ) ; $tagstart !== false && $tagstart < strlen( $content ); $tagstart = strpos( $content, '<', $tagend ) )
140
+      for ($tagstart = strpos($content, '<', $tagend + 1); $tagstart !== false && $tagstart < strlen($content); $tagstart = strpos($content, '<', $tagend))
141 141
         {
142 142
           // got the start of a tag.  Now find the proper end!
143 143
           $walker = $tagstart + 1;
144 144
           $open = 1;
145
-          while( $open != 0 && $walker < strlen( $content ) )
145
+          while ($open != 0 && $walker < strlen($content))
146 146
         {
147
-          $nextopen = strpos( $content, '<', $walker );
148
-          $nextclose = strpos( $content, '>', $walker );
149
-          if( $nextclose === false )
147
+          $nextopen = strpos($content, '<', $walker);
148
+          $nextclose = strpos($content, '>', $walker);
149
+          if ($nextclose === false)
150 150
             {    // ERROR! Open waka without close waka!
151 151
               // echo '<code>Error in antiTagInTag - malformed tag!</code> ';
152 152
               return $content;
153 153
             }
154
-          if( $nextopen === false || $nextopen > $nextclose )
154
+          if ($nextopen === false || $nextopen > $nextclose)
155 155
             { // No more opens, but there was a close; or, a close happens before the next open.
156 156
               // walker goes to the close+1, and open decrements
157
-              $open --;
157
+              $open--;
158 158
               $walker = $nextclose + 1;
159 159
             }
160
-          elseif( $nextopen < $nextclose )
160
+          elseif ($nextopen < $nextclose)
161 161
             { // an open before the next close
162
-              $open ++;
162
+              $open++;
163 163
               $walker = $nextopen + 1;
164 164
             }
165 165
         }
166 166
           $tagend = $walker;
167
-          if( $tagend > strlen( $content ) )
168
-        $tagend = strlen( $content );
167
+          if ($tagend > strlen($content))
168
+        $tagend = strlen($content);
169 169
           else
170 170
         {
171
-          $tagend --;
172
-          $tagstart ++;
171
+          $tagend--;
172
+          $tagstart++;
173 173
         }
174
-          $tag = substr( $content, $tagstart, $tagend - $tagstart );
174
+          $tag = substr($content, $tagstart, $tagend - $tagstart);
175 175
           $tags[] = '<' . $tag . '>';
176 176
 
177 177
           if (function_exists('format_to_output')) {
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
             $newtag = strip_tags($tag);
189 189
           }
190 190
         }
191
-      if (isset($tags)&&isset($newtags)) {
191
+      if (isset($tags) && isset($newtags)) {
192 192
       $content = str_replace($tags, $newtags, $content);
193 193
       }
194 194
 
Please login to merge, or discard this patch.
classes/Db/Query.php 1 patch
Braces   +9 added lines, -5 removed lines patch added patch discarded remove patch
@@ -130,7 +130,9 @@  discard block
 block discarded – undo
130 130
             $this->error($this->conn->errorCode() . ': ' . $this->conn->errorInfo()[2]);
131 131
         }
132 132
 
133
-        if (!$this->success) return;
133
+        if (!$this->success) {
134
+            return;
135
+        }
134 136
 
135 137
         if ((!$pdoStatement) or (empty($pdoStatement))) {
136 138
             // A failed query.
@@ -180,8 +182,9 @@  discard block
 block discarded – undo
180 182
      * @param string $column_name
181 183
      */
182 184
     public function field($row_index, $column_name) {
183
-        if ($this->rows > 0)
184
-            return $this->data[$row_index][$column_name];
185
+        if ($this->rows > 0) {
186
+                    return $this->data[$row_index][$column_name];
187
+        }
185 188
         return "";
186 189
     }
187 190
 
@@ -196,8 +199,9 @@  discard block
 block discarded – undo
196 199
      * @param integer $row_index
197 200
      */
198 201
     public function row($row_index) {
199
-        if ($this->success && $this->rows > 0)
200
-            return $this->data[$row_index];
202
+        if ($this->success && $this->rows > 0) {
203
+                    return $this->data[$row_index];
204
+        }
201 205
         return array();
202 206
     }
203 207
 
Please login to merge, or discard this patch.
www/includes/easyparliament/templates/html/header.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
         }(document, 'script', 'facebook-jssdk'));
158 158
     </script>
159 159
 
160
-  <?php if ( $banner_text ) { ?>
160
+  <?php if ($banner_text) { ?>
161 161
     <div class="banner">
162 162
         <div class="full-page__row">
163 163
             <div class="banner__content">
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
 
235 235
                 <div class="site-nav__user">
236 236
                     <ul>
237
-                      <?php foreach ($user_nav_links as $nav_link){ ?>
237
+                      <?php foreach ($user_nav_links as $nav_link) { ?>
238 238
                         <li><a href="<?= $nav_link['href']; ?>" title="<?= $nav_link['title']; ?>" class="<?= $nav_link['classes']; ?>">
239 239
                             <?= $nav_link['text'] ?>
240 240
                         </a></li>
@@ -268,7 +268,7 @@  discard block
 block discarded – undo
268 268
     <div class="full-page legacy-page static-page">
269 269
         <div class="full-page__row">
270 270
             <div class="panel">
271
-            <?php foreach ( $page_errors as $error ) { ?>
271
+            <?php foreach ($page_errors as $error) { ?>
272 272
                 <p><?= $error['text'] ?></p>
273 273
             <?php } ?>
274 274
             </div>
Please login to merge, or discard this patch.
classes/Renderer/User.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
         $menudata   = $this->pagedata->page_metadata('userviewself', 'menu');
48 48
         $edittitle  = $menudata['title'];
49 49
         $EDITURL    = new \MySociety\TheyWorkForYou\Url('userviewself');
50
-        if ($this->page == 'userviewself' || $this->page == 'useredit' ) {
50
+        if ($this->page == 'userviewself' || $this->page == 'useredit') {
51 51
             $editclass = 'on';
52 52
         } else {
53 53
             $editclass = '';
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
         // The 'Log out' link.
57 57
         $menudata   = $this->pagedata->page_metadata('userlogout', 'menu');
58 58
         $logouttext = $menudata['text'];
59
-        $logouttitle= $menudata['title'];
59
+        $logouttitle = $menudata['title'];
60 60
 
61 61
         $LOGOUTURL  = new \MySociety\TheyWorkForYou\Url('userlogout');
62 62
         if ($this->page != 'userlogout') {
Please login to merge, or discard this patch.