Completed
Push — master ( 77499f...eee342 )
by Kevin
28:59 queued 18:04
created
html/ops/mass_email_script.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -231,6 +231,9 @@  discard block
 block discarded – undo
231 231
     }
232 232
 }
233 233
 
234
+/**
235
+ * @param resource $log
236
+ */
234 237
 function do_batch($startid, $n, $log) {
235 238
     $result = _mysql_query(
236 239
         "select * from user where id>$startid order by id limit $n"
@@ -245,6 +248,9 @@  discard block
 block discarded – undo
245 248
     return $startid;
246 249
 }
247 250
 
251
+/**
252
+ * @param resource $log
253
+ */
248 254
 function do_one($thisid, $log) {
249 255
     $result = _mysql_query(
250 256
         "select * from user where id=$thisid"
Please login to merge, or discard this patch.
html/ops/notify.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -39,6 +39,9 @@
 block discarded – undo
39 39
     BoincNotify::delete_aux("create_time < $t");
40 40
 }
41 41
 
42
+/**
43
+ * @param string $message
44
+ */
42 45
 function send_notify_email($userid, $message) {
43 46
     $user = BoincUser::lookup_id($userid);
44 47
     $subject = "Daily notification summary from ".PROJECT;
Please login to merge, or discard this patch.
html/ops/remote_server_status.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -41,6 +41,9 @@  discard block
 block discarded – undo
41 41
 
42 42
 // see if a web server is running at the given URL
43 43
 //
44
+/**
45
+ * @param string $url
46
+ */
44 47
 function web_server_running($url) {
45 48
     $u = parse_url($url);
46 49
     $url = $u['scheme']."://".$u['host'];
@@ -56,6 +59,9 @@  discard block
 block discarded – undo
56 59
 
57 60
 // see if the given daemon is running on the host by checking its PID
58 61
 //
62
+/**
63
+ * @param string $host
64
+ */
59 65
 function is_daemon_running($host, $d) {
60 66
     if ($d->pid_file) {
61 67
         $path = "../../pid_$host/".(string)$d->pid_file;
Please login to merge, or discard this patch.
html/ops/single_job_setup.php 1 patch
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -107,10 +107,18 @@
 block discarded – undo
107 107
     }
108 108
 }
109 109
 
110
+/**
111
+ * @param integer $i
112
+ *
113
+ * @return string
114
+ */
110 115
 function app_version_dir($app_name, $i, $platform) {
111 116
     return "apps/$app_name/1.$i/$platform";
112 117
 }
113 118
 
119
+/**
120
+ * @param integer $i
121
+ */
114 122
 function make_app_version_dir($app_name, $i, $platform) {
115 123
     @mkdir("apps/$app_name");
116 124
     @mkdir("apps/$app_name/1.$i");
Please login to merge, or discard this patch.
html/ops/team_export.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -58,6 +58,9 @@
 block discarded – undo
58 58
     return $x;
59 59
 }
60 60
 
61
+/**
62
+ * @param resource $f
63
+ */
61 64
 function handle_team($team, $f) {
62 65
     echo "Team: $team->name\n";
63 66
     $user = BoincUser::lookup_id($team->userid);
Please login to merge, or discard this patch.
html/ops/team_import.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -88,6 +88,9 @@  discard block
 block discarded – undo
88 88
     return null;
89 89
 }
90 90
 
91
+/**
92
+ * @param stdClass $t
93
+ */
91 94
 function valid_team($t) {
92 95
     if (!$t->id) return false;
93 96
     if (!$t->name) return false;
@@ -96,6 +99,9 @@  discard block
 block discarded – undo
96 99
     return true;
97 100
 }
98 101
 
102
+/**
103
+ * @param stdClass $t
104
+ */
99 105
 function update_team($t, $team, $user) {
100 106
     global $dry_run;
101 107
     if (
@@ -126,6 +132,9 @@  discard block
 block discarded – undo
126 132
     }
127 133
 }
128 134
 
135
+/**
136
+ * @param stdClass $t
137
+ */
129 138
 function insert_case($t, $user) {
130 139
     global $master_url;
131 140
     global $dry_run;
Please login to merge, or discard this patch.
html/ops/update_profile_pages.php 1 patch
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -98,6 +98,9 @@  discard block
 block discarded – undo
98 98
 // Generates a standard set of links between associated multi-page documents.
99 99
 //  All linked files must be of the form "$filename_<page number>.html".
100 100
 
101
+/**
102
+ * @param integer $currPageNum
103
+ */
101 104
 function write_page_links($filename, $currPageNum, $numPages) {
102 105
     echo "<p>Page $currPageNum of $numPages</p>";
103 106
 
@@ -332,6 +335,11 @@  discard block
 block discarded – undo
332 335
 // A generalized function to produce some number of pages summarizing a
333 336
 // set of user profiles.
334 337
 
338
+/**
339
+ * @param integer $rowsPerPage
340
+ * @param integer $colsPerPage
341
+ * @param string $dir
342
+ */
335 343
 function build_profile_pages(
336 344
     $members, $title, $rowsPerPage, $colsPerPage, $dir, $base_filename
337 345
 ) {
Please login to merge, or discard this patch.
html/ops/wd_nresults_changing.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -23,6 +23,9 @@
 block discarded – undo
23 23
 $cli_only = true;
24 24
 include_once("util_ops.inc");
25 25
 
26
+/**
27
+ * @param string $x
28
+ */
26 29
 function fail($x) {
27 30
     $f = fopen("error_log", "a");
28 31
     if (!$f) return false;
Please login to merge, or discard this patch.
html/project.sample/project_specific_prefs.inc 1 patch
Doc Comments   +16 added lines patch added patch discarded remove patch
@@ -32,6 +32,9 @@  discard block
 block discarded – undo
32 32
 //      Parse form variables into XML, and return it.
33 33
 //      Also error-check values, and return errors in $errors->*
34 34
 
35
+/**
36
+ * @param string $name
37
+ */
35 38
 function option($name, $val) {
36 39
     $x = ($name == $val) ?  "selected" : "";
37 40
     return "<option name='$name' $x>$name\n";
@@ -90,6 +93,10 @@  discard block
 block discarded – undo
90 93
     return $x;
91 94
 }
92 95
 
96
+/**
97
+ * @param string $name
98
+ * @param integer $max
99
+ */
93 100
 function number_select($name, $max, $n) {
94 101
     $sel = ($n == 0) ? "selected":"";
95 102
     $x = "<select class=\"form-control input-sm\" name=$name> <option value=0 $sel>".tra("No limit")."</option>";
@@ -106,6 +113,9 @@  discard block
 block discarded – undo
106 113
     return tra("No limit");
107 114
 }
108 115
 
116
+/**
117
+ * @param stdClass $prefs
118
+ */
109 119
 function project_specific_prefs_edit($prefs, $error=false) {
110 120
     global $app_array;
111 121
     if (COLOR_PREFS) {
@@ -162,6 +172,9 @@  discard block
 block discarded – undo
162 172
     }
163 173
 }
164 174
 
175
+/**
176
+ * @param boolean $error
177
+ */
165 178
 function project_specific_prefs_parse_form(&$error) {
166 179
     global $app_array;
167 180
     $x = "";
@@ -216,6 +229,9 @@  discard block
 block discarded – undo
216 229
     return $x;
217 230
 }
218 231
 
232
+/**
233
+ * @param stdClass $prefs
234
+ */
219 235
 function project_specific_prefs_show($prefs, $columns=false) {
220 236
     global $app_array;
221 237
     if ($columns) {
Please login to merge, or discard this patch.