Completed
Pull Request — master (#378)
by
unknown
05:41
created
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/banner.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -16,6 +16,9 @@
 block discarded – undo
16 16
 
17 17
 ////
18 18
 // Sets the status of a banner
19
+  /**
20
+   * @param integer $status
21
+   */
19 22
   function tep_set_banner_status($banners_id, $status) {
20 23
     $OSCOM_Db = Registry::get('Db');
21 24
 
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.
catalog/includes/functions/password_funcs.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -13,6 +13,9 @@  discard block
 block discarded – undo
13 13
 ////
14 14
 // This function validates a plain text password with a
15 15
 // salted or phpass password
16
+  /**
17
+   * @param string $plain
18
+   */
16 19
   function tep_validate_password($plain, $encrypted) {
17 20
     if (tep_not_null($plain) && tep_not_null($encrypted)) {
18 21
       if (tep_password_type($encrypted) == 'salt') {
@@ -52,6 +55,9 @@  discard block
 block discarded – undo
52 55
 ////
53 56
 // This function encrypts a phpass password from a plaintext
54 57
 // password.
58
+  /**
59
+   * @param string $plain
60
+   */
55 61
   function tep_encrypt_password($plain) {
56 62
     if (!class_exists('PasswordHash')) {
57 63
       include(DIR_WS_CLASSES . 'passwordhash.php');
Please login to merge, or discard this patch.
catalog/includes/functions/specials.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -14,6 +14,9 @@
 block discarded – undo
14 14
 
15 15
 ////
16 16
 // Sets the status of a special product
17
+  /**
18
+   * @param integer $status
19
+   */
17 20
   function tep_set_specials_status($specials_id, $status) {
18 21
     $OSCOM_Db = Registry::get('Db');
19 22
 
Please login to merge, or discard this patch.
catalog/includes/functions/whos_online.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -60,6 +60,10 @@
 block discarded – undo
60 60
     }
61 61
   }
62 62
 
63
+  /**
64
+   * @param string $old_id
65
+   * @param string $new_id
66
+   */
63 67
   function tep_whos_online_update_session_id($old_id, $new_id) {
64 68
     $OSCOM_Db = Registry::get('Db');
65 69
 
Please login to merge, or discard this patch.