Passed
Pull Request — master (#1700)
by Struan
04:10
created
www/docs/mps/index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
 $args = $people->getArgs();
19 19
 $people->setMetaData($args);
20 20
 $data = $people->getData($args);
21
-if ( isset($args['f']) && $args['f'] == 'csv' ) {
21
+if (isset($args['f']) && $args['f'] == 'csv') {
22 22
     $people->sendAsCSV($data);
23 23
 } else {
24 24
     MySociety\TheyWorkForYou\Renderer::output("people/index", $data);
Please login to merge, or discard this patch.
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.
tests/UserTest.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@
 block discarded – undo
100 100
         );
101 101
 
102 102
         $expectedTable = $this->createXmlDataSet(dirname(__FILE__).'/_fixtures/expectedTokens.xml')
103
-                              ->getTable("tokens");
103
+                                ->getTable("tokens");
104 104
         $this->assertTablesEqual($expectedTable, $queryTable);
105 105
 
106 106
         $alertCount = $this->getConnection()->getRowCount('alerts', 'email = "[email protected]"');
Please login to merge, or discard this patch.
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
      */
12 12
     public function getDataSet()
13 13
     {
14
-        return $this->createMySQLXMLDataSet(dirname(__FILE__).'/_fixtures/user.xml');
14
+        return $this->createMySQLXMLDataSet(dirname(__FILE__) . '/_fixtures/user.xml');
15 15
     }
16 16
 
17 17
     /**
@@ -43,8 +43,8 @@  discard block
 block discarded – undo
43 43
         $id = $u->user_id();
44 44
         $u->init($id);
45 45
 
46
-        $this->assertEquals( 'Test', $u->firstname() );
47
-        $this->assertEquals( 'EH1 99SP', $u->postcode() );
46
+        $this->assertEquals('Test', $u->firstname());
47
+        $this->assertEquals('EH1 99SP', $u->postcode());
48 48
     }
49 49
 
50 50
     public function testEditUser() {
@@ -52,9 +52,9 @@  discard block
 block discarded – undo
52 52
         $u = new THEUSER();
53 53
         $u->loggedin = 1;
54 54
 
55
-        $this->assertEquals( 'Test', $u->firstname() );
55
+        $this->assertEquals('Test', $u->firstname());
56 56
 
57
-        $d = $u->update_self( array(
57
+        $d = $u->update_self(array(
58 58
             'firstname' => 'Experiment',
59 59
             'lastname' => 'User',
60 60
             'postcode' => 'EH1 99SP',
@@ -62,9 +62,9 @@  discard block
 block discarded – undo
62 62
             'url' => '',
63 63
             'optin' => '',
64 64
             'user_id' => 1
65
-        ) );
65
+        ));
66 66
 
67
-        $this->assertEquals( 'Experiment', $u->firstname() );
67
+        $this->assertEquals('Experiment', $u->firstname());
68 68
     }
69 69
 
70 70
     public function testEditUserEmail() {
@@ -72,9 +72,9 @@  discard block
 block discarded – undo
72 72
         $u = new THEUSER();
73 73
         $u->loggedin = 1;
74 74
 
75
-        $this->assertEquals( '[email protected]', $u->email() );
75
+        $this->assertEquals('[email protected]', $u->email());
76 76
 
77
-        $d = $u->update_self( array(
77
+        $d = $u->update_self(array(
78 78
             'firstname' => 'Experiment',
79 79
             'lastname' => 'User',
80 80
             'email' => '[email protected]',
@@ -83,10 +83,10 @@  discard block
 block discarded – undo
83 83
             'url' => '',
84 84
             'optin' => '',
85 85
             'user_id' => 1
86
-        ), false );
86
+        ), false);
87 87
 
88 88
         // email should not change as user needs to confirm
89
-        $this->assertEquals( '[email protected]', $u->email() );
89
+        $this->assertEquals('[email protected]', $u->email());
90 90
 
91 91
         $tokenCount = $this->getConnection()->getRowCount('tokens', 'data = "1::[email protected]"');
92 92
         $this->assertEquals(1, $tokenCount, 'correct number of email confirm tokens');
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
             'tokens', 'SELECT type, data FROM tokens WHERE data = "1::[email protected]"'
97 97
         );
98 98
 
99
-        $expectedTable = $this->createXmlDataSet(dirname(__FILE__).'/_fixtures/expectedTokens.xml')
99
+        $expectedTable = $this->createXmlDataSet(dirname(__FILE__) . '/_fixtures/expectedTokens.xml')
100 100
                               ->getTable("tokens");
101 101
         $this->assertTablesEqual($expectedTable, $queryTable);
102 102
 
@@ -110,9 +110,9 @@  discard block
 block discarded – undo
110 110
         $tokenRow = $queryTable->getRow(0);
111 111
         $token = '2-' . $tokenRow['token'];
112 112
 
113
-        $u->confirm_email($token,false);
113
+        $u->confirm_email($token, false);
114 114
 
115
-        $this->assertEquals( '[email protected]', $u->email(), 'confirming with token updates email address' );
115
+        $this->assertEquals('[email protected]', $u->email(), 'confirming with token updates email address');
116 116
         $tokenCount = $this->getConnection()->getRowCount('tokens', 'data = "1::[email protected]"');
117 117
         $this->assertEquals(0, $tokenCount, 'token deleted once email confirmed');
118 118
 
@@ -128,15 +128,15 @@  discard block
 block discarded – undo
128 128
         $u = new THEUSER();
129 129
         $u->loggedin = 1;
130 130
 
131
-        $this->assertEquals( '[email protected]', $u->email(), 'confirming inital email address' );
131
+        $this->assertEquals('[email protected]', $u->email(), 'confirming inital email address');
132 132
 
133 133
         $tokenCount = $this->getConnection()->getRowCount('tokens', 'data = "1::[email protected]"');
134 134
         $this->assertEquals(1, $tokenCount, 'correct number of email confirm tokens');
135 135
 
136 136
         $token = '2-lkdsjafhsadjhf';
137 137
 
138
-        $u->confirm_email($token,false);
139
-        $this->assertEquals( '[email protected]', $u->email(), 'expired token does not update email address' );
138
+        $u->confirm_email($token, false);
139
+        $this->assertEquals('[email protected]', $u->email(), 'expired token does not update email address');
140 140
 
141 141
         $tokenCount = $this->getConnection()->getRowCount('tokens', 'data = "1::[email protected]"');
142 142
         $this->assertEquals(1, $tokenCount, 'correct number of email confirm tokens');
Please login to merge, or discard this patch.
tests/SearchTest.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -7,8 +7,8 @@  discard block
 block discarded – undo
7 7
 
8 8
 class SearchTest extends FetchPageTestCase
9 9
 {
10
-	public function setUp()
11
-	{
10
+    public function setUp()
11
+    {
12 12
         parent::setUp();
13 13
         include_once('www/includes/easyparliament/searchengine.php');
14 14
     }
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
      *
88 88
      * @group xapian
89 89
      */
90
-	public function testSearchNormal()
90
+    public function testSearchNormal()
91 91
     {
92 92
         $SEARCHENGINE = new SEARCHENGINE('test');
93 93
 
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
      *
103 103
      * @group xapian
104 104
      */
105
-	public function testSearchLink()
105
+    public function testSearchLink()
106 106
     {
107 107
         $SEARCHENGINE = new SEARCHENGINE('test');
108 108
 
Please login to merge, or discard this patch.
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -26,11 +26,11 @@  discard block
 block discarded – undo
26 26
     public function testConstituencySearch()
27 27
     {
28 28
         $this->assertEquals(
29
-            array( array( 'Alyn and Deeside' ), false ),
29
+            array(array('Alyn and Deeside'), false),
30 30
             \MySociety\TheyWorkForYou\Utility\Search::searchConstituenciesByQuery('Alyn')
31 31
         );
32 32
         $this->assertEquals(
33
-            array( array( 'Alyn and Deeside' ), false ),
33
+            array(array('Alyn and Deeside'), false),
34 34
             \MySociety\TheyWorkForYou\Utility\Search::searchConstituenciesByQuery('Alyn and Deeside')
35 35
         );
36 36
     }
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
      */
120 120
     public function testSearchPage()
121 121
     {
122
-        $page = $this->fetch_page( array( ) );
122
+        $page = $this->fetch_page(array( ));
123 123
         $this->assertContains('Search', $page);
124 124
     }
125 125
 
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
      */
131 131
     public function testSearchPageMP()
132 132
     {
133
-        $page = $this->fetch_page( array( 'q' => 'Mary Smith' ) );
133
+        $page = $this->fetch_page(array('q' => 'Mary Smith'));
134 134
         $this->assertContains('Mary Smith', $page);
135 135
         $this->assertContains('MP, Amber Valley', $page);
136 136
     }
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
      */
143 143
     public function testSearchPageMultipleMP()
144 144
     {
145
-        $page = $this->fetch_page( array( 'q' => 'Jones' ) );
145
+        $page = $this->fetch_page(array('q' => 'Jones'));
146 146
         $this->assertContains('People matching <em class="current-search-term">Jones</em>', $page);
147 147
         $this->assertContains('Andrew Jones', $page);
148 148
         $this->assertContains('Simon Jones', $page);
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
      * @group xapian
155 155
      */
156 156
     public function testSearchPageCons() {
157
-        $page = $this->fetch_page( array( 'q' => 'Amber' ) );
157
+        $page = $this->fetch_page(array('q' => 'Amber'));
158 158
         $this->assertContains('MP for <em class="current-search-term">Amber</em>', $page);
159 159
         $this->assertContains('Mary Smith', $page);
160 160
     }
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
      * @group xapian
167 167
      */
168 168
     public function testSearchPageConsWithNoMp() {
169
-        $page = $this->fetch_page( array( 'q' => 'Alyn' ) );
169
+        $page = $this->fetch_page(array('q' => 'Alyn'));
170 170
         $this->assertNotContains('MP for <em class="current-search-term">Alyn</em>', $page);
171 171
         $this->assertNotContains('MPs in constituencies matching', $page);
172 172
     }
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
      * @group xapian
179 179
      */
180 180
     public function testSearchPageMultipleCons() {
181
-        $page = $this->fetch_page( array( 'q' => 'Liverpool' ) );
181
+        $page = $this->fetch_page(array('q' => 'Liverpool'));
182 182
         $this->assertContains('MPs in constituencies matching <em class="current-search-term">Liverpool</em>', $page);
183 183
         $this->assertContains('Susan Brown', $page);
184 184
         $this->assertContains('MP, Liverpool, Riverside', $page);
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
      * @group xapian
193 193
      */
194 194
     public function testSearchPageGlossary() {
195
-        $page = $this->fetch_page( array( 'q' => 'other place' ) );
195
+        $page = $this->fetch_page(array('q' => 'other place'));
196 196
         $this->assertContains('Glossary items matching', $page);
197 197
         $this->assertContains('<a href="/glossary/?gl=1">&ldquo;other place', $page);
198 198
     }
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
      * @group xapian
204 204
      */
205 205
     public function testSearchPageSpellCorrect() {
206
-        $page = $this->fetch_page( array( 'q' => 'plice' ) );
206
+        $page = $this->fetch_page(array('q' => 'plice'));
207 207
         $this->assertContains('Did you mean <a href="/search/?q=place">place', $page);
208 208
     }
209 209
 
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
      * @group xapian
214 214
      */
215 215
     public function testSearchBySpeakerNoResults() {
216
-        $page = $this->fetch_page( array( 'q' => 'splice', 'o' => 'p' ) );
216
+        $page = $this->fetch_page(array('q' => 'splice', 'o' => 'p'));
217 217
         $this->assertContains('Who says splice the most', $page);
218 218
         $this->assertContains('No results', $page);
219 219
     }
@@ -240,7 +240,7 @@  discard block
 block discarded – undo
240 240
      * @group xapian
241 241
      */
242 242
     public function testSearchPageRSS() {
243
-        $page = $this->fetch_page( array( 'q' => 'test' ) );
243
+        $page = $this->fetch_page(array('q' => 'test'));
244 244
         $this->assertContains('<a href="/search/rss/?s=test">get an RSS feed', $page);
245 245
     }
246 246
 
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.