Completed
Branch master (72d684)
by Christian
13:26
created
doc/concierge.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -31,6 +31,9 @@
 block discarded – undo
31 31
     return null;
32 32
 }
33 33
 
34
+/**
35
+ * @param string $pname
36
+ */
34 37
 function get_download_url($pname, $need_vbox) {
35 38
     global $platforms;
36 39
     global $url_base;
Please login to merge, or discard this patch.
doc/docutil.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -151,6 +151,9 @@  discard block
 block discarded – undo
151 151
     echo " </tr>\n";
152 152
 }
153 153
 
154
+/**
155
+ * @param string[] $x
156
+ */
154 157
 function list_heading_array($x) {
155 158
     echo "<tr>";
156 159
     foreach ($x as $h) {
@@ -197,6 +200,9 @@  discard block
 block discarded – undo
197 200
     echo "</table><p>\n";
198 201
 }
199 202
 
203
+/**
204
+ * @param string $x
205
+ */
200 206
 function boinc_error_page($x) {
201 207
     page_head("Error");
202 208
     echo $x;
Please login to merge, or discard this patch.
doc/download_all.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -28,6 +28,9 @@
 block discarded – undo
28 28
     if ($dev === null) $dev=1;
29 29
 }
30 30
 
31
+/**
32
+ * @param string $x
33
+ */
31 34
 function dl_item($x, $y) {
32 35
     echo "<tr><td valign=top  align=right width=\"30%\">$x</td>
33 36
         <td>$y</td></tr>
Please login to merge, or discard this patch.
doc/get_platforms.inc 1 patch
Doc Comments   +15 added lines patch added patch discarded remove patch
@@ -88,6 +88,9 @@  discard block
 block discarded – undo
88 88
     return $x;
89 89
 }
90 90
 
91
+/**
92
+ * @param stdClass $f
93
+ */
91 94
 function platform_icons($f) {
92 95
     $x = "";
93 96
     $ht = 40;
@@ -125,6 +128,11 @@  discard block
 block discarded – undo
125 128
     return $x;
126 129
 }
127 130
 
131
+/**
132
+ * @param string $pc
133
+ *
134
+ * @return string
135
+ */
128 136
 function canonical_plan_class($pc) {
129 137
 	if (strstr($pc, "atiOpenCL")) return "opencl_ati";
130 138
 	if (strstr($pc, "nvidiaOpenCL")) return "opencl_nvidia";
@@ -134,6 +142,10 @@  discard block
 block discarded – undo
134 142
 
135 143
 // some specific cases where we know the project doesn't have jobs
136 144
 //
145
+/**
146
+ * @param string $url
147
+ * @param string $plat
148
+ */
137 149
 function valid($url, $plat) {
138 150
     if (strstr($url, "gpugrid.net")) {
139 151
         if (strstr($plat, "android")) return false;
@@ -249,6 +261,9 @@  discard block
 block discarded – undo
249 261
 // convert an array of platform names into a comma-separated
250 262
 // list of human-readable names
251 263
 //
264
+/**
265
+ * @param boolean $comma
266
+ */
252 267
 function make_friendly_string($l, $comma) {
253 268
     if (!count($l)) return "Unknown";
254 269
     $fn = array();
Please login to merge, or discard this patch.
doc/help_funcs.php 1 patch
Doc Comments   +15 added lines patch added patch discarded remove patch
@@ -77,14 +77,23 @@  discard block
 block discarded – undo
77 77
     ";
78 78
 }
79 79
 
80
+/**
81
+ * @param string $name
82
+ */
80 83
 function input($name, $val) {
81 84
     return "<input name=$name size=40 value=\"$val\">";
82 85
 }
83 86
 
87
+/**
88
+ * @param string $name
89
+ */
84 90
 function password($name, $val) {
85 91
     return "<input type=password name=$name value=\"$val\">";
86 92
 }
87 93
 
94
+/**
95
+ * @param string $name
96
+ */
88 97
 function textarea($name, $val) {
89 98
     return "<textarea rows=4 cols=40 name=$name>$val</textarea>\n";
90 99
 }
@@ -97,6 +106,9 @@  discard block
 block discarded – undo
97 106
     }
98 107
 }
99 108
 
109
+/**
110
+ * @param string $name
111
+ */
100 112
 function yesno($name, $val) {
101 113
     if ($val) {
102 114
         return "
@@ -111,6 +123,9 @@  discard block
 block discarded – undo
111 123
     }
112 124
 }
113 125
 
126
+/**
127
+ * @param string $name
128
+ */
114 129
 function star_select($name, $val) {
115 130
     $x = "";
116 131
     for ($i=5; $i>=0; $i--) {
Please login to merge, or discard this patch.
doc/project.inc 1 patch
Doc Comments   +13 added lines patch added patch discarded remove patch
@@ -24,6 +24,10 @@  discard block
 block discarded – undo
24 24
 
25 25
 define('MODERATORS_CAN_BANISH', '1');
26 26
 
27
+/**
28
+ * @param string $prefix
29
+ * @param boolean $fixed
30
+ */
27 31
 function navbar($prefix, $user, $fixed) {
28 32
     $brand = '<a href="http://boinc.berkeley.edu"><img height="50" src="https://boinc.berkeley.edu/logo/boinc_logo.png"></a>&nbsp;&nbsp;';
29 33
     navbar_start($brand, $fixed, false);
@@ -48,6 +52,10 @@  discard block
 block discarded – undo
48 52
     navbar_end(true);
49 53
 }
50 54
 
55
+/**
56
+ * @param string $prefix
57
+ * @param boolean $is_main
58
+ */
51 59
 function project_banner($title, $prefix, $is_main) {
52 60
     if ($is_main) {
53 61
         echo '
@@ -89,6 +97,11 @@  discard block
 block discarded – undo
89 97
     ";
90 98
 }
91 99
 
100
+/**
101
+ * @param boolean $show_return
102
+ * @param boolean $show_date
103
+ * @param string $prefix
104
+ */
92 105
 function project_footer($show_return, $show_date, $prefix) {
93 106
     $y = date("Y ");
94 107
     echo "
Please login to merge, or discard this patch.
doc/sim/sim_util.inc 1 patch
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -9,6 +9,9 @@  discard block
 block discarded – undo
9 9
     public $include_empty_projects;
10 10
     public $server_uses_workload;
11 11
 
12
+    /**
13
+     * @param string $name
14
+     */
12 15
     function __construct($name) {
13 16
         $this->name = $name;
14 17
         $this->duration = 86400;
@@ -182,6 +185,9 @@  discard block
 block discarded – undo
182 185
     system("gnuplot < $gp_fname > $png_fname");
183 186
 }
184 187
 
188
+/**
189
+ * @param integer $col
190
+ */
185 191
 function graph_n_results2(
186 192
     $title, $xlabel, $lab1, $lab2, $dir, $results1, $results2, $col
187 193
 ) {
@@ -205,6 +211,9 @@  discard block
 block discarded – undo
205 211
 
206 212
 // create output dir, do a simulation, accumulate results
207 213
 //
214
+/**
215
+ * @param string $pname
216
+ */
208 217
 function do_sim_aux($out_dir, $scenario, $policy, $pname, $sum) {
209 218
     $sim_out_dir = $out_dir."/".$pname."_".$scenario;
210 219
     @mkdir($sim_out_dir);
@@ -232,6 +241,9 @@  discard block
 block discarded – undo
232 241
 
233 242
 // do a sim with a policy parameter
234 243
 //
244
+/**
245
+ * @param RESULT $sum
246
+ */
235 247
 function do_sim_policy_param($out_dir, $scenario, $policy, $param, $sum) {
236 248
     $sim_out_dir = $out_dir."/".$scenario."_".$policy->name."_".$param;
237 249
     @mkdir($sim_out_dir);
Please login to merge, or discard this patch.
doc/spoken_languages.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -59,12 +59,18 @@
 block discarded – undo
59 59
     'Yoruba',
60 60
 );
61 61
 
62
+/**
63
+ * @param string $lang
64
+ */
62 65
 function is_spoken_language($lang) {
63 66
     global $spoken_languages;
64 67
     if (!$lang) return true;
65 68
     return in_array($lang, $spoken_languages);
66 69
 }
67 70
 
71
+/**
72
+ * @param string $name
73
+ */
68 74
 function spoken_language_list($name, $val) {
69 75
     global $spoken_languages;
70 76
     $x = "<select name=$name>\n";
Please login to merge, or discard this patch.
drupal/sites/all/libraries/phpmailer/class.pop3.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -200,7 +200,7 @@
 block discarded – undo
200 200
      * Connect to a POP3 server.
201 201
      * @access public
202 202
      * @param string $host
203
-     * @param integer|boolean $port
203
+     * @param integer $port
204 204
      * @param integer $tval
205 205
      * @return boolean
206 206
      */
Please login to merge, or discard this patch.