Passed
Pull Request — master (#5666)
by David
10:22
created
html/ops/analyze_coproc_log.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
 // - daily total
24 24
 // - breakdown by desc (number, credit)
25 25
 
26
-ini_set ("memory_limit", "1G");
26
+ini_set("memory_limit", "1G");
27 27
 set_time_limit(0);
28 28
 
29 29
 $cli_only = true;
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
         add_to_array($days, $day, $granted);
77 77
     }
78 78
     $i++;
79
-    if ($i % 10000 == 0) echo "$i\n";
79
+    if ($i%10000 == 0) echo "$i\n";
80 80
 }
81 81
 
82 82
 uasort($hosts, "compare");
Please login to merge, or discard this patch.
html/ops/make_emails_lowercase.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -63,24 +63,24 @@  discard block
 block discarded – undo
63 63
 // loop over all users
64 64
 while ($user = _mysql_fetch_object($result)) {
65 65
 
66
-  $id=$user->id;
67
-  $email_addr=$user->email_addr;
68
-  $cpid=$user->cross_project_id;
66
+  $id = $user->id;
67
+  $email_addr = $user->email_addr;
68
+  $cpid = $user->cross_project_id;
69 69
 
70
-  $new_email=strtolower(trim($email_addr));
70
+  $new_email = strtolower(trim($email_addr));
71 71
   
72 72
   if (strcmp($email_addr, $new_email))
73 73
     echo "Problematic email address [$id] $email_addr becomes $new_email<br/>";
74 74
   
75
-  if (!(strcmp($cpid,"0"))) {
76
-    $newcpid=random_string();
75
+  if (!(strcmp($cpid, "0"))) {
76
+    $newcpid = random_string();
77 77
     echo "Problematic CPID=0 for [$id] $email_addr gets CPID=$newcpid<br/>";
78 78
   }
79 79
   else
80
-    $newcpid=$cpid;
80
+    $newcpid = $cpid;
81 81
   
82
-  if (strcmp($email_addr, $new_email) || strcmp($newcpid,$cpid)) {
83
-    $update="update user set email_addr='$new_email', cross_project_id='$newcpid' where id='$id'";
82
+  if (strcmp($email_addr, $new_email) || strcmp($newcpid, $cpid)) {
83
+    $update = "update user set email_addr='$new_email', cross_project_id='$newcpid' where id='$id'";
84 84
     if ($confirm != "yes") {
85 85
       echo "QUERY WOULD BE [$id] $query <br/>[click the link at the bottom to enable]<br/>";
86 86
       $update_needed = TRUE;
@@ -99,5 +99,5 @@  discard block
 block discarded – undo
99 99
 _mysql_free_result($result);
100 100
 
101 101
 admin_page_tail();
102
-$cvs_version_tracker[]="\$Id$";  //Generated automatically - do not edit
102
+$cvs_version_tracker[] = "\$Id$"; //Generated automatically - do not edit
103 103
 ?>
Please login to merge, or discard this patch.
html/ops/team_export.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@
 block discarded – undo
100 100
     $f = fopen("temp.xml", "w");
101 101
     $teams = BoincTeam::enum(null);
102 102
     fwrite($f, "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<teams>\n");
103
-    foreach($teams as $team) {
103
+    foreach ($teams as $team) {
104 104
         handle_team($team, $f);
105 105
     }
106 106
     fwrite($f, "</teams>\n");
Please login to merge, or discard this patch.
html/ops/badge_admin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
     $i = 0;
40 40
     foreach ($badges as $badge) {
41 41
         echo "<tr class=row$i valign=top><form action=badge_admin.php method=POST>";
42
-        $i = 1-$i;
42
+        $i = 1 - $i;
43 43
         echo "<td>$badge->id</td>\n";
44 44
         echo "<input type=hidden name=id value=$badge->id>";
45 45
         $nu = BoincBadgeUser::count("badge_id=$badge->id");
Please login to merge, or discard this patch.
html/ops/db_schemaversion.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
 
22 22
 $db_revision = 0;
23 23
 if (file_exists("../../db_revision")) {
24
-    $db_revision = (int) file_get_contents("../../db_revision");
24
+    $db_revision = (int)file_get_contents("../../db_revision");
25 25
 }
26 26
 require_once("db_update.php");
27 27
 
Please login to merge, or discard this patch.
html/ops/pass_percentage_by_platform.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -197,5 +197,5 @@
 block discarded – undo
197 197
 
198 198
 admin_page_tail();
199 199
 
200
-$cvs_version_tracker[]="\$Id$";  //Generated automatically - do not edit
200
+$cvs_version_tracker[] = "\$Id$"; //Generated automatically - do not edit
201 201
 ?>
Please login to merge, or discard this patch.
html/ops/test_job_file.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
     $post = array();
59 59
     $post["request"] = $xml;
60 60
     if ($req->type == "upload") {
61
-        $i=0;
61
+        $i = 0;
62 62
         foreach ($files as $f) {
63 63
             if ($f['path'] != "") {
64 64
                 $post["file_$i"] = '@'.$f['path'];
@@ -70,9 +70,9 @@  discard block
 block discarded – undo
70 70
     curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
71 71
     $reply = curl_exec($ch);
72 72
     if ($reply) {
73
-        print $reply . "\n";
73
+        print $reply."\n";
74 74
     } else {
75
-        print curl_error($ch) . "\n";
75
+        print curl_error($ch)."\n";
76 76
     }
77 77
     curl_close($ch);
78 78
 }
Please login to merge, or discard this patch.
html/ops/clear_host.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,5 +29,5 @@
 block discarded – undo
29 29
 echo "Host RPC time cleared for host ID: $hostid\n";
30 30
 
31 31
 admin_page_tail();
32
-$cvs_version_tracker[]="\$Id$";  //Generated automatically - do not edit
32
+$cvs_version_tracker[] = "\$Id$"; //Generated automatically - do not edit
33 33
 ?>
Please login to merge, or discard this patch.
html/ops/update_forum_activities.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
     }
41 41
     if ($is_helpdesk) {
42 42
         $diff = ($now - $thread->create_time)/86400;
43
-        $activity = ($thread->sufferers+1)/$diff;
43
+        $activity = ($thread->sufferers + 1)/$diff;
44 44
         echo "thread $thread->id helpdesk $diff $activity\n";
45 45
     } else {
46 46
         $posts = BoincPost::enum("thread=$thread->id");
Please login to merge, or discard this patch.