Passed
Push — server_release/1/1.4 ( 1a8200...99de7f )
by
unknown
27:07 queued 17:44
created
html/user/openid_login.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
 // You should have received a copy of the GNU Lesser General Public License
17 17
 // along with BOINC.  If not, see <http://www.gnu.org/licenses/>.
18 18
 
19
-NOT FINISHED.   DON'T USE
19
+NOT FINISHED.DON'T USE
20 20
 
21 21
 require 'openid.php';
22 22
 include_once("../inc/boinc_db.inc");
@@ -26,14 +26,14 @@  discard block
 block discarded – undo
26 26
 
27 27
 function show_error($str) {
28 28
     page_head("Can't create account");
29
-    echo "$str<br>\n";
29
+    echo "$str < br > \n";
30 30
     page_tail();
31 31
     exit();
32 32
 }
33 33
 
34 34
 try {
35 35
     $openid = new LightOpenID;
36
-    echo "<pre>";
36
+    echo " < pre > ";
37 37
     if(!$openid->mode) {
38 38
         if(isset($_POST['openid_identifier'])) {
39 39
             $openid->identity = $_POST['openid_identifier'];
Please login to merge, or discard this patch.
html/user/job_file.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
 require_once("../inc/submit_util.inc");
82 82
 
83 83
 function upload_error_description($errno) {
84
-    switch($errno) {
84
+    switch ($errno) {
85 85
         case UPLOAD_ERR_INI_SIZE:
86 86
             return "The uploaded file exceeds upload_max_filesize of php.ini."; break;
87 87
         case UPLOAD_ERR_FORM_SIZE:
@@ -107,16 +107,16 @@  discard block
 block discarded – undo
107 107
     $delete_time = (int)$r->delete_time;
108 108
     $batch_id = (int)$r->batch_id;
109 109
     $fanout = parse_config(get_config(), "<uldl_dir_fanout>");
110
-    $phys_names= array();
111
-    foreach($r->phys_name as $f) {
110
+    $phys_names = array();
111
+    foreach ($r->phys_name as $f) {
112 112
         $phys_names[] = (string)$f;
113 113
     }
114 114
     $i = 0;
115
-    foreach($phys_names as $fname) {
115
+    foreach ($phys_names as $fname) {
116 116
         if (!is_valid_filename($fname)) {
117 117
             xml_error(-1, 'bad filename');
118 118
         }
119
-        $path = dir_hier_path($fname, project_dir() . "/download", $fanout);
119
+        $path = dir_hier_path($fname, project_dir()."/download", $fanout);
120 120
 
121 121
         // if the job_file record is there,
122 122
         // update the delete time first to avoid race condition
@@ -228,9 +228,9 @@  discard block
 block discarded – undo
228 228
     foreach ($_FILES as $f) {
229 229
         $tmp_name = $f['tmp_name'];
230 230
         $fname = $phys_names[$i];
231
-        $path = dir_hier_path($fname, project_dir() . "/download", $fanout);
231
+        $path = dir_hier_path($fname, project_dir()."/download", $fanout);
232 232
 
233
-        switch(check_download_file($tmp_name, $path)) {
233
+        switch (check_download_file($tmp_name, $path)) {
234 234
         case 0:
235 235
             break;
236 236
         case 1:
@@ -279,10 +279,10 @@  discard block
 block discarded – undo
279 279
 if ($request_log) {
280 280
     $request_log_dir = parse_config(get_config(), "<log_dir>");
281 281
     if ($request_log_dir) {
282
-        $request_log = $request_log_dir . "/" . $request_log;
282
+        $request_log = $request_log_dir."/".$request_log;
283 283
     }
284 284
     if ($file = fopen($request_log, "a+")) {
285
-        fwrite($file, "\n<job_file date=\"" . date(DATE_ATOM) . "\">\n" . $_POST['request'] . "\n</job_file>\n");
285
+        fwrite($file, "\n<job_file date=\"".date(DATE_ATOM)."\">\n".$_POST['request']."\n</job_file>\n");
286 286
         fclose($file);
287 287
     }
288 288
 }
@@ -294,7 +294,7 @@  discard block
 block discarded – undo
294 294
     xml_error(-1, "can't parse request message: ".htmlspecialchars($req), __FILE__, __LINE__);
295 295
 }
296 296
 
297
-switch($r->getName()) {
297
+switch ($r->getName()) {
298 298
 case 'query_files':
299 299
     query_files($r);
300 300
     break;
Please login to merge, or discard this patch.
html/user/prefs_edit.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
 $subset = sanitize_tags(get_str("subset"));
28 28
 $venue = sanitize_tags(get_str("venue", true));
29 29
 $columns = get_int("cols", true);
30
-$c = $columns?"&cols=$columns":"";
30
+$c = $columns ? "&cols=$columns" : "";
31 31
 check_subset($subset);
32 32
 if ($action) {
33 33
     check_tokens($user->authenticator);
@@ -112,5 +112,5 @@  discard block
 block discarded – undo
112 112
 echo "<a href=prefs.php?subset=$subset$c>".tra("Back to preferences")."</a>\n";
113 113
 page_tail();
114 114
 
115
-$cvs_version_tracker[]="\$Id$";  //Generated automatically - do not edit
115
+$cvs_version_tracker[] = "\$Id$"; //Generated automatically - do not edit
116 116
 ?>
Please login to merge, or discard this patch.
html/inc/util_basic.inc 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -46,10 +46,10 @@  discard block
 block discarded – undo
46 46
     ";
47 47
 }
48 48
 
49
-function xml_error($num=-1, $msg=null, $file=null, $line=null) {
49
+function xml_error($num = -1, $msg = null, $file = null, $line = null) {
50 50
     global $xml_outer_tag;
51 51
     if (!$msg) {
52
-        switch($num) {
52
+        switch ($num) {
53 53
         case -112: $msg = "Invalid XML"; break;
54 54
         case -136: $msg = "Not found"; break;
55 55
         case -137: $msg = "Name or email address is not unique"; break;
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
 // If it's a single-tag element, and it's present, just return the tag
96 96
 //
97 97
 function parse_element($xml, $tag) {
98
-    $closetag = "</" . substr($tag,1);
98
+    $closetag = "</".substr($tag, 1);
99 99
     $x = strstr($xml, $tag);
100 100
     if ($x) {
101 101
         if (strstr($tag, "/>")) return $tag;
@@ -111,8 +111,8 @@  discard block
 block discarded – undo
111 111
 
112 112
 function parse_next_element($xml, $tag, &$cursor) {
113 113
     $element = null;
114
-    $closetag = "</" . substr($tag,1);
115
-    $pos = substr($xml,$cursor);
114
+    $closetag = "</".substr($tag, 1);
115
+    $pos = substr($xml, $cursor);
116 116
     $x = strstr($pos, $tag);
117 117
     if ($x) {
118 118
         if (strstr($tag, "/>")) return $tag;
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
 // whose OSs may have such restrictions.
211 211
 //
212 212
 function is_valid_filename($x) {
213
-    if (strlen($x)>255) return false;
213
+    if (strlen($x) > 255) return false;
214 214
     // \w means A-Za-z0-9_
215 215
     return preg_match('/^[\w\-.]+$/', $x);
216 216
 }
Please login to merge, or discard this patch.