Completed
Pull Request — 23 (#431)
by Harald
05:50
created
catalog/includes/functions/sessions.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -91,6 +91,9 @@  discard block
 block discarded – undo
91 91
     return session_start();
92 92
   }
93 93
 
94
+  /**
95
+   * @param string $variable
96
+   */
94 97
   function tep_session_register($variable) {
95 98
     if (!isset($GLOBALS[$variable])) {
96 99
       $GLOBALS[$variable] = null;
@@ -101,10 +104,16 @@  discard block
 block discarded – undo
101 104
     return false;
102 105
   }
103 106
 
107
+  /**
108
+   * @param string $variable
109
+   */
104 110
   function tep_session_is_registered($variable) {
105 111
     return isset($_SESSION) && array_key_exists($variable, $_SESSION);
106 112
   }
107 113
 
114
+  /**
115
+   * @param string $variable
116
+   */
108 117
   function tep_session_unregister($variable) {
109 118
     unset($_SESSION[$variable]);
110 119
   }
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
@@ -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/content/login/cm_paypal_login.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -312,6 +312,9 @@
 block discarded – undo
312 312
       return array('OSCOM_APP_PAYPAL_LOGIN_CONTENT_WIDTH', 'OSCOM_APP_PAYPAL_LOGIN_SORT_ORDER');
313 313
     }
314 314
 
315
+    /**
316
+     * @param string $attribute
317
+     */
315 318
     function hasAttribute($attribute) {
316 319
       return in_array($attribute, explode(';', OSCOM_APP_PAYPAL_LOGIN_ATTRIBUTES));
317 320
     }
Please login to merge, or discard this patch.
catalog/includes/modules/payment/authorizenet_cc_aim.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -436,6 +436,9 @@  discard block
 block discarded – undo
436 436
       return $this->_check;
437 437
     }
438 438
 
439
+    /**
440
+     * @param string $parameter
441
+     */
439 442
     function install($parameter = null) {
440 443
       $params = $this->getParams();
441 444
 
@@ -598,6 +601,10 @@  discard block
 block discarded – undo
598 601
       return md5($k_opad . pack("H*",md5($k_ipad . $data)));
599 602
     }
600 603
 
604
+    /**
605
+     * @param string $url
606
+     * @param string $parameters
607
+     */
601 608
     function sendTransactionToGateway($url, $parameters) {
602 609
       $server = parse_url($url);
603 610
 
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
@@ -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.
catalog/includes/modules/payment/inpay.php 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -587,6 +587,11 @@
 block discarded – undo
587 587
         }
588 588
         return $this->_check;
589 589
     }
590
+
591
+    /**
592
+     * @param string $order_status
593
+     * @param boolean $set_to_public
594
+     */
590 595
     function set_order_status($order_status, $set_to_public)
591 596
     {
592 597
         $status_id = 0;
Please login to merge, or discard this patch.
catalog/includes/modules/payment/moneybookers.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -647,6 +647,10 @@
 block discarded – undo
647 647
       return number_format(tep_round($number * $currency_value, $currencies->currencies[$currency_code]['decimal_places']), $currencies->currencies[$currency_code]['decimal_places'], '.', '');
648 648
     }
649 649
 
650
+    /**
651
+     * @param string $url
652
+     * @param string $parameters
653
+     */
650 654
     function sendTransactionToGateway($url, $parameters, $with_headers = false) {
651 655
       $server = parse_url($url);
652 656
 
Please login to merge, or discard this patch.
catalog/includes/modules/payment/rbsworldpay_hosted.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -32,6 +32,9 @@
 block discarded – undo
32 32
         return parent::bindValue($parameter, $value, $data_type);
33 33
     }
34 34
 
35
+    /**
36
+     * @param string $parameter
37
+     */
35 38
     public function bindInt($parameter, $value)
36 39
     {
37 40
 // force type to int (see http://bugs.php.net/bug.php?id=44639)
Please login to merge, or discard this patch.
catalog/includes/modules/payment/sage_pay_server.php 1 patch
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -329,6 +329,9 @@  discard block
 block discarded – undo
329 329
       return $this->_check;
330 330
     }
331 331
 
332
+    /**
333
+     * @param string $parameter
334
+     */
332 335
     function install($parameter = null) {
333 336
       $params = $this->getParams();
334 337
 
@@ -474,6 +477,10 @@  discard block
 block discarded – undo
474 477
       return $params;
475 478
     }
476 479
 
480
+    /**
481
+     * @param string $url
482
+     * @param string $parameters
483
+     */
477 484
     function sendTransactionToGateway($url, $parameters) {
478 485
       $server = parse_url($url);
479 486
 
@@ -578,6 +585,9 @@  discard block
 block discarded – undo
578 585
       return (is_numeric($number) && isset($this->_error_messages[$number]));
579 586
     }
580 587
 
588
+    /**
589
+     * @param null|string $url
590
+     */
581 591
     function formatURL($url) {
582 592
       return str_replace('&', '&', $url);
583 593
     }
Please login to merge, or discard this patch.