@@ -12,11 +12,11 @@ |
||
| 12 | 12 | |
| 13 | 13 | class UtilityTest extends UnitTestCase{ |
| 14 | 14 | |
| 15 | - public function testVerpEnvelopeSenderCanCreateStandardSender() { |
|
| 15 | + public function testVerpEnvelopeSenderCanCreateStandardSender() { |
|
| 16 | 16 | $sender = twfy_verp_envelope_sender('[email protected]'); |
| 17 | 17 | $expected_sender = 'twfy+aperson=a.nother.dom@' + EMAILDOMAIN; |
| 18 | 18 | $this->assertEqual($sender, $expected_sender, 'verp_envelope_sender can create a sender for a standard address'); |
| 19 | - } |
|
| 19 | + } |
|
| 20 | 20 | |
| 21 | 21 | } |
| 22 | 22 | |
@@ -530,7 +530,7 @@ discard block |
||
| 530 | 530 | 'url' => 'peer/' |
| 531 | 531 | ), |
| 532 | 532 | 'peers' => array ( |
| 533 | - 'menu' => array ( |
|
| 533 | + 'menu' => array ( |
|
| 534 | 534 | 'text' => 'Lords', |
| 535 | 535 | 'title' => "List of all Lords" |
| 536 | 536 | ), |
@@ -539,7 +539,7 @@ discard block |
||
| 539 | 539 | 'url' => 'peers/' |
| 540 | 540 | ), |
| 541 | 541 | 'overview' => array ( |
| 542 | - 'menu' => array ( |
|
| 542 | + 'menu' => array ( |
|
| 543 | 543 | 'text' => 'Overview', |
| 544 | 544 | 'title' => "Overview of the UK Parliament" |
| 545 | 545 | ), |
@@ -591,7 +591,7 @@ discard block |
||
| 591 | 591 | 'url' => 'rss/mp/' |
| 592 | 592 | ), |
| 593 | 593 | 'mps' => array ( |
| 594 | - 'menu' => array ( |
|
| 594 | + 'menu' => array ( |
|
| 595 | 595 | 'text' => 'MPs', |
| 596 | 596 | 'title' => "List of all Members of Parliament (MPs)" |
| 597 | 597 | ), |
@@ -318,7 +318,7 @@ discard block |
||
| 318 | 318 | return $data; |
| 319 | 319 | } |
| 320 | 320 | |
| 321 | - public function _get_data_by_dates($args) { |
|
| 321 | + public function _get_data_by_dates($args) { |
|
| 322 | 322 | // $args should contain start_date and end_date |
| 323 | 323 | |
| 324 | 324 | twfy_debug (get_class($this), "getting data by recent"); |
@@ -338,7 +338,7 @@ discard block |
||
| 338 | 338 | $commentsdata = $this->_get_comment_data($input); |
| 339 | 339 | $data['comments'] = $commentsdata; |
| 340 | 340 | return $data; |
| 341 | - } |
|
| 341 | + } |
|
| 342 | 342 | |
| 343 | 343 | public function _get_data_by_search($args) { |
| 344 | 344 | // $args should contain 'num', indicating how many to get. |
@@ -333,7 +333,7 @@ discard block |
||
| 333 | 333 | } |
| 334 | 334 | |
| 335 | 335 | public function get_spelling_correction() { |
| 336 | - if (!defined('XAPIANDB') || !XAPIANDB) |
|
| 336 | + if (!defined('XAPIANDB') || !XAPIANDB) |
|
| 337 | 337 | return null; |
| 338 | 338 | |
| 339 | 339 | $qd = $this->queryparser->get_corrected_query_string(); |
@@ -559,7 +559,7 @@ discard block |
||
| 559 | 559 | { |
| 560 | 560 | $wordpos = strpos( $lcbody, $matches[0] ); |
| 561 | 561 | if ($wordpos) { |
| 562 | - if ( ($wordpos < $pos) || ($pos==-1) ) { |
|
| 562 | + if ( ($wordpos < $pos) || ($pos==-1) ) { |
|
| 563 | 563 | $pos = $wordpos; |
| 564 | 564 | } |
| 565 | 565 | } |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | <?php foreach ($segment['votes']->positions as $key_vote) { |
| 61 | 61 | |
| 62 | 62 | if (isset($policy_last_update[$key_vote['policy_id']]) && $policy_last_update[$key_vote['policy_id']] > $most_recent) { |
| 63 | - $most_recent = $policy_last_update[$key_vote['policy_id']]; |
|
| 63 | + $most_recent = $policy_last_update[$key_vote['policy_id']]; |
|
| 64 | 64 | } |
| 65 | 65 | |
| 66 | 66 | if ( $key_vote['has_strong'] || $key_vote['position'] == 'has never voted on' ) { |
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | |
| 82 | 82 | include '_vote_description.php'; |
| 83 | 83 | |
| 84 | - } ?> |
|
| 84 | + } ?> |
|
| 85 | 85 | </ul> |
| 86 | 86 | |
| 87 | 87 | <div class="share-vote-descriptions"> |
@@ -38,11 +38,11 @@ discard block |
||
| 38 | 38 | if ( isset($divisions) && $divisions ) { |
| 39 | 39 | if ($has_voting_record) { |
| 40 | 40 | foreach ($divisions as $division) { |
| 41 | - $displayed_votes = TRUE; |
|
| 41 | + $displayed_votes = TRUE; |
|
| 42 | 42 | |
| 43 | - if ($current_date != $division['date']) { |
|
| 43 | + if ($current_date != $division['date']) { |
|
| 44 | 44 | if ($current_date != '' ) { |
| 45 | - print('</ul></div>'); |
|
| 45 | + print('</ul></div>'); |
|
| 46 | 46 | } |
| 47 | 47 | $current_date = $division['date']; |
| 48 | 48 | $sidebar_links[] = $division['date']; |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | <h2><?= strftime('%e %b %Y', strtotime($division['date'])) ?></h2> |
| 52 | 52 | <ul class="vote-descriptions policy-votes"> |
| 53 | 53 | <?php } |
| 54 | - include('_division_description.php'); |
|
| 54 | + include('_division_description.php'); |
|
| 55 | 55 | } |
| 56 | 56 | echo('</div>'); |
| 57 | 57 | } |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | |
| 29 | 29 | echo '<?xml version="1.0" encoding="iso-8859-1"?>'; |
| 30 | 30 | |
| 31 | - ?> |
|
| 31 | + ?> |
|
| 32 | 32 | <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> |
| 33 | 33 | <svg width="1000" height="500" viewBox="0 0 1000 500" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" font-family="Droid Sans, Trebuchet"> |
| 34 | 34 | |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | foreach ( $years as $year => $months ) { ?> |
| 25 | 25 | <div class="calendar-year"> |
| 26 | 26 | <?php foreach ($months as $month => $dates) { |
| 27 | - include '_calendar.php'; |
|
| 27 | + include '_calendar.php'; |
|
| 28 | 28 | } ?> |
| 29 | 29 | </div> |
| 30 | 30 | <?php } |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | foreach ( $calendar as $year => $months ) { |
| 3 | 3 | foreach ($months as $month => $dates) { |
| 4 | - include '_calendar.php'; |
|
| 4 | + include '_calendar.php'; |
|
| 5 | 5 | } |
| 6 | 6 | } ?> |