Completed
Push — 2341 ( 94e9e9 )
by Harald
18:30
created
catalog/includes/functions/html_output.php 1 patch
Doc Comments   +25 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,12 +226,18 @@  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
   }
223 235
 
224 236
 ////
225 237
 // Output a form radio field
238
+  /**
239
+   * @param string $name
240
+   */
226 241
   function tep_draw_radio_field($name, $value = '', $checked = false, $parameters = '') {
227 242
     return tep_draw_selection_field($name, 'radio', $value, $checked, $parameters);
228 243
   }
@@ -230,6 +245,10 @@  discard block
 block discarded – undo
230 245
 ////
231 246
 // Output a form textarea field
232 247
 // The $wrap parameter is no longer used in the core xhtml template
248
+  /**
249
+   * @param string $name
250
+   * @param string|false $wrap
251
+   */
233 252
   function tep_draw_textarea_field($name, $wrap, $width, $height, $text = '', $parameters = '', $reinsert_value = true) {
234 253
     global $HTTP_GET_VARS, $HTTP_POST_VARS;
235 254
 
@@ -337,6 +356,12 @@  discard block
 block discarded – undo
337 356
 
338 357
 ////
339 358
 // Output a jQuery UI Button
359
+  /**
360
+   * @param string $title
361
+   * @param string $icon
362
+   * @param string $link
363
+   * @param string $priority
364
+   */
340 365
   function tep_draw_button($title = null, $icon = null, $link = null, $priority = null, $params = null) {
341 366
     static $button_counter = 1;
342 367
 
Please login to merge, or discard this patch.
catalog/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
     global $session_started;
108 111
 
@@ -121,6 +124,9 @@  discard block
 block discarded – undo
121 124
     return false;
122 125
   }
123 126
 
127
+  /**
128
+   * @param string $variable
129
+   */
124 130
   function tep_session_is_registered($variable) {
125 131
     if (PHP_VERSION < 4.3) {
126 132
       return session_is_registered($variable);
@@ -129,6 +135,9 @@  discard block
 block discarded – undo
129 135
     }
130 136
   }
131 137
 
138
+  /**
139
+   * @param string $variable
140
+   */
132 141
   function tep_session_unregister($variable) {
133 142
     if (PHP_VERSION < 4.3) {
134 143
       return session_unregister($variable);
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
@@ -44,6 +44,10 @@
 block discarded – undo
44 44
     }
45 45
   }
46 46
 
47
+  /**
48
+   * @param string $old_id
49
+   * @param string $new_id
50
+   */
47 51
   function tep_whos_online_update_session_id($old_id, $new_id) {
48 52
     tep_db_query("update " . TABLE_WHOS_ONLINE . " set session_id = '" . tep_db_input($new_id) . "' where session_id = '" . tep_db_input($old_id) . "'");
49 53
   }
Please login to merge, or discard this patch.
catalog/includes/modules/content/login/cm_paypal_login.php 1 patch
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -300,6 +300,9 @@  discard block
 block discarded – undo
300 300
       return defined('MODULE_CONTENT_PAYPAL_LOGIN_STATUS');
301 301
     }
302 302
 
303
+    /**
304
+     * @param string $parameter
305
+     */
303 306
     function install($parameter = null) {
304 307
       $params = $this->getParams();
305 308
 
@@ -389,6 +392,10 @@  discard block
 block discarded – undo
389 392
       return $params;
390 393
     }
391 394
 
395
+    /**
396
+     * @param string $url
397
+     * @param string $parameters
398
+     */
392 399
     function sendRequest($url, $parameters = null) {
393 400
       $server = parse_url($url);
394 401
 
@@ -617,6 +624,9 @@  discard block
 block discarded – undo
617 624
       return $info;
618 625
     }
619 626
 
627
+    /**
628
+     * @param string $attribute
629
+     */
620 630
     function hasAttribute($attribute) {
621 631
       return in_array($attribute, explode(';', MODULE_CONTENT_PAYPAL_LOGIN_ATTRIBUTES));
622 632
     }
Please login to merge, or discard this patch.
catalog/includes/modules/payment/authorizenet_cc_sim.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -387,6 +387,9 @@  discard block
 block discarded – undo
387 387
       return $this->_check;
388 388
     }
389 389
 
390
+    /**
391
+     * @param string $parameter
392
+     */
390 393
     function install($parameter = null) {
391 394
       $params = $this->getParams();
392 395
 
@@ -517,6 +520,9 @@  discard block
 block discarded – undo
517 520
       return $params;
518 521
     }
519 522
 
523
+    /**
524
+     * @param string $data
525
+     */
520 526
     function _hmac($key, $data) {
521 527
       if (function_exists('hash_hmac')) {
522 528
         return hash_hmac('md5', $data, $key);
Please login to merge, or discard this patch.
catalog/includes/modules/payment/braintree_cc.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -497,6 +497,9 @@  discard block
 block discarded – undo
497 497
       return $this->_check;
498 498
     }
499 499
 
500
+    /**
501
+     * @param string $parameter
502
+     */
500 503
     function install($parameter = null) {
501 504
       $params = $this->getParams();
502 505
 
@@ -665,6 +668,9 @@  discard block
 block discarded – undo
665 668
       return number_format(tep_round($number * $currency_value, $currencies->currencies[$currency_code]['decimal_places']), $currencies->currencies[$currency_code]['decimal_places'], '.', '');
666 669
     }
667 670
 
671
+    /**
672
+     * @return string
673
+     */
668 674
     function getTransactionCurrency() {
669 675
       global $currency;
670 676
 
Please login to merge, or discard this patch.
catalog/includes/modules/payment/paypal_express.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -289,6 +289,9 @@  discard block
 block discarded – undo
289 289
       return $this->_check;
290 290
     }
291 291
 
292
+    /**
293
+     * @param string $parameter
294
+     */
292 295
     function install($parameter = null) {
293 296
       $params = $this->getParams();
294 297
 
@@ -433,6 +436,10 @@  discard block
 block discarded – undo
433 436
       return $params;
434 437
     }
435 438
 
439
+    /**
440
+     * @param string $url
441
+     * @param string $parameters
442
+     */
436 443
     function sendTransactionToGateway($url, $parameters) {
437 444
       $server = parse_url($url);
438 445
 
Please login to merge, or discard this patch.
catalog/includes/modules/payment/paypal_pro_dp.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -321,6 +321,9 @@  discard block
 block discarded – undo
321 321
       return $this->_check;
322 322
     }
323 323
 
324
+    /**
325
+     * @param string $parameter
326
+     */
324 327
     function install($parameter = null) {
325 328
       $params = $this->getParams();
326 329
 
@@ -468,6 +471,10 @@  discard block
 block discarded – undo
468 471
       return $params;
469 472
     }
470 473
 
474
+    /**
475
+     * @param string $url
476
+     * @param string $parameters
477
+     */
471 478
     function sendTransactionToGateway($url, $parameters) {
472 479
       $server = parse_url($url);
473 480
 
Please login to merge, or discard this patch.
catalog/includes/modules/payment/paypal_pro_hs.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -627,6 +627,9 @@  discard block
 block discarded – undo
627 627
       return $this->_check;
628 628
     }
629 629
 
630
+    /**
631
+     * @param string $parameter
632
+     */
630 633
     function install($parameter = null) {
631 634
       $params = $this->getParams();
632 635
 
@@ -791,6 +794,9 @@  discard block
 block discarded – undo
791 794
       return $params;
792 795
     }
793 796
 
797
+    /**
798
+     * @param string $parameters
799
+     */
794 800
     function sendTransactionToGateway($url, $parameters) {
795 801
       $server = parse_url($url);
796 802
 
Please login to merge, or discard this patch.