Completed
Pull Request — 23 (#431)
by Harald
05:50
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/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/admin/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/admin/includes/functions/database.php 1 patch
Doc Comments   +13 added lines patch added patch discarded remove patch
@@ -32,6 +32,10 @@  discard block
 block discarded – undo
32 32
     return mysqli_close($$link);
33 33
   }
34 34
 
35
+  /**
36
+   * @param integer $errno
37
+   * @param string $error
38
+   */
35 39
   function tep_db_error($query, $errno, $error) { 
36 40
     if (defined('STORE_DB_TRANSACTIONS') && (STORE_DB_TRANSACTIONS == 'true')) {
37 41
       error_log('ERROR: [' . $errno . '] ' . $error . "\n", 3, STORE_PAGE_PARSE_TIME_LOG);
@@ -52,6 +56,9 @@  discard block
 block discarded – undo
52 56
     return $result;
53 57
   }
54 58
 
59
+  /**
60
+   * @param string $table
61
+   */
55 62
   function tep_db_perform($table, $data, $action = 'insert', $parameters = '', $link = 'db_link') {
56 63
     reset($data);
57 64
     if ($action == 'insert') {
@@ -191,6 +198,9 @@  discard block
 block discarded – undo
191 198
       return mysql_error($link);
192 199
     }
193 200
 
201
+    /**
202
+     * @param string $charset
203
+     */
194 204
     function mysqli_set_charset($link, $charset) {
195 205
       if ( function_exists('mysql_set_charset') ) {
196 206
         return mysql_set_charset($charset, $link);
@@ -221,6 +231,9 @@  discard block
 block discarded – undo
221 231
       return mysql_error($link);
222 232
     }
223 233
 
234
+    /**
235
+     * @param integer $type
236
+     */
224 237
     function mysqli_fetch_array($query, $type) {
225 238
       return mysql_fetch_array($query, $type);
226 239
     }
Please login to merge, or discard this patch.
catalog/admin/includes/functions/html_output.php 1 patch
Doc Comments   +22 added lines patch added patch discarded remove patch
@@ -117,6 +117,9 @@  discard block
 block discarded – undo
117 117
 ////
118 118
 // The HTML form submit button wrapper function
119 119
 // Outputs a button in the selected language
120
+  /**
121
+   * @param string $image
122
+   */
120 123
   function tep_image_submit($image, $alt = '', $parameters = '') {
121 124
     global $language;
122 125
 
@@ -147,6 +150,9 @@  discard block
 block discarded – undo
147 150
 
148 151
 ////
149 152
 // Output a form
153
+  /**
154
+   * @param string $name
155
+   */
150 156
   function tep_draw_form($name, $action, $method = 'post', $parameters = '', $tokenize = false) {
151 157
     global $sessiontoken;
152 158
 
@@ -197,6 +203,9 @@  discard block
 block discarded – undo
197 203
 
198 204
 ////
199 205
 // Output a selection field - alias function for tep_draw_checkbox_field() and tep_draw_radio_field()
206
+  /**
207
+   * @param string $type
208
+   */
200 209
   function tep_draw_selection_field($name, $type, $value = '', $checked = false, $parameters = '') {
201 210
     global $HTTP_GET_VARS, $HTTP_POST_VARS;
202 211
 
@@ -217,6 +226,9 @@  discard block
 block discarded – undo
217 226
 
218 227
 ////
219 228
 // Output a form checkbox field
229
+  /**
230
+   * @param string $name
231
+   */
220 232
   function tep_draw_checkbox_field($name, $value = '', $checked = false, $parameters = '') {
221 233
     return tep_draw_selection_field($name, 'checkbox', $value, $checked, $parameters);
222 234
   }
@@ -230,6 +242,10 @@  discard block
 block discarded – undo
230 242
 ////
231 243
 // Output a form textarea field
232 244
 // The $wrap parameter is no longer used in the core xhtml template
245
+  /**
246
+   * @param string $name
247
+   * @param string|false $wrap
248
+   */
233 249
   function tep_draw_textarea_field($name, $wrap, $width, $height, $text = '', $parameters = '', $reinsert_value = true) {
234 250
     global $HTTP_GET_VARS, $HTTP_POST_VARS;
235 251
 
@@ -337,6 +353,12 @@  discard block
 block discarded – undo
337 353
 
338 354
 ////
339 355
 // Output a jQuery UI Button
356
+  /**
357
+   * @param string $title
358
+   * @param string $icon
359
+   * @param string $link
360
+   * @param string $priority
361
+   */
340 362
   function tep_draw_button($title = null, $icon = null, $link = null, $priority = null, $params = null) {
341 363
     static $button_counter = 1;
342 364
 
Please login to merge, or discard this patch.
catalog/includes/apps/paypal/modules/DP/DP.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -69,6 +69,9 @@
 block discarded – undo
69 69
       return $this->doMigrationCheck($this->_pm_code) || $this->doMigrationCheck($this->_pm_pf_code);
70 70
     }
71 71
 
72
+    /**
73
+     * @param string $class
74
+     */
72 75
     function doMigrationCheck($class) {
73 76
       if ( file_exists(DIR_FS_CATALOG . 'includes/modules/payment/' . $class . '.php') ) {
74 77
         if ( !class_exists($class) ) {
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
@@ -12,6 +12,9 @@
 block discarded – undo
12 12
 
13 13
 ////
14 14
 // Sets the status of a special product
15
+  /**
16
+   * @param string $status
17
+   */
15 18
   function tep_set_specials_status($specials_id, $status) {
16 19
     return tep_db_query("update " . TABLE_SPECIALS . " set status = '" . (int)$status . "', date_status_change = now() where specials_id = '" . (int)$specials_id . "'");
17 20
   }
Please login to merge, or discard this patch.
catalog/includes/modules/payment/authorizenet_cc_dpm.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -343,6 +343,9 @@  discard block
 block discarded – undo
343 343
       return $this->_check;
344 344
     }
345 345
 
346
+    /**
347
+     * @param string $parameter
348
+     */
346 349
     function install($parameter = null) {
347 350
       $params = $this->getParams();
348 351
 
@@ -473,6 +476,9 @@  discard block
 block discarded – undo
473 476
       return $params;
474 477
     }
475 478
 
479
+    /**
480
+     * @param string $data
481
+     */
476 482
     function _hmac($key, $data) {
477 483
       if (function_exists('hash_hmac')) {
478 484
         return hash_hmac('md5', $data, $key);
Please login to merge, or discard this patch.