Completed
Pull Request — master (#1450)
by Nick
08:21 queued 03:29
created
tests/PeopleTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
      */
12 12
     public function getDataSet()
13 13
     {
14
-        return $this->createMySQLXMLDataSet(dirname(__FILE__).'/_fixtures/people.xml');
14
+        return $this->createMySQLXMLDataSet(dirname(__FILE__) . '/_fixtures/people.xml');
15 15
     }
16 16
 
17 17
     /**
Please login to merge, or discard this patch.
tests/HansardTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
      */
12 12
     public function getDataSet()
13 13
     {
14
-        return $this->createMySQLXMLDataSet(dirname(__FILE__).'/_fixtures/hansard.xml');
14
+        return $this->createMySQLXMLDataSet(dirname(__FILE__) . '/_fixtures/hansard.xml');
15 15
     }
16 16
 
17 17
     /**
Please login to merge, or discard this patch.
tests/VotesTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
     }
18 18
 
19 19
     private function fetch_votes_page() {
20
-        return $this->fetch_page( array( 'pagetype' => 'votes', 'pid' => 2, 'url' => '/mp/2/test_current-mp/test_westminster_constituency/votes' ) );
20
+        return $this->fetch_page(array('pagetype' => 'votes', 'pid' => 2, 'url' => '/mp/2/test_current-mp/test_westminster_constituency/votes'));
21 21
     }
22 22
 
23 23
     public function testVoteSummary() {
Please login to merge, or discard this patch.
tests/AcceptBasicTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
      */
12 12
     public function getDataSet()
13 13
     {
14
-        return $this->createMySQLXMLDataSet(dirname(__FILE__).'/_fixtures/acceptance.xml');
14
+        return $this->createMySQLXMLDataSet(dirname(__FILE__) . '/_fixtures/acceptance.xml');
15 15
     }
16 16
 
17 17
     private function fetch_page($path, $file = 'index.php', $vars = array())
Please login to merge, or discard this patch.
scripts/generate_party_positions.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -6,17 +6,17 @@
 block discarded – undo
6 6
 $policies = new MySociety\TheyWorkForYou\Policies;
7 7
 
8 8
 $party_count = 0;
9
-foreach ( $parties as $party ) {
9
+foreach ($parties as $party) {
10 10
     $party = new MySociety\TheyWorkForYou\Party($party);
11 11
 
12 12
     $positions = $party->calculateAllPolicyPositions($policies);
13 13
 
14
-    if ( count( $positions ) ) {
14
+    if (count($positions)) {
15 15
         $party_count++;
16 16
     }
17 17
 
18
-    foreach ( $positions as $position ) {
19
-        $party->cache_position( $position );
18
+    foreach ($positions as $position) {
19
+        $party->cache_position($position);
20 20
     }
21 21
 }
22 22
 
Please login to merge, or discard this patch.
www/docs/report/index.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
5 5
 $this_page = "commentreport";
6 6
 
7 7
 include_once '../../includes/easyparliament/init.php';
8
-include_once (INCLUDESPATH."easyparliament/commentreport.php");
8
+include_once (INCLUDESPATH . "easyparliament/commentreport.php");
9 9
 
10 10
 $PAGE->page_start();
11 11
 
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
 
57 57
             $REPORT = new COMMENTREPORT;
58 58
 
59
-            $reportdata = array (
59
+            $reportdata = array(
60 60
                 'body'		=> get_http_var('body'),
61 61
                 'firstname'	=> get_http_var('firstname'),
62 62
                 'lastname'	=> get_http_var('lastname'),
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
 
85 85
 
86 86
             } else {
87
-                $PAGE->error_message ("Sorry, we were unable to add the report to the database.");
87
+                $PAGE->error_message("Sorry, we were unable to add the report to the database.");
88 88
             }
89 89
         }
90 90
 
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
 
100 100
 
101 101
 
102
-function display_form($COMMENT, $errors=array()) {
102
+function display_form($COMMENT, $errors = array()) {
103 103
     global $this_page, $THEUSER, $PAGE;
104 104
 
105 105
     ?>
Please login to merge, or discard this patch.
www/docs/freeourbills/sharethis.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 ";
39 39
     $subject = "Help make the laws we have to obey better! - TheyWorkForYou.com";
40 40
 
41
-    print '<a href="mailto:?subject=' . rawurlencode($subject) . '&body='. rawurlencode($email) . '">Click here to open a new email and invite your friends, family and colleagues to get involved.</a>';
41
+    print '<a href="mailto:?subject=' . rawurlencode($subject) . '&body=' . rawurlencode($email) . '">Click here to open a new email and invite your friends, family and colleagues to get involved.</a>';
42 42
 }
43 43
 
44 44
 function freeourbills_share_page() {
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
     print '<p><a href="/freeourbills/doshare"';
59 59
     #print 'onclick="share(this); return false;"';
60 60
     print ' title="' .
61
-        _('E-mail this, post to del.icio.us, etc.'). '" class="share_link" rel="nofollow">'.
62
-        _('Share this'). '</a></p>';
61
+        _('E-mail this, post to del.icio.us, etc.') . '" class="share_link" rel="nofollow">' .
62
+        _('Share this') . '</a></p>';
63 63
     #freeourbills_share_form();
64 64
 }
Please login to merge, or discard this patch.
www/docs/user/password/index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@
 block discarded – undo
90 90
 
91 91
 
92 92
 
93
-function display_page ($errors=array()) {
93
+function display_page($errors = array()) {
94 94
     global $this_page, $PAGE;
95 95
 
96 96
     if (isset($errors["sending"])) {
Please login to merge, or discard this patch.
www/docs/user/confirm/index.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
         }
69 69
 
70 70
         $PAGE->stripe_end(array(
71
-            array (
71
+            array(
72 72
                 'type'		=> 'include',
73 73
                 'content'	=> 'userconfirmed'
74 74
             )
@@ -80,10 +80,10 @@  discard block
 block discarded – undo
80 80
     // The user's first visit to this page, and they have a registration token.
81 81
     // So let's confirm them and hope they get logged in...
82 82
 
83
-    if (get_http_var('c') == 'email' ) {
84
-        $success = $THEUSER->confirm_email( get_http_var('t') );
83
+    if (get_http_var('c') == 'email') {
84
+        $success = $THEUSER->confirm_email(get_http_var('t'));
85 85
     } else {
86
-        $success = $THEUSER->confirm( get_http_var('t') );
86
+        $success = $THEUSER->confirm(get_http_var('t'));
87 87
     }
88 88
 
89 89
     if (!$success) {
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
 
103 103
     $this_page = 'userconfirmfailed';
104 104
 
105
-    if ( !$PAGE->page_started() ) {
105
+    if (!$PAGE->page_started()) {
106 106
         $PAGE->page_start();
107 107
 
108 108
         $PAGE->stripe_start();
Please login to merge, or discard this patch.