@@ -14,7 +14,7 @@ discard block |
||
| 14 | 14 | |
| 15 | 15 | public $data; |
| 16 | 16 | |
| 17 | - private $about_links = array ('help', 'about', 'linktous', 'houserules', 'blog', 'news', 'contact', 'privacy'); |
|
| 17 | + private $about_links = array('help', 'about', 'linktous', 'houserules', 'blog', 'news', 'contact', 'privacy'); |
|
| 18 | 18 | private $assemblies_links = array('hansard', 'sp_home', 'ni_home', 'wales_home', 'london_home'); |
| 19 | 19 | private $international_links = array('newzealand', 'australia', 'ireland', 'mzalendo'); |
| 20 | 20 | private $tech_links = array('code', 'api', 'data', 'pombola', 'devmailinglist', 'irc'); |
@@ -28,10 +28,10 @@ discard block |
||
| 28 | 28 | public function __construct() { |
| 29 | 29 | $this->data = array(); |
| 30 | 30 | |
| 31 | - $this->data['about'] = $this->get_menu_links( $this->about_links ); |
|
| 32 | - $this->data['assemblies'] = $this->get_menu_links( $this->assemblies_links ); |
|
| 33 | - $this->data['international'] = $this->get_menu_links( $this->international_links ); |
|
| 34 | - $this->data['tech'] = $this->get_menu_links( $this->tech_links ); |
|
| 31 | + $this->data['about'] = $this->get_menu_links($this->about_links); |
|
| 32 | + $this->data['assemblies'] = $this->get_menu_links($this->assemblies_links); |
|
| 33 | + $this->data['international'] = $this->get_menu_links($this->international_links); |
|
| 34 | + $this->data['tech'] = $this->get_menu_links($this->tech_links); |
|
| 35 | 35 | } |
| 36 | 36 | |
| 37 | 37 | /** |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | |
| 33 | 33 | protected function getSearchSections() { |
| 34 | 34 | return array( |
| 35 | - array( 'section' => 'london' ) |
|
| 35 | + array('section' => 'london') |
|
| 36 | 36 | ); |
| 37 | 37 | } |
| 38 | 38 | |
@@ -51,23 +51,23 @@ discard block |
||
| 51 | 51 | |
| 52 | 52 | $debates = $DEBATELIST->display('recent_debates', array('days' => 30, 'num' => 9), 'none'); |
| 53 | 53 | $MOREURL = new \MySociety\TheyWorkForYou\Url('londondebatesfront'); |
| 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'] = "questions to the Mayor of London"; |
| 73 | 73 | $debate['more_url'] = $MOREURL->generate(); |
@@ -76,7 +76,7 @@ discard block |
||
| 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'] = 'question to the Mayor of London'; |
@@ -85,7 +85,7 @@ discard block |
||
| 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->getAssemblyMemberList(); |
| 91 | 91 | $data['template'] = 'london/index'; |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | |
| 43 | 43 | $data = array(); |
| 44 | 44 | |
| 45 | - $data['popular_searches'] = NULL; |
|
| 45 | + $data['popular_searches'] = null; |
|
| 46 | 46 | |
| 47 | 47 | |
| 48 | 48 | $data['urls'] = $this->getURLs($data); |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 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 | - $random_debate = NULL; |
|
| 57 | + $random_debate = null; |
|
| 58 | 58 | if ( isset($debates['data']) && count($debates['data']) ) { |
| 59 | 59 | $random_debate = $debates['data'][0]; |
| 60 | 60 | } |