Completed
Pull Request — 23 (#611)
by Harald
04:45
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.
includes/apps/braintree/lib/Braintree/Result/CreditCardVerification.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
      * initializes instance properties from the keys/values of an array
51 51
      * @ignore
52 52
      * @access protected
53
-     * @param <type> $aAttribs array of properties to set - single level
53
+     * @param <type> $attributes array of properties to set - single level
54 54
      * @return void
55 55
      */
56 56
     private function _initializeFromArray($attributes)
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.