Passed
Pull Request — master (#1868)
by
unknown
59:27 queued 24:39
created
www/includes/easyparliament/templates/html/mp/votes.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -131,8 +131,8 @@  discard block
 block discarded – undo
131 131
 
132 132
                     <ul class="vote-descriptions">
133 133
                               <?php foreach ($sig_diff_policy->policy_pairs as $policy_pair) {
134
-                                  include '_vote_description.php';
135
-                              } ?>
134
+                                    include '_vote_description.php';
135
+                                } ?>
136 136
                             </ul>
137 137
 
138 138
                     <?php } ?>
@@ -165,9 +165,9 @@  discard block
 block discarded – undo
165 165
                             <ul class="vote-descriptions">
166 166
                               <?php foreach ($segment->policy_pairs as $policy_pair) {
167 167
 
168
-                                  include '_vote_description.php';
168
+                                    include '_vote_description.php';
169 169
 
170
-                              } ?>
170
+                                } ?>
171 171
                             </ul>
172 172
 
173 173
                             <p class="voting-information-provenance">
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
 
24 24
                 <h3 class="browse-content">Comparison periods</h3>
25 25
                     <ul> 
26
-                    <?php foreach($available_periods as $period) { ?>
26
+                    <?php foreach ($available_periods as $period) { ?>
27 27
                         <li class="active"><a href="?comparison_period=<?= $period->lslug() ?>"><?= $period->description ?></a></li>
28 28
                     <?php } ?>
29 29
                     </ul>
Please login to merge, or discard this patch.
www/docs/mp/index.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -612,7 +612,7 @@  discard block
 block discarded – undo
612 612
 function person_error_page($message) {
613 613
     global $this_page;
614 614
     $SEARCHURL = '';
615
-    switch($this_page) {
615
+    switch ($this_page) {
616 616
         case 'peer':
617 617
             $people = new MySociety\TheyWorkForYou\People\Peers();
618 618
             $MPSURL = new \MySociety\TheyWorkForYou\Url('peers');
@@ -798,7 +798,7 @@  discard block
 block discarded – undo
798 798
         $SEARCHENGINE = new \SEARCHENGINE($searchstring);
799 799
 
800 800
         $hansard = new MySociety\TheyWorkForYou\Hansard();
801
-        $args =  [
801
+        $args = [
802 802
             's' => $searchstring,
803 803
             'p' => 1,
804 804
             'num' => 3,
@@ -985,7 +985,7 @@  discard block
 block discarded – undo
985 985
 
986 986
     $lang = LANGUAGE;
987 987
 
988
-    $reg = [ 'date' => '', 'chamber_registers' => [] ];
988
+    $reg = ['date' => '', 'chamber_registers' => []];
989 989
 
990 990
     foreach ($valid_chambers as $chamber) {
991 991
         $key = 'person_regmem_' . $chamber . '_' . $lang;
@@ -1089,8 +1089,8 @@  discard block
 block discarded – undo
1089 1089
         }
1090 1090
     }
1091 1091
 
1092
-    foreach($mreg as $reg) {
1093
-        $data['members'][] =  [
1092
+    foreach ($mreg as $reg) {
1093
+        $data['members'][] = [
1094 1094
             'url' => '/' . $rep_type . '/?p=' . $reg['person_id'],
1095 1095
             'name' => $reg['given_name'] . ' ' . $reg['family_name'],
1096 1096
         ];
Please login to merge, or discard this patch.
classes/PolicyDistributionCollection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
             $group_name = $policies->getSetDescriptions()[$set_slug];
67 67
             $group_slug = $set_slug;
68 68
             $comparison_period_slug = $period_slug;
69
-            $policy_pairs = array_filter($pairs, function ($pair) use ($policy_ids) {
69
+            $policy_pairs = array_filter($pairs, function($pair) use ($policy_ids) {
70 70
                 return in_array($pair->getPolicyID(), $policy_ids) && !$pair->member_distribution->noDataAvailable();
71 71
             });
72 72
             $collection = new PolicyDistributionCollection($group_slug, $group_name, $comparison_period_slug, $person_id, $party_slug, $policy_pairs);
Please login to merge, or discard this patch.