Passed
Pull Request — master (#3042)
by Christian
07:09
created
html/ops/bbcode_convert_response1.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -42,15 +42,15 @@
 block discarded – undo
42 42
     $start_id = 0; //Set this to something else if you like
43 43
     $profiles = _mysql_query("select * from profile where userid>$start_id order by userid");
44 44
     echo _mysql_error();
45
-    $i=0;
46
-    while ($profile = _mysql_fetch_object($profiles)){
45
+    $i = 0;
46
+    while ($profile = _mysql_fetch_object($profiles)) {
47 47
         $i++; 
48 48
         if ($i%100 == 0) {                      //For every 100 profiles
49
-            echo $profile->userid.". "; flush();   // print out where we are
49
+            echo $profile->userid.". "; flush(); // print out where we are
50 50
             //usleep(200000);
51 51
         }
52 52
         
53
-        if ($profile->userid > $start_id){
53
+        if ($profile->userid > $start_id) {
54 54
             fix_profile($profile);
55 55
         }
56 56
     }
Please login to merge, or discard this patch.
Braces   +4 added lines, -3 removed lines patch added patch discarded remove patch
@@ -43,14 +43,15 @@
 block discarded – undo
43 43
     $profiles = _mysql_query("select * from profile where userid>$start_id order by userid");
44 44
     echo _mysql_error();
45 45
     $i=0;
46
-    while ($profile = _mysql_fetch_object($profiles)){
46
+    while ($profile = _mysql_fetch_object($profiles)) {
47 47
         $i++; 
48
-        if ($i%100 == 0) {                      //For every 100 profiles
48
+        if ($i%100 == 0) {
49
+//For every 100 profiles
49 50
             echo $profile->userid.". "; flush();   // print out where we are
50 51
             //usleep(200000);
51 52
         }
52 53
         
53
-        if ($profile->userid > $start_id){
54
+        if ($profile->userid > $start_id) {
54 55
             fix_profile($profile);
55 56
         }
56 57
     }
Please login to merge, or discard this patch.
html/ops/failure_result_summary_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/user/forum_help_desk.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -148,6 +148,6 @@
 block discarded – undo
148 148
 
149 149
 page_tail();
150 150
 
151
-$cvs_version_tracker[]="\$Id$";  //Generated automatically - do not edit
151
+$cvs_version_tracker[] = "\$Id$"; //Generated automatically - do not edit
152 152
 
153 153
 ?>
Please login to merge, or discard this patch.
html/user/team_quit_action.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -148,6 +148,6 @@
 block discarded – undo
148 148
 
149 149
 page_tail();
150 150
 
151
-$cvs_version_tracker[]="\$Id$";  //Generated automatically - do not edit
151
+$cvs_version_tracker[] = "\$Id$"; //Generated automatically - do not edit
152 152
 
153 153
 ?>
Please login to merge, or discard this patch.
html/user/team_founder_transfer_form.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -148,6 +148,6 @@
 block discarded – undo
148 148
 
149 149
 page_tail();
150 150
 
151
-$cvs_version_tracker[]="\$Id$";  //Generated automatically - do not edit
151
+$cvs_version_tracker[] = "\$Id$"; //Generated automatically - do not edit
152 152
 
153 153
 ?>
Please login to merge, or discard this patch.
html/user/prefs.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -148,6 +148,6 @@
 block discarded – undo
148 148
 
149 149
 page_tail();
150 150
 
151
-$cvs_version_tracker[]="\$Id$";  //Generated automatically - do not edit
151
+$cvs_version_tracker[] = "\$Id$"; //Generated automatically - do not edit
152 152
 
153 153
 ?>
Please login to merge, or discard this patch.
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
         ".tra("Your preferences have been updated, and
34 34
           will take effect when your computer communicates with %1
35 35
           or you issue the %2 Update %3 command from the BOINC Manager.",
36
-          PROJECT, "<strong>", "</strong>")."
36
+            PROJECT, "<strong>", "</strong>")."
37 37
         </p>
38 38
     ";
39 39
 }
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
         ".tra("Your preferences have been reset to the defaults, and
43 43
           will take effect when your computer communicates with %1
44 44
           or you issue the %2 Update %3 command from the BOINC Manager.",
45
-          PROJECT, "<strong>", "</strong>")."
45
+            PROJECT, "<strong>", "</strong>")."
46 46
         </p>
47 47
     ";
48 48
 }
Please login to merge, or discard this patch.
html/user/team_join_form.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,5 +44,5 @@
 block discarded – undo
44 44
 ";
45 45
 page_tail();
46 46
 
47
-$cvs_version_tracker[]="\$Id$";  //Generated automatically - do not edit
47
+$cvs_version_tracker[] = "\$Id$"; //Generated automatically - do not edit
48 48
 ?>
Please login to merge, or discard this patch.
html/user/team_join_action.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -148,6 +148,6 @@
 block discarded – undo
148 148
 
149 149
 page_tail();
150 150
 
151
-$cvs_version_tracker[]="\$Id$";  //Generated automatically - do not edit
151
+$cvs_version_tracker[] = "\$Id$"; //Generated automatically - do not edit
152 152
 
153 153
 ?>
Please login to merge, or discard this patch.
html/ops/bolt_map.php 2 patches
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -243,7 +243,7 @@
 block discarded – undo
243 243
             <td><br></td>
244 244
             <td><br></td>
245 245
         ";
246
-    } else  {
246
+    } else {
247 247
         $c = class_name($class);
248 248
         echo "
249 249
             <td><b>".spaces($level)."$unit->name</b></td>
Please login to merge, or discard this patch.
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
 
104 104
 function spaces($level) {
105 105
     $x = "";
106
-    for ($i=0; $i<$level; $i++) {
106
+    for ($i = 0; $i < $level; $i++) {
107 107
         $x .= "&nbsp;&nbsp;&nbsp;&nbsp;";
108 108
     }
109 109
     return $x;
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
 function avg_score($array) {
137 137
     $sum = 0;
138 138
     $n = count($array);
139
-    if ($n ==0) return 0;
139
+    if ($n == 0) return 0;
140 140
     foreach ($array as $a) {
141 141
         $sum += $a->score;
142 142
     }
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
             $n++;
153 153
         }
154 154
     }
155
-    if ($n ==0) return 0;
155
+    if ($n == 0) return 0;
156 156
     return $sum/$n;
157 157
 }
158 158
 
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
     global $breakdown, $breakdown_cat;
236 236
     global $rownum, $course_id;
237 237
 
238
-    $a = $is_answer?" (answer)":"";
238
+    $a = $is_answer ? " (answer)" : "";
239 239
     $j = ($rownum++)%2;
240 240
     echo "<tr class=row$j>";
241 241
     if ($breakdown && $breakdown_cat) {
@@ -243,7 +243,7 @@  discard block
 block discarded – undo
243 243
             <td><br></td>
244 244
             <td><br></td>
245 245
         ";
246
-    } else  {
246
+    } else {
247 247
         $c = class_name($class);
248 248
         echo "
249 249
             <td><b>".spaces($level)."$unit->name</b></td>
@@ -277,7 +277,7 @@  discard block
 block discarded – undo
277 277
         echo time_graph($t, 200);
278 278
         break;
279 279
     case "BoltExercise":
280
-        $mode = $is_answer?BOLT_MODE_ANSWER:BOLT_MODE_SHOW;
280
+        $mode = $is_answer ?BOLT_MODE_ANSWER:BOLT_MODE_SHOW;
281 281
         $views = get_views($unit, $mode);
282 282
         $n = count($views);
283 283
         $out = outcomes($views);
@@ -360,7 +360,7 @@  discard block
 block discarded – undo
360 360
     show_unit($unit, $level);
361 361
     if ($unit->is_item) return;
362 362
     foreach ($unit->units as $u) {
363
-        show_unit_recurse($u, $level+1);
363
+        show_unit_recurse($u, $level + 1);
364 364
     }
365 365
 }
366 366
 
@@ -402,9 +402,9 @@  discard block
 block discarded – undo
402 402
         <input type=hidden name=course_id value=$course_id>
403 403
         <table width=600><tr><td valign=top>
404 404
     ";
405
-    filter_form($filter?$filter->name():"", $filter_cat);
405
+    filter_form($filter ? $filter->name() : "", $filter_cat);
406 406
     echo "</td><td valign=top>";
407
-    breakdown_form($breakdown?$breakdown->name():"");
407
+    breakdown_form($breakdown ? $breakdown->name() : "");
408 408
     echo "
409 409
         </td></tr></table>
410 410
         <p>
Please login to merge, or discard this patch.