Completed
Push — master ( 17f8d0...df96c0 )
by Harald
14:18 queued 09:58
created
admin/includes/modules/security_check/extended/ext_directory_listing.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -32,6 +32,9 @@
 block discarded – undo
32 32
       return MODULE_SECURITY_CHECK_EXTENDED_EXT_DIRECTORY_LISTING_HTTP_200;
33 33
     }
34 34
 
35
+    /**
36
+     * @param null|string $url
37
+     */
35 38
     function getHttpRequest($url) {
36 39
       $server = parse_url($url);
37 40
 
Please login to merge, or discard this patch.
catalog/includes/classes/breadcrumb.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -21,6 +21,9 @@
 block discarded – undo
21 21
       $this->_trail = array();
22 22
     }
23 23
 
24
+    /**
25
+     * @param string $title
26
+     */
24 27
     function add($title, $link = '') {
25 28
       $this->_trail[] = array('title' => $title, 'link' => $link);
26 29
     }
Please login to merge, or discard this patch.
catalog/includes/classes/category_tree.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -53,6 +53,9 @@
 block discarded – undo
53 53
       }
54 54
     }
55 55
 
56
+    /**
57
+     * @param integer $parent_id
58
+     */
56 59
     protected function _buildBranch($parent_id, $level = 0) {
57 60
       $result = ((($level === 0) && ($this->parent_group_apply_to_root === true)) || ($level > 0)) ? $this->parent_group_start_string : null;
58 61
 
Please login to merge, or discard this patch.
catalog/includes/classes/email.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -81,6 +81,7 @@  discard block
 block discarded – undo
81 81
  * it. This can then be given as the first
82 82
  * argument of the the functions
83 83
  * add_html_image() or add_attachment().
84
+ * @param string $filename
84 85
  */
85 86
 
86 87
     function get_file($filename) {
@@ -151,6 +152,7 @@  discard block
 block discarded – undo
151 152
  * Adds a html part to the mail.
152 153
  * Also replaces image names with
153 154
  * content-id's.
155
+ * @param string $text
154 156
  */
155 157
 
156 158
     function add_html($html, $text = NULL, $images_dir = NULL) {
@@ -163,6 +165,7 @@  discard block
 block discarded – undo
163 165
 /**
164 166
  * Adds an image to the list of embedded
165 167
  * images.
168
+ * @param string $file
166 169
  */
167 170
 
168 171
     function add_html_image($file, $name = '', $c_type='application/octet-stream') {
@@ -227,6 +230,7 @@  discard block
 block discarded – undo
227 230
 
228 231
 /**
229 232
  * Adds an alternative part to a mime_part object
233
+ * @param null|mime $obj
230 234
  */
231 235
 
232 236
     function add_alternative_part(&$obj) {
Please login to merge, or discard this patch.
catalog/includes/classes/http_client.php 1 patch
Doc Comments   +5 added lines, -4 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
 /**
110 110
  * addHeader
111 111
  * set a unique request header
112
- * @param headerName the header name
112
+ * @param headerName string header name
113 113
  * @param headerValue the header value, ( unencoded)
114 114
  **/
115 115
     function addHeader($headerName, $headerValue) {
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
 /**
120 120
  * removeHeader
121 121
  * unset a request header
122
- * @param headerName the header name
122
+ * @param headerName string header name
123 123
  **/
124 124
     function removeHeader($headerName) {
125 125
       unset($this->requestHeaders[$headerName]);
@@ -307,7 +307,8 @@  discard block
 block discarded – undo
307 307
  * a) the command
308 308
  * b) the request headers if they are defined
309 309
  * c) the request body if defined
310
- * @return string the server repsonse status code
310
+ * @param string $command
311
+ * @return boolean|null the server repsonse status code
311 312
  **/
312 313
     function sendCommand($command) {
313 314
       $this->responseHeaders = array();
@@ -430,7 +431,7 @@  discard block
 block discarded – undo
430 431
 /**
431 432
  * Calculate and return the URI to be sent ( proxy purpose )
432 433
  * @param the local URI
433
- * @return URI to be used in the HTTP request
434
+ * @return string to be used in the HTTP request
434 435
  * @scope private
435 436
  **/
436 437
     function makeUri($uri) {
Please login to merge, or discard this patch.
catalog/includes/classes/mime.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -145,7 +145,7 @@
 block discarded – undo
145 145
  * @param $body   The body of the subpart, if any.
146 146
  * @param $params The parameters for the subpart, same
147 147
  *                as the $params argument for constructor.
148
- * @return A reference to the part you just added. It is
148
+ * @return mime reference to the part you just added. It is
149 149
  *         crucial if using multipart/* in your subparts that
150 150
  *         you use =& in your script when calling this function,
151 151
  *         otherwise you will not be able to add further subparts.
Please login to merge, or discard this patch.
catalog/includes/classes/passwordhash.php 1 patch
Doc Comments   +16 added lines patch added patch discarded remove patch
@@ -35,6 +35,10 @@  discard block
 block discarded – undo
35 35
 	var $portable_hashes;
36 36
 	var $random_state;
37 37
 
38
+	/**
39
+	 * @param integer $iteration_count_log2
40
+	 * @param boolean $portable_hashes
41
+	 */
38 42
 	function PasswordHash($iteration_count_log2, $portable_hashes)
39 43
 	{
40 44
 		$this->itoa64 = './0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';
@@ -84,6 +88,9 @@  discard block
 block discarded – undo
84 88
 		return $output;
85 89
 	}
86 90
 
91
+	/**
92
+	 * @param integer $count
93
+	 */
87 94
 	function encode64($input, $count)
88 95
 	{
89 96
 		$output = '';
@@ -107,6 +114,9 @@  discard block
 block discarded – undo
107 114
 		return $output;
108 115
 	}
109 116
 
117
+	/**
118
+	 * @param string $input
119
+	 */
110 120
 	function gensalt_private($input)
111 121
 	{
112 122
 		$output = '$P$';
@@ -155,6 +165,9 @@  discard block
 block discarded – undo
155 165
 		return $output;
156 166
 	}
157 167
 
168
+	/**
169
+	 * @param string $input
170
+	 */
158 171
 	function gensalt_extended($input)
159 172
 	{
160 173
 		$count_log2 = min($this->iteration_count_log2 + 8, 24);
@@ -173,6 +186,9 @@  discard block
 block discarded – undo
173 186
 		return $output;
174 187
 	}
175 188
 
189
+	/**
190
+	 * @param string $input
191
+	 */
176 192
 	function gensalt_blowfish($input)
177 193
 	{
178 194
 		# This one needs to use a different order of characters and a
Please login to merge, or discard this patch.
catalog/includes/functions/cache.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -15,6 +15,9 @@  discard block
 block discarded – undo
15 15
 //  write_cache uses serialize() to store $var in $filename.
16 16
 //  $var      -  The variable to be written out.
17 17
 //  $filename -  The name of the file to write to.
18
+  /**
19
+   * @param string $filename
20
+   */
18 21
   function write_cache(&$var, $filename) {
19 22
     $filename = DIR_FS_CACHE . $filename;
20 23
     $success = false;
@@ -40,6 +43,10 @@  discard block
 block discarded – undo
40 43
 //  fills $var using unserialize().
41 44
 //  $var      -  The variable to be filled.
42 45
 //  $filename -  The name of the file to read.
46
+  /**
47
+   * @param string $var
48
+   * @param string $filename
49
+   */
43 50
   function read_cache(&$var, $filename, $auto_expire = false){
44 51
     $filename = DIR_FS_CACHE . $filename;
45 52
     $success = false;
Please login to merge, or discard this patch.
catalog/includes/functions/general.php 1 patch
Doc Comments   +35 added lines patch added patch discarded remove patch
@@ -121,6 +121,9 @@  discard block
 block discarded – undo
121 121
 
122 122
 ////
123 123
 // Break a word in a string if it is longer than a specified length ($len)
124
+  /**
125
+   * @param integer $len
126
+   */
124 127
   function tep_break_string($string, $len, $break_char = '-') {
125 128
     $l = 0;
126 129
     $output = '';
@@ -244,6 +247,9 @@  discard block
 block discarded – undo
244 247
 
245 248
 ////
246 249
 // Returns the clients browser
250
+  /**
251
+   * @param string $component
252
+   */
247 253
   function tep_browser_detect($component) {
248 254
     return stristr($_SERVER['HTTP_USER_AGENT'], $component);
249 255
   }
@@ -294,6 +300,9 @@  discard block
 block discarded – undo
294 300
 
295 301
 ////
296 302
 // Wrapper function for round()
303
+  /**
304
+   * @return double
305
+   */
297 306
   function tep_round($number, $precision) {
298 307
     if (strpos($number, '.') && (strlen(substr($number, strpos($number, '.')+1)) > $precision)) {
299 308
       $number = substr($number, 0, strpos($number, '.') + 1 + $precision + 1);
@@ -473,6 +482,11 @@  discard block
 block discarded – undo
473 482
 ////
474 483
 // Return a formatted address
475 484
 // TABLES: address_format
485
+  /**
486
+   * @param boolean $html
487
+   * @param string $boln
488
+   * @param string $eoln
489
+   */
476 490
   function tep_address_format($address_format_id, $address, $html, $boln, $eoln) {
477 491
     $OSCOM_Db = Registry::get('Db');
478 492
 
@@ -1001,6 +1015,9 @@  discard block
 block discarded – undo
1001 1015
 
1002 1016
 ////
1003 1017
 // Return a product ID with attributes
1018
+  /**
1019
+   * @param string $params
1020
+   */
1004 1021
   function tep_get_uprid($prid, $params) {
1005 1022
     if (is_numeric($prid)) {
1006 1023
       $uprid = (int)$prid;
@@ -1094,6 +1111,11 @@  discard block
 block discarded – undo
1094 1111
 // $from_email_adress The eMail address of the sender,
1095 1112
 //                    e.g. [email protected]
1096 1113
 
1114
+  /**
1115
+   * @param string $to_name
1116
+   * @param string $email_subject
1117
+   * @param string $email_text
1118
+   */
1097 1119
   function tep_mail($to_name, $to_email_address, $email_subject, $email_text, $from_email_name, $from_email_address) {
1098 1120
     if (SEND_EMAILS != 'true') return false;
1099 1121
 
@@ -1153,6 +1175,9 @@  discard block
 block discarded – undo
1153 1175
     return tep_count_modules(MODULE_SHIPPING_INSTALLED);
1154 1176
   }
1155 1177
 
1178
+  /**
1179
+   * @param integer $length
1180
+   */
1156 1181
   function tep_create_random_value($length, $type = 'mixed') {
1157 1182
     if ( ($type != 'mixed') && ($type != 'chars') && ($type != 'digits')) $type = 'mixed';
1158 1183
 
@@ -1308,6 +1333,10 @@  discard block
 block discarded – undo
1308 1333
 
1309 1334
 ////
1310 1335
 // Return a random value
1336
+  /**
1337
+   * @param integer $min
1338
+   * @param integer $max
1339
+   */
1311 1340
   function tep_rand($min = null, $max = null) {
1312 1341
 
1313 1342
     if (isset($min) && isset($max)) {
@@ -1321,6 +1350,9 @@  discard block
 block discarded – undo
1321 1350
     }
1322 1351
   }
1323 1352
 
1353
+  /**
1354
+   * @param string $name
1355
+   */
1324 1356
   function tep_setcookie($name, $value = '', $expire = 0, $path = null, $domain = null, $secure = 0) {
1325 1357
     global $cookie_path, $cookie_domain;
1326 1358
 
@@ -1433,6 +1465,9 @@  discard block
 block discarded – undo
1433 1465
   }
1434 1466
 
1435 1467
 // Convert linefeeds
1468
+  /**
1469
+   * @param string[] $from
1470
+   */
1436 1471
   function tep_convert_linefeeds($from, $to, $string) {
1437 1472
       return str_replace($from, $to, $string);
1438 1473
   }
Please login to merge, or discard this patch.