Completed
Push — master ( 77499f...eee342 )
by Kevin
28:59 queued 18:04
created
html/user/create_profile.php 1 patch
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -31,6 +31,10 @@  discard block
 block discarded – undo
31 31
 // If $selection is provided, and if it matches one of the entries in the file,
32 32
 // it will be selected by default.
33 33
 //
34
+/**
35
+ * @param string $name
36
+ * @param string $filename
37
+ */
34 38
 function show_combo_box($name, $filename, $selection=null) {
35 39
     echo "<select name=\"$name\" class=\"form-control\">\n";
36 40
 
@@ -185,6 +189,9 @@  discard block
 block discarded – undo
185 189
     show_language_selection($profile);
186 190
 }
187 191
 
192
+/**
193
+ * @param string $name
194
+ */
188 195
 function show_textarea($name, $text) {
189 196
     rowify("<textarea name=\"$name\" class=\"form-control\" rows=\"10\">" . $text . "</textarea>");
190 197
 }
@@ -311,6 +318,9 @@  discard block
 block discarded – undo
311 318
     page_tail();
312 319
 }
313 320
 
321
+/**
322
+ * @param string $warning
323
+ */
314 324
 function show_profile_form($profile, $warning=null) {
315 325
     if ($profile) {
316 326
         page_head(tra("Edit your profile"), null, null, null, boinc_recaptcha_get_head_extra());
Please login to merge, or discard this patch.
html/user/forum_reply.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -178,6 +178,9 @@
 block discarded – undo
178 178
     row2($x1, $x2, false, "20%");
179 179
 }
180 180
 
181
+/**
182
+ * @param string $text
183
+ */
181 184
 function quote_text($text) {
182 185
     $text = "[quote]" . $text . "[/quote]";
183 186
     return $text;
Please login to merge, or discard this patch.
html/user/gpu_list.php 1 patch
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -29,6 +29,9 @@  discard block
 block discarded – undo
29 29
 // take a host.serialnum field (which may encode several GPUs)
30 30
 // and extract the model name for the given vendor
31 31
 //
32
+/**
33
+ * @param string $vendor
34
+ */
32 35
 function get_gpu_model($x, $vendor) {
33 36
     $descs = explode("]", $x);
34 37
     array_pop($descs);
@@ -60,6 +63,10 @@  discard block
 block discarded – undo
60 63
 // $x->linux
61 64
 // $x->mac
62 65
 //
66
+/**
67
+ * @param string $vendor
68
+ * @param string $alt_vendor
69
+ */
63 70
 function get_gpu_list($vendor, $alt_vendor=null) {
64 71
     $clause = "plan_class like '%$vendor%'";
65 72
     if ($alt_vendor) {
@@ -144,6 +151,9 @@  discard block
 block discarded – undo
144 151
     return $x1->avg_time > $x2->avg_time;
145 152
 }
146 153
 
154
+/**
155
+ * @param string $name
156
+ */
147 157
 function show_list($models, $name) {
148 158
     echo "<td><h2>$name</h2>\n";
149 159
     if (!count($models)) {
Please login to merge, or discard this patch.
html/user/host_app_versions.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -18,6 +18,9 @@
 block discarded – undo
18 18
 
19 19
 require_once("../inc/util.inc");
20 20
 
21
+/**
22
+ * @param integer $t
23
+ */
21 24
 function rsc_name($t) {
22 25
     switch ($t) {
23 26
     case 2: return tra("CPU");
Please login to merge, or discard this patch.
html/user/host_edit_action.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -20,6 +20,9 @@
 block discarded – undo
20 20
 require_once("../inc/util.inc");
21 21
 require_once("../inc/host.inc");
22 22
 
23
+/**
24
+ * @param string $msg
25
+ */
23 26
 function fail($msg) {
24 27
     echo "Error: $msg";
25 28
     page_tail();
Please login to merge, or discard this patch.
html/user/lammps.php 1 patch
Doc Comments   +26 added lines patch added patch discarded remove patch
@@ -30,6 +30,9 @@  discard block
 block discarded – undo
30 30
 //
31 31
 // output: success flag, CPU time per step, est. disk usage per job
32 32
 //
33
+/**
34
+ * @param resource $p
35
+ */
33 36
 function terminate_job($p) {
34 37
     $pstatus=proc_get_status($p);
35 38
     $ppid=$pstatus['pid'];
@@ -86,6 +89,9 @@  discard block
 block discarded – undo
86 89
     return array($test_result, $total_cpu, $disk_space);
87 90
 }
88 91
 
92
+/**
93
+ * @param string $cmd_file
94
+ */
89 95
 function get_total_steps($cmd_file) {
90 96
     $fd = fopen($cmd_file,"r");
91 97
     if (!$fd) {
@@ -116,6 +122,9 @@  discard block
 block discarded – undo
116 122
     return $total_steps;
117 123
 }
118 124
 
125
+/**
126
+ * @param string $filename
127
+ */
119 128
 function calc_step_cpu($filename) {
120 129
     $fd = fopen("$filename", "r");
121 130
     $start_line = "Step CPU ";
@@ -169,6 +178,11 @@  discard block
 block discarded – undo
169 178
     return array($avg_cpu,$test_steps);
170 179
 }
171 180
 
181
+/**
182
+ * @param string $lammps_script
183
+ * @param string $structure_file
184
+ * @param string $cmd_file
185
+ */
172 186
 function calc_est_size($lammps_script, $structure_file, $cmd_file,$test_steps){
173 187
     $dump_types = 0;
174 188
     $fd = fopen($lammps_script,"r");
@@ -280,6 +294,11 @@  discard block
 block discarded – undo
280 294
 
281 295
 // verify that an input file exists in sandbox, and return its physical path
282 296
 //
297
+/**
298
+ * @param string $name
299
+ *
300
+ * @return string
301
+ */
283 302
 function get_file_path($user, $name) {
284 303
     $fname = get_str($name);
285 304
 
@@ -308,6 +327,10 @@  discard block
 block discarded – undo
308 327
 //
309 328
 // Note: these are both extremely optimistic estimates
310 329
 //
330
+/**
331
+ * @param integer $njobs
332
+ * @param double $flops_per_job
333
+ */
311 334
 function estimated_makespan($njobs, $flops_per_job) {
312 335
     $nhosts = BoincHost::count("expavg_credit > 1");
313 336
     if ($nhosts < 10) {
@@ -416,6 +439,9 @@  discard block
 block discarded – undo
416 439
     page_tail();
417 440
 }
418 441
 
442
+/**
443
+ * @param integer $i
444
+ */
419 445
 function submit_job($app, $batch_id, $info, $cmdline, $i) {
420 446
     $client_disk=$info->rsc_disk_bound*2;
421 447
     if($client_disk<500000000) $client_disk=500000000;
Please login to merge, or discard this patch.
html/user/openid.php 1 patch
Doc Comments   +11 added lines, -1 removed lines patch added patch discarded remove patch
@@ -315,6 +315,11 @@  discard block
 block discarded – undo
315 315
     /**
316 316
      * Helper function used to scan for <meta>/<link> tags and extract information
317 317
      * from them
318
+     * @param string $tag
319
+     * @param string $attrName
320
+     * @param string $attrValue
321
+     * @param string $valueName
322
+     * @return string
318 323
      */
319 324
     protected function htmlTag($content, $tag, $attrName, $attrValue, $valueName)
320 325
     {
@@ -531,6 +536,9 @@  discard block
 block discarded – undo
531 536
         return $params;
532 537
     }
533 538
 
539
+    /**
540
+     * @param boolean $immediate
541
+     */
534 542
     protected function authUrl_v1($immediate)
535 543
     {
536 544
 	$returnUrl = $this->returnUrl;
@@ -552,6 +560,9 @@  discard block
 block discarded – undo
552 560
                                , array('query' => http_build_query($params, '', '&')));
553 561
     }
554 562
 
563
+    /**
564
+     * @param boolean $immediate
565
+     */
555 566
     protected function authUrl_v2($immediate)
556 567
     {
557 568
         $params = array(
@@ -587,7 +598,6 @@  discard block
 block discarded – undo
587 598
     /**
588 599
      * Returns authentication url. Usually, you want to redirect your user to it.
589 600
      * @return String The authentication url.
590
-     * @param String $select_identifier Whether to request OP to select identity for an user in OpenID 2. Does not affect OpenID 1.
591 601
      * @throws ErrorException
592 602
      */
593 603
     function authUrl($immediate = false)
Please login to merge, or discard this patch.
html/user/server_status.php 1 patch
Doc Comments   +17 added lines patch added patch discarded remove patch
@@ -88,17 +88,26 @@  discard block
 block discarded – undo
88 88
 ";
89 89
 }
90 90
 
91
+/**
92
+ * @param string $name
93
+ */
91 94
 function item_xml($name, $val) {
92 95
     if (!$val) $val = 0;
93 96
     echo "   <$name>$val</$name>\n";
94 97
 }
95 98
 
99
+/**
100
+ * @param string $name
101
+ */
96 102
 function item_html($name, $val) {
97 103
     $name = tra($name);
98 104
     echo "<tr><td>$name</td><td>$val</td></tr>\n";
99 105
     //echo "<tr><td align=right>$name</td><td align=right>$val</td></tr>\n";
100 106
 }
101 107
 
108
+/**
109
+ * @param stdClass $x
110
+ */
102 111
 function show_status_html($x) {
103 112
     page_head(tra("Project status"));
104 113
     $j = $x->jobs;
@@ -190,6 +199,9 @@  discard block
 block discarded – undo
190 199
     page_tail();
191 200
 }
192 201
 
202
+/**
203
+ * @param stdClass $x
204
+ */
193 205
 function show_status_xml($x) {
194 206
     xml_header();
195 207
     echo "<server_status>\n<daemon_status>\n";
@@ -239,6 +251,11 @@  discard block
 block discarded – undo
239 251
 ";
240 252
 }
241 253
 
254
+/**
255
+ * @param string $cmd
256
+ * @param string $pidname
257
+ * @param string $host
258
+ */
242 259
 function local_daemon_running($cmd, $pidname, $host) {
243 260
     if (!$pidname) {
244 261
         $cmd = trim($cmd);
Please login to merge, or discard this patch.
html/user/show_coproc.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -25,6 +25,9 @@
 block discarded – undo
25 25
 
26 26
 check_get_args(array("mode"));
27 27
 
28
+/**
29
+ * @param string $mode
30
+ */
28 31
 function filename($mode) {
29 32
     switch ($mode) {
30 33
     case 'host': return "cuda_hosts.dat";
Please login to merge, or discard this patch.