Completed
Push — 23 ( 16ee8e...2cbb94 )
by Harald
08:19 queued 04:16
created
catalog/includes/apps/braintree/lib/Braintree/MultipleValueOrTextNode.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 MultipleValueOrTextNode extends MultipleValueNode
5 5
 {
6
+    /**
7
+     * @param string $name
8
+     */
6 9
     public function __construct($name)
7 10
     {
8 11
         parent::__construct($name);
Please login to merge, or discard this patch.
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/apps/paypal/OSCOM_PayPal.php 1 patch
Doc Comments   +35 added lines patch added patch discarded remove patch
@@ -18,6 +18,9 @@  discard block
 block discarded – undo
18 18
     var $_identifier = 'osCommerce_PPapp_v5';
19 19
     var $_definitions = array();
20 20
 
21
+    /**
22
+     * @param integer $result
23
+     */
21 24
     function log($module, $action, $result, $request, $response, $server, $is_ipn = false) {
22 25
       global $customer_id;
23 26
 
@@ -158,6 +161,9 @@  discard block
 block discarded – undo
158 161
       return false;
159 162
     }
160 163
 
164
+    /**
165
+     * @param string $info
166
+     */
161 167
     function getModuleInfo($module, $info) {
162 168
       $class = 'OSCOM_PayPal_' . $module;
163 169
 
@@ -172,6 +178,10 @@  discard block
 block discarded – undo
172 178
       return $m->{'_' . $info};
173 179
     }
174 180
 
181
+    /**
182
+     * @param string $module
183
+     * @param string $type
184
+     */
175 185
     function hasCredentials($module, $type = null) {
176 186
       if ( !defined('OSCOM_APP_PAYPAL_' . $module . '_STATUS') ) {
177 187
         return false;
@@ -210,6 +220,10 @@  discard block
 block discarded – undo
210 220
       return true;
211 221
     }
212 222
 
223
+    /**
224
+     * @param string $module
225
+     * @param string $type
226
+     */
213 227
     function getCredentials($module, $type) {
214 228
       if ( constant('OSCOM_APP_PAYPAL_' . $module . '_STATUS') == '1' ) {
215 229
         if ( $type == 'email') {
@@ -357,6 +371,11 @@  discard block
 block discarded – undo
357 371
     }
358 372
 
359 373
 // APP calls require $server to be "live" or "sandbox"
374
+    /**
375
+     * @param string $module
376
+     * @param string $call
377
+     * @param string $server
378
+     */
360 379
     function getApiResult($module, $call, $extra_params = null, $server = null, $is_ipn = false) {
361 380
       if ( $module == 'APP' ) {
362 381
         $function = 'OSCOM_PayPal_Api_' . $call;
@@ -383,6 +402,9 @@  discard block
 block discarded – undo
383 402
       return $result['res'];
384 403
     }
385 404
 
405
+    /**
406
+     * @param string $parameters
407
+     */
386 408
     function makeApiCall($url, $parameters = null, $headers = null) {
387 409
       $server = parse_url($url);
388 410
 
@@ -441,6 +463,10 @@  discard block
 block discarded – undo
441 463
       return $result;
442 464
     }
443 465
 
466
+    /**
467
+     * @param string $link
468
+     * @param string $type
469
+     */
444 470
     function drawButton($title = null, $link = null, $type = null, $params = null, $force_css = false) {
445 471
       $colours = array('success' => '#1cb841',
446 472
                        'error' => '#ca3c3c',
@@ -736,6 +762,9 @@  discard block
 block discarded – undo
736 762
       }
737 763
     }
738 764
 
765
+    /**
766
+     * @param string $filename
767
+     */
739 768
     public function loadLanguageFile($filename, $lang = null) {
740 769
       global $language;
741 770
 
@@ -777,6 +806,9 @@  discard block
 block discarded – undo
777 806
       }
778 807
     }
779 808
 
809
+    /**
810
+     * @param string $key
811
+     */
780 812
     function getDef($key, $values = null) {
781 813
       $def = isset($this->_definitions[$key]) ? $this->_definitions[$key] : $key;
782 814
 
@@ -847,6 +879,9 @@  discard block
 block discarded – undo
847 879
       return str_replace('/', DIRECTORY_SEPARATOR, $pathname);
848 880
     }
849 881
 // OSCOM v2.2rc2a compatibility
882
+    /**
883
+     * @return string
884
+     */
850 885
     function getIpAddress() {
851 886
       if ( function_exists('tep_get_ip_address') ) {
852 887
         return tep_get_ip_address();
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.