Completed
Push — 2341 ( 94e9e9 )
by Harald
18:30
created
catalog/includes/modules/shipping/usps.php 1 patch
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -167,19 +167,31 @@
 block discarded – undo
167 167
       $this->service = $service;
168 168
     }
169 169
 
170
+    /**
171
+     * @param double $pounds
172
+     */
170 173
     function _setWeight($pounds, $ounces=0) {
171 174
       $this->pounds = $pounds;
172 175
       $this->ounces = $ounces;
173 176
     }
174 177
 
178
+    /**
179
+     * @param string $container
180
+     */
175 181
     function _setContainer($container) {
176 182
       $this->container = $container;
177 183
     }
178 184
 
185
+    /**
186
+     * @param string $size
187
+     */
179 188
     function _setSize($size) {
180 189
       $this->size = $size;
181 190
     }
182 191
 
192
+    /**
193
+     * @param string $machinable
194
+     */
183 195
     function _setMachinable($machinable) {
184 196
       $this->machinable = $machinable;
185 197
     }
Please login to merge, or discard this patch.
catalog/install/includes/functions/database.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -162,6 +162,9 @@
 block discarded – undo
162 162
       return $link;
163 163
     }
164 164
 
165
+    /**
166
+     * @param string $charset
167
+     */
165 168
     function mysqli_set_charset($link, $charset) {
166 169
       if ( function_exists('mysql_set_charset') ) {
167 170
         return mysql_set_charset($charset, $link);
Please login to merge, or discard this patch.
catalog/admin/includes/functions/html_output.php 1 patch
Doc Comments   +25 added lines patch added patch discarded remove patch
@@ -109,6 +109,9 @@  discard block
 block discarded – undo
109 109
 ////
110 110
 // The HTML form submit button wrapper function
111 111
 // Outputs a button in the selected language
112
+  /**
113
+   * @param string $image
114
+   */
112 115
   function tep_image_submit($image, $alt = '', $parameters = '') {
113 116
     global $language;
114 117
 
@@ -176,6 +179,9 @@  discard block
 block discarded – undo
176 179
 
177 180
 ////
178 181
 // Output a form
182
+  /**
183
+   * @param string $name
184
+   */
179 185
   function tep_draw_form($name, $action, $parameters = '', $method = 'post', $params = '') {
180 186
     $form = '<form name="' . tep_output_string($name) . '" action="';
181 187
     if (tep_not_null($parameters)) {
@@ -238,6 +244,9 @@  discard block
 block discarded – undo
238 244
 
239 245
 ////
240 246
 // Output a selection field - alias function for tep_draw_checkbox_field() and tep_draw_radio_field()
247
+  /**
248
+   * @param string $type
249
+   */
241 250
   function tep_draw_selection_field($name, $type, $value = '', $checked = false, $compare = '') {
242 251
     global $HTTP_GET_VARS, $HTTP_POST_VARS;
243 252
 
@@ -256,12 +265,18 @@  discard block
 block discarded – undo
256 265
 
257 266
 ////
258 267
 // Output a form checkbox field
268
+  /**
269
+   * @param string $name
270
+   */
259 271
   function tep_draw_checkbox_field($name, $value = '', $checked = false, $compare = '') {
260 272
     return tep_draw_selection_field($name, 'checkbox', $value, $checked, $compare);
261 273
   }
262 274
 
263 275
 ////
264 276
 // Output a form radio field
277
+  /**
278
+   * @param string $name
279
+   */
265 280
   function tep_draw_radio_field($name, $value = '', $checked = false, $compare = '') {
266 281
     return tep_draw_selection_field($name, 'radio', $value, $checked, $compare);
267 282
   }
@@ -269,6 +284,10 @@  discard block
 block discarded – undo
269 284
 ////
270 285
 // Output a form textarea field
271 286
 // The $wrap parameter is no longer used in the core xhtml template
287
+  /**
288
+   * @param string $name
289
+   * @param string|false $wrap
290
+   */
272 291
   function tep_draw_textarea_field($name, $wrap, $width, $height, $text = '', $parameters = '', $reinsert_value = true) {
273 292
     global $HTTP_GET_VARS, $HTTP_POST_VARS;
274 293
 
@@ -365,6 +384,12 @@  discard block
 block discarded – undo
365 384
 
366 385
 ////
367 386
 // Output a jQuery UI Button
387
+  /**
388
+   * @param string $title
389
+   * @param string $icon
390
+   * @param string $link
391
+   * @param string $priority
392
+   */
368 393
   function tep_draw_button($title = null, $icon = null, $link = null, $priority = null, $params = null) {
369 394
     static $button_counter = 1;
370 395
 
Please login to merge, or discard this patch.
catalog/admin/includes/functions/sessions.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -103,6 +103,9 @@  discard block
 block discarded – undo
103 103
     return session_start();
104 104
   }
105 105
 
106
+  /**
107
+   * @param string $variable
108
+   */
106 109
   function tep_session_register($variable) {
107 110
     if (PHP_VERSION < 4.3) {
108 111
       return session_register($variable);
@@ -117,6 +120,9 @@  discard block
 block discarded – undo
117 120
     return false;
118 121
   }
119 122
 
123
+  /**
124
+   * @param string $variable
125
+   */
120 126
   function tep_session_is_registered($variable) {
121 127
     if (PHP_VERSION < 4.3) {
122 128
       return session_is_registered($variable);
@@ -125,6 +131,9 @@  discard block
 block discarded – undo
125 131
     }
126 132
   }
127 133
 
134
+  /**
135
+   * @param string $variable
136
+   */
128 137
   function tep_session_unregister($variable) {
129 138
     if (PHP_VERSION < 4.3) {
130 139
       return session_unregister($variable);
Please login to merge, or discard this patch.
includes/modules/security_check/extended/admin_backup_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_ADMIN_BACKUP_DIRECTORY_LISTING_HTTP_200;
33 33
     }
34 34
 
35
+    /**
36
+     * @param null|string $url
37
+     */
35 38
     function getHttpRequest($url) {
36 39
       global $HTTP_SERVER_VARS;
37 40
 
Please login to merge, or discard this patch.
admin/includes/modules/security_check/extended/admin_backup_file.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -66,6 +66,9 @@
 block discarded – undo
66 66
       return MODULE_SECURITY_CHECK_EXTENDED_ADMIN_BACKUP_FILE_HTTP_200;
67 67
     }
68 68
 
69
+    /**
70
+     * @param null|string $url
71
+     */
69 72
     function getHttpRequest($url) {
70 73
       global $HTTP_SERVER_VARS;
71 74
 
Please login to merge, or discard this patch.
catalog/includes/classes/email.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -82,6 +82,7 @@  discard block
 block discarded – undo
82 82
  * it. This can then be given as the first
83 83
  * argument of the the functions
84 84
  * add_html_image() or add_attachment().
85
+ * @param string $filename
85 86
  */
86 87
 
87 88
     function get_file($filename) {
@@ -153,6 +154,7 @@  discard block
 block discarded – undo
153 154
  * Adds a html part to the mail.
154 155
  * Also replaces image names with
155 156
  * content-id's.
157
+ * @param string $text
156 158
  */
157 159
 
158 160
     function add_html($html, $text = NULL, $images_dir = NULL) {
@@ -165,6 +167,7 @@  discard block
 block discarded – undo
165 167
 /**
166 168
  * Adds an image to the list of embedded
167 169
  * images.
170
+ * @param string $file
168 171
  */
169 172
 
170 173
     function add_html_image($file, $name = '', $c_type='application/octet-stream') {
@@ -239,6 +242,9 @@  discard block
 block discarded – undo
239 242
 
240 243
 /* HPDL PHP3 */
241 244
 //    function &add_alternative_part(&$obj) {
245
+    /**
246
+     * @param null|mime $obj
247
+     */
242 248
     function add_alternative_part(&$obj) {
243 249
       $params['content_type'] = 'multipart/alternative';
244 250
 
Please login to merge, or discard this patch.
catalog/includes/classes/language.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -70,6 +70,9 @@
 block discarded – undo
70 70
       $this->set_language($lng);
71 71
     }
72 72
 
73
+    /**
74
+     * @param string $language
75
+     */
73 76
     function set_language($language) {
74 77
       if ( (tep_not_null($language)) && (isset($this->catalog_languages[$language])) ) {
75 78
         $this->language = $this->catalog_languages[$language];
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.