Passed
Push — master ( 6fae8e...4198df )
by Kevin
01:15 queued 23s
created
html/inc/user_util.inc 1 patch
Upper-Lower-Casing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -177,14 +177,14 @@  discard block
 block discarded – undo
177 177
     }
178 178
 
179 179
     // Check if consent to terms of use has been given.
180
-    $myconsent = FALSE;
180
+    $myconsent = false;
181 181
     list($checkct, $ctid) = check_consent_type(CONSENT_TYPE_ENROLL);
182 182
     if ($checkct and check_termsofuse()) {
183 183
         $agree = post_str("agree_to_terms_of_use", true);
184 184
         if (!$agree) {
185 185
             error_page(tra("You have not agreeed to our terms of use. Please agree to the terms of use by navigating back to the previous page, in order to create your account"));
186 186
         }
187
-        $myconsent = TRUE;
187
+        $myconsent = true;
188 188
     }
189 189
 
190 190
     // see whether the new account should be pre-enrolled in a team,
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
         $team = BoincTeam::lookup_id($teamid);
196 196
         $clone_user = BoincUser::lookup_id($team->userid);
197 197
         if (!$clone_user) {
198
-            error_page("User $userid not found");
198
+            error_page("user $userid not found");
199 199
         }
200 200
         $project_prefs = $clone_user->project_prefs;
201 201
     } else {
Please login to merge, or discard this patch.
html/inc/consent.inc 1 patch
Upper-Lower-Casing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -44,10 +44,10 @@  discard block
 block discarded – undo
44 44
     if ($checkct) {
45 45
         $consent_result = BoincLatestConsent::lookup("userid={$user->id} AND consent_type_id=$ctid AND consent_flag=1");
46 46
         if ($consent_result) {
47
-            return TRUE;
47
+            return true;
48 48
         }
49 49
     }
50
-    return FALSE;
50
+    return false;
51 51
 }
52 52
 
53 53
 // Checks to see if a particular consent_type name is in
@@ -56,12 +56,12 @@  discard block
 block discarded – undo
56 56
 // if checkenabled=TRUE, if the consent_type is enabled/available for
57 57
 // use. The integer is the consent_type_id- the id from consent_type
58 58
 // table. If the boolean is FALSE, the integer returned is -1.
59
-function check_consent_type($name, $checkenabled=TRUE) {
59
+function check_consent_type($name, $checkenabled=true) {
60 60
     $ct = BoincConsentType::lookup("shortname = '{$name}'");
61 61
     if ($ct and ( !$checkenabled or ($ct->enabled)) ) {
62
-        return array(TRUE, $ct->id);
62
+        return array(true, $ct->id);
63 63
     }
64
-    return array(FALSE, -1);
64
+    return array(false, -1);
65 65
 }
66 66
 
67 67
 // When a user uses the Web site to login, this funtion checks the
Please login to merge, or discard this patch.
html/ops/team_import.php 1 patch
Upper-Lower-Casing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
         echo "   making team $t->name\n";
136 136
         return;
137 137
     }
138
-    $make_user = FALSE;
138
+    $make_user = false;
139 139
     if (!$user) {
140 140
         list($checkct, $ctid) = check_consent_type(CONSENT_TYPE_ENROLL);
141 141
         if ($checkct) {
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
                 echo "   Can't make user $t->user_email\n";
149 149
                 return;
150 150
             }
151
-            $make_user = TRUE;
151
+            $make_user = true;
152 152
         }
153 153
     }
154 154
     echo "   making team $t->name\n";
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
         return;
229 229
     }
230 230
 
231
-    echo "Processing $t->name $t->user_email\n";
231
+    echo "processing $t->name $t->user_email\n";
232 232
     $user = BoincUser::lookup_email_addr($t->user_email);
233 233
     $team = BoincTeam::lookup_name($t->name);
234 234
     if ($team) {
Please login to merge, or discard this patch.