Passed
Push — master ( a38590...890bf3 )
by Matthew
04:30
created
classes/SectionView/NiView.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
 
33 33
     protected function getSearchSections() {
34 34
         return array(
35
-            array( 'section' => 'ni' )
35
+            array('section' => 'ni')
36 36
         );
37 37
     }
38 38
 
@@ -51,23 +51,23 @@  discard block
 block discarded – undo
51 51
 
52 52
         $debates = $DEBATELIST->display('recent_debates', array('days' => 30, 'num' => 6), 'none');
53 53
         $MOREURL = new \MySociety\TheyWorkForYou\Url('nidebatesfront');
54
-        $MOREURL->insert( array( 'more' => 1 ) );
54
+        $MOREURL->insert(array('more' => 1));
55 55
 
56 56
         // this makes sure that we don't repeat this debate in the list below
57 57
         $random_debate = null;
58
-        if ( isset($debates['data']) && count($debates['data']) ) {
58
+        if (isset($debates['data']) && count($debates['data'])) {
59 59
             $random_debate = $debates['data'][0];
60 60
         }
61 61
 
62 62
         $recent = array();
63
-        if ( isset($debates['data']) && count($debates['data']) ) {
63
+        if (isset($debates['data']) && count($debates['data'])) {
64 64
             // at the start of a session there may be less than 6
65 65
             // debates
66 66
             $max = 6;
67
-            if ( count($debates['data']) < 6 ) {
67
+            if (count($debates['data']) < 6) {
68 68
                 $max = count($debates['data']);
69 69
             }
70
-            for ( $i = 1; $i < $max; $i++ ) {
70
+            for ($i = 1; $i < $max; $i++) {
71 71
                 $debate = $debates['data'][$i];
72 72
                 $debate['desc'] = "Northern Ireland Assembly debates";
73 73
                 $debate['more_url'] = $MOREURL->generate();
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
         }
77 77
 
78 78
         $featured = array();
79
-        if ( $random_debate ) {
79
+        if ($random_debate) {
80 80
             $featured = $random_debate;
81 81
             $featured['more_url'] = $MOREURL->generate();
82 82
             $featured['desc'] = 'Northern Ireland Assembly debate';
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
         }
86 86
 
87 87
         $data['featured'] = $featured;
88
-        $data['debates'] = array( 'recent' => $recent);
88
+        $data['debates'] = array('recent' => $recent);
89 89
 
90 90
         $data['regional'] = $this->getMLAList();
91 91
         $data['search_box'] = $this->getSearchBox($data);
@@ -114,9 +114,9 @@  discard block
 block discarded – undo
114 114
             $constituency = $data["regional"][0]["constituency"];
115 115
             $search_box->add_quick_link('Find out more about your MLAs for ' . $constituency, '/postcode/?pc=' . $postcode, 'torso');
116 116
         }
117
-        $search_box->add_quick_link('Create and manage email alerts', '/alert/','megaphone');
117
+        $search_box->add_quick_link('Create and manage email alerts', '/alert/', 'megaphone');
118 118
         $search_box->add_quick_link(gettext('Subscribe to our newsletter'), '/about/#about-mysociety', 'mail');
119
-        $search_box->add_quick_link('Donate to support our work', '/support-us/','heart');
119
+        $search_box->add_quick_link('Donate to support our work', '/support-us/', 'heart');
120 120
         $search_box->add_quick_link('Learn more about TheyWorkForYou', '/about/', 'magnifying-glass');
121 121
         return $search_box;
122 122
     }
Please login to merge, or discard this patch.
classes/SectionView/SeneddView.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 
41 41
     protected function getSearchSections() {
42 42
         return array(
43
-            array( 'section' => 'wales' )
43
+            array('section' => 'wales')
44 44
         );
45 45
     }
46 46
 
@@ -61,23 +61,23 @@  discard block
 block discarded – undo
61 61
 
62 62
         $debates = $DEBATELIST->display('recent_debates', array('days' => 30, 'num' => 6), 'none');
63 63
         $MOREURL = new \MySociety\TheyWorkForYou\Url('senedddebatesfront');
64
-        $MOREURL->insert( array( 'more' => 1 ) );
64
+        $MOREURL->insert(array('more' => 1));
65 65
 
66 66
         // this makes sure that we don't repeat this debate in the list below
67 67
         $random_debate = null;
68
-        if ( isset($debates['data']) && count($debates['data']) ) {
68
+        if (isset($debates['data']) && count($debates['data'])) {
69 69
             $random_debate = $debates['data'][0];
70 70
         }
71 71
 
72 72
         $recent = array();
73
-        if ( isset($debates['data']) && count($debates['data']) ) {
73
+        if (isset($debates['data']) && count($debates['data'])) {
74 74
             // at the start of a session there may be less than 6
75 75
             // debates
76 76
             $max = 6;
77
-            if ( count($debates['data']) < 6 ) {
77
+            if (count($debates['data']) < 6) {
78 78
                 $max = count($debates['data']);
79 79
             }
80
-            for ( $i = 1; $i < $max; $i++ ) {
80
+            for ($i = 1; $i < $max; $i++) {
81 81
                 $debate = $debates['data'][$i];
82 82
                 $debate['desc'] = "Senedd";
83 83
                 $debate['more_url'] = $MOREURL->generate();
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
         }
87 87
 
88 88
         $featured = array();
89
-        if ( $random_debate ) {
89
+        if ($random_debate) {
90 90
             $featured = $random_debate;
91 91
             $featured['more_url'] = $MOREURL->generate();
92 92
             $featured['desc'] = 'Senedd';
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
         }
96 96
 
97 97
         $data['featured'] = $featured;
98
-        $data['debates'] = array( 'recent' => $recent);
98
+        $data['debates'] = array('recent' => $recent);
99 99
 
100 100
         $data['regional'] = $this->getMSList();
101 101
         $data['search_box'] = $this->getSearchBox($data);
@@ -118,9 +118,9 @@  discard block
 block discarded – undo
118 118
                 $constituencies[$member["constituency"]] = 1;
119 119
             }
120 120
             $constituencies = array_keys($constituencies);
121
-        $search_box->add_quick_link(sprintf(gettext('Find out more about your MSs for %s and %s'), $constituencies[0], $constituencies[1]), '/postcode/?pc=' . $data["mp_data"]['postcode'],'torso');
121
+        $search_box->add_quick_link(sprintf(gettext('Find out more about your MSs for %s and %s'), $constituencies[0], $constituencies[1]), '/postcode/?pc=' . $data["mp_data"]['postcode'], 'torso');
122 122
         }
123
-        $search_box->add_quick_link(gettext('Create and manage email alerts'), '/alert/','megaphone');
123
+        $search_box->add_quick_link(gettext('Create and manage email alerts'), '/alert/', 'megaphone');
124 124
         $search_box->add_quick_link(gettext('Subscribe to our newsletter'), '/about/#about-mysociety', 'mail');
125 125
         $search_box->add_quick_link(gettext('Donate to support our work'), '/support-us/', 'heart');
126 126
         $search_box->add_quick_link(gettext('Learn more about TheyWorkForYou'), '/about/', 'magnifying-glass');
Please login to merge, or discard this patch.