Completed
Push — 23 ( e876bd...340196 )
by Harald
18:50 queued 10:49
created
catalog/includes/apps/braintree/lib/Braintree/PaymentMethodNonceGateway.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -7,6 +7,9 @@
 block discarded – undo
7 7
     private $_config;
8 8
     private $_http;
9 9
 
10
+    /**
11
+     * @param Gateway $gateway
12
+     */
10 13
     public function __construct($gateway)
11 14
     {
12 15
         $this->_gateway = $gateway;
Please login to merge, or discard this patch.
catalog/includes/apps/braintree/lib/Braintree/RangeNode.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -3,6 +3,9 @@
 block discarded – undo
3 3
 
4 4
 class RangeNode
5 5
 {
6
+    /**
7
+     * @param string $name
8
+     */
6 9
     public function __construct($name)
7 10
     {
8 11
         $this->name = $name;
Please login to merge, or discard this patch.
catalog/includes/apps/braintree/lib/Braintree/SignatureService.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -4,12 +4,18 @@
 block discarded – undo
4 4
 class SignatureService
5 5
 {
6 6
 
7
+    /**
8
+     * @param string $digest
9
+     */
7 10
     public function __construct($key, $digest)
8 11
     {
9 12
         $this->key = $key;
10 13
         $this->digest = $digest;
11 14
     }
12 15
 
16
+    /**
17
+     * @param string $payload
18
+     */
13 19
     public function sign($payload)
14 20
     {
15 21
         return $this->hash($payload) . "|" . $payload;
Please login to merge, or discard this patch.
catalog/includes/apps/braintree/lib/Braintree/SubscriptionGateway.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -7,6 +7,9 @@
 block discarded – undo
7 7
     private $_config;
8 8
     private $_http;
9 9
 
10
+    /**
11
+     * @param Gateway $gateway
12
+     */
10 13
     public function __construct($gateway)
11 14
     {
12 15
         $this->_gateway = $gateway;
Please login to merge, or discard this patch.
catalog/includes/apps/braintree/lib/Braintree/WebhookTesting.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
 
17
+    /**
18
+     * @return string
19
+     */
17 20
     private static function _sampleXml($kind, $id)
18 21
     {
19 22
         switch ($kind) {
Please login to merge, or discard this patch.
catalog/includes/apps/paypal/modules/EC/EC.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/general.php 1 patch
Doc Comments   +36 added lines patch added patch discarded remove patch
@@ -81,6 +81,9 @@  discard block
 block discarded – undo
81 81
 
82 82
 ////
83 83
 // Return a random row from a database query
84
+  /**
85
+   * @param string $query
86
+   */
84 87
   function tep_random_select($query) {
85 88
     $random_product = '';
86 89
     $random_query = tep_db_query($query);
@@ -145,6 +148,10 @@  discard block
 block discarded – undo
145 148
 
146 149
 ////
147 150
 // Break a word in a string if it is longer than a specified length ($len)
151
+  /**
152
+   * @param string $string
153
+   * @param integer $len
154
+   */
148 155
   function tep_break_string($string, $len, $break_char = '-') {
149 156
     $l = 0;
150 157
     $output = '';
@@ -260,6 +267,9 @@  discard block
 block discarded – undo
260 267
 
261 268
 ////
262 269
 // Returns the clients browser
270
+  /**
271
+   * @param string $component
272
+   */
263 273
   function tep_browser_detect($component) {
264 274
     return stristr(getenv('HTTP_USER_AGENT'), $component);
265 275
   }
@@ -300,6 +310,9 @@  discard block
 block discarded – undo
300 310
 
301 311
 ////
302 312
 // Wrapper function for round()
313
+  /**
314
+   * @return double
315
+   */
303 316
   function tep_round($number, $precision) {
304 317
     if (strpos($number, '.') && (strlen(substr($number, strpos($number, '.')+1)) > $precision)) {
305 318
       $number = substr($number, 0, strpos($number, '.') + 1 + $precision + 1);
@@ -446,6 +459,11 @@  discard block
 block discarded – undo
446 459
 ////
447 460
 // Return a formatted address
448 461
 // TABLES: address_format
462
+  /**
463
+   * @param boolean $html
464
+   * @param string $boln
465
+   * @param string $eoln
466
+   */
449 467
   function tep_address_format($address_format_id, $address, $html, $boln, $eoln) {
450 468
     $address_format_query = tep_db_query("select address_format as format from " . TABLE_ADDRESS_FORMAT . " where address_format_id = '" . (int)$address_format_id . "'");
451 469
     $address_format = tep_db_fetch_array($address_format_query);
@@ -938,6 +956,9 @@  discard block
 block discarded – undo
938 956
 
939 957
 ////
940 958
 // Return a product ID with attributes
959
+  /**
960
+   * @param string $params
961
+   */
941 962
   function tep_get_uprid($prid, $params) {
942 963
     if (is_numeric($prid)) {
943 964
       $uprid = (int)$prid;
@@ -1034,6 +1055,11 @@  discard block
 block discarded – undo
1034 1055
 // $from_email_adress The eMail address of the sender,
1035 1056
 //                    e.g. [email protected]
1036 1057
 
1058
+  /**
1059
+   * @param string $to_name
1060
+   * @param string $email_subject
1061
+   * @param string $email_text
1062
+   */
1037 1063
   function tep_mail($to_name, $to_email_address, $email_subject, $email_text, $from_email_name, $from_email_address) {
1038 1064
     if (SEND_EMAILS != 'true') return false;
1039 1065
 
@@ -1102,6 +1128,9 @@  discard block
 block discarded – undo
1102 1128
     return tep_count_modules(MODULE_SHIPPING_INSTALLED);
1103 1129
   }
1104 1130
 
1131
+  /**
1132
+   * @param integer $length
1133
+   */
1105 1134
   function tep_create_random_value($length, $type = 'mixed') {
1106 1135
     if ( ($type != 'mixed') && ($type != 'chars') && ($type != 'digits')) $type = 'mixed';
1107 1136
 
@@ -1251,6 +1280,10 @@  discard block
 block discarded – undo
1251 1280
 
1252 1281
 ////
1253 1282
 // Return a random value
1283
+  /**
1284
+   * @param integer $min
1285
+   * @param integer $max
1286
+   */
1254 1287
   function tep_rand($min = null, $max = null) {
1255 1288
     static $seeded;
1256 1289
 
@@ -1384,6 +1417,9 @@  discard block
 block discarded – undo
1384 1417
   }
1385 1418
 
1386 1419
 // nl2br() prior PHP 4.2.0 did not convert linefeeds on all OSs (it only converted \n)
1420
+  /**
1421
+   * @param string[] $from
1422
+   */
1387 1423
   function tep_convert_linefeeds($from, $to, $string) {
1388 1424
     if ((PHP_VERSION < "4.0.5") && is_array($from)) {
1389 1425
       return preg_replace('/(' . implode('|', $from) . ')/', $to, $string);
Please login to merge, or discard this patch.
catalog/includes/modules/payment/braintree_cc.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -1273,6 +1273,9 @@
 block discarded – undo
1273 1273
       return $js;
1274 1274
     }
1275 1275
 
1276
+    /**
1277
+     * @param string $type
1278
+     */
1276 1279
     function isPaymentTypeAccepted($type) {
1277 1280
       return in_array($type, $this->payment_types);
1278 1281
     }
Please login to merge, or discard this patch.
includes/apps/braintree/lib/Braintree/Result/CreditCardVerification.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
      * initializes instance properties from the keys/values of an array
64 64
      * @ignore
65 65
      * @access protected
66
-     * @param <type> $aAttribs array of properties to set - single level
66
+     * @param <type> $attributes array of properties to set - single level
67 67
      * @return void
68 68
      */
69 69
     private function _initializeFromArray($attributes)
Please login to merge, or discard this patch.