Completed
Pull Request — 23 (#615)
by Harald
03:18
created
catalog/includes/modules/payment/authorizenet_cc_dpm.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/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.
catalog/includes/modules/payment/stripe.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -361,6 +361,9 @@  discard block
 block discarded – undo
361 361
       return $this->_check;
362 362
     }
363 363
 
364
+    /**
365
+     * @param string $parameter
366
+     */
364 367
     function install($parameter = null) {
365 368
       $params = $this->getParams();
366 369
 
@@ -515,6 +518,9 @@  discard block
 block discarded – undo
515 518
       return $params;
516 519
     }
517 520
 
521
+    /**
522
+     * @param string $url
523
+     */
518 524
     function sendTransactionToGateway($url, $parameters = null, $curl_opts = array()) {
519 525
       $server = parse_url($url);
520 526
 
Please login to merge, or discard this patch.
catalog/includes/modules/shipping/usps.php 1 patch
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -167,19 +167,31 @@
 block discarded – undo
167 167
       $this->service = $service;
168 168
     }
169 169
 
170
+    /**
171
+     * @param double $pounds
172
+     */
170 173
     function _setWeight($pounds, $ounces=0) {
171 174
       $this->pounds = $pounds;
172 175
       $this->ounces = $ounces;
173 176
     }
174 177
 
178
+    /**
179
+     * @param string $container
180
+     */
175 181
     function _setContainer($container) {
176 182
       $this->container = $container;
177 183
     }
178 184
 
185
+    /**
186
+     * @param string $size
187
+     */
179 188
     function _setSize($size) {
180 189
       $this->size = $size;
181 190
     }
182 191
 
192
+    /**
193
+     * @param string $machinable
194
+     */
183 195
     function _setMachinable($machinable) {
184 196
       $this->machinable = $machinable;
185 197
     }
Please login to merge, or discard this patch.
catalog/install/includes/functions/database.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -162,6 +162,9 @@
 block discarded – undo
162 162
       return $link;
163 163
     }
164 164
 
165
+    /**
166
+     * @param string $charset
167
+     */
165 168
     function mysqli_set_charset($link, $charset) {
166 169
       if ( function_exists('mysql_set_charset') ) {
167 170
         return mysql_set_charset($charset, $link);
Please login to merge, or discard this patch.
catalog/includes/apps/braintree/lib/Braintree/AddressGateway.php 1 patch
Doc Comments   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -175,8 +175,7 @@  discard block
 block discarded – undo
175 175
      * customerOrId & addressId are not sent in object context.
176 176
      *
177 177
      * @access public
178
-     * @param array $transactionAttribs
179
-     * @param string $customerId
178
+     * @param string $customerOrId
180 179
      * @return Transaction
181 180
      * @throws Exception\ValidationsFailed
182 181
      * @see Address::update()
@@ -189,7 +188,7 @@  discard block
 block discarded – undo
189 188
 
190 189
     /**
191 190
      * creates a full array signature of a valid create request
192
-     * @return array gateway create request format
191
+     * @return string[] gateway create request format
193 192
      */
194 193
     public static function createSignature()
195 194
     {
@@ -202,7 +201,7 @@  discard block
 block discarded – undo
202 201
 
203 202
     /**
204 203
      * creates a full array signature of a valid update request
205
-     * @return array gateway update request format
204
+     * @return string[] gateway update request format
206 205
      */
207 206
     public static function updateSignature()
208 207
     {
Please login to merge, or discard this patch.
catalog/includes/apps/braintree/lib/Braintree/ClientTokenGateway.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,9 +51,9 @@
 block discarded – undo
51 51
      * sends the generate request to the gateway
52 52
      *
53 53
      * @ignore
54
-     * @param var $url
55 54
      * @param array $params
56
-     * @return mixed
55
+     * @param string $subPath
56
+     * @return string
57 57
      */
58 58
     public function _doGenerate($subPath, $params)
59 59
     {
Please login to merge, or discard this patch.
catalog/includes/apps/braintree/lib/Braintree/CredentialsParser.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -82,6 +82,10 @@
 block discarded – undo
82 82
         }
83 83
     }
84 84
 
85
+    /**
86
+     * @param string $credentialType
87
+     * @param string $expectedValuePrefix
88
+     */
85 89
     private function _parseClientCredential($credentialType, $value, $expectedValuePrefix)
86 90
     {
87 91
         $explodedCredential = explode('$', $value);
Please login to merge, or discard this patch.
catalog/includes/apps/braintree/lib/Braintree/CreditCardGateway.php 1 patch
Doc Comments   +8 added lines, -6 removed lines patch added patch discarded remove patch
@@ -22,6 +22,9 @@  discard block
 block discarded – undo
22 22
     private $_config;
23 23
     private $_http;
24 24
 
25
+    /**
26
+     * @param Gateway $gateway
27
+     */
25 28
     public function __construct($gateway)
26 29
     {
27 30
         $this->_gateway = $gateway;
@@ -55,7 +58,6 @@  discard block
 block discarded – undo
55 58
      *
56 59
      * @deprecated since version 2.3.0
57 60
      * @access public
58
-     * @param array $attribs
59 61
      * @return Result\Successful|Result\Error
60 62
      */
61 63
     public function createFromTransparentRedirect($queryString)
@@ -190,7 +192,6 @@  discard block
 block discarded – undo
190 192
      * create a credit on the card for the passed transaction
191 193
      *
192 194
      * @access public
193
-     * @param array $attribs
194 195
      * @return Result\Successful|Result\Error
195 196
      */
196 197
     public function credit($token, $transactionAttribs)
@@ -210,7 +211,6 @@  discard block
 block discarded – undo
210 211
      * returns a Transaction object on success
211 212
      *
212 213
      * @access public
213
-     * @param array $attribs
214 214
      * @return Transaction
215 215
      * @throws Exception\ValidationError
216 216
      */
@@ -311,7 +311,6 @@  discard block
 block discarded – undo
311 311
      *
312 312
      * @deprecated since version 2.3.0
313 313
      * @access public
314
-     * @param array $attribs
315 314
      * @return object
316 315
      */
317 316
     public function updateFromTransparentRedirect($queryString)
@@ -340,6 +339,9 @@  discard block
 block discarded – undo
340 339
         return ['makeDefault', 'verificationMerchantAccountId', 'verifyCard', 'verificationAmount', 'venmoSdkSession'];
341 340
     }
342 341
 
342
+    /**
343
+     * @param string[] $options
344
+     */
343 345
     private static function baseSignature($options)
344 346
     {
345 347
          return [
@@ -423,7 +425,6 @@  discard block
 block discarded – undo
423 425
      * verifies that a valid credit card identifier is being used
424 426
      * @ignore
425 427
      * @param string $identifier
426
-     * @param Optional $string $identifierType type of identifier supplied, default "token"
427 428
      * @throws InvalidArgumentException
428 429
      */
429 430
     private function _validateId($identifier = null, $identifierType = "token")
@@ -444,8 +445,9 @@  discard block
 block discarded – undo
444 445
      * sends the update request to the gateway
445 446
      *
446 447
      * @ignore
447
-     * @param string $url
448 448
      * @param array $params
449
+     * @param string $httpVerb
450
+     * @param string $subPath
449 451
      * @return mixed
450 452
      */
451 453
     private function _doUpdate($httpVerb, $subPath, $params)
Please login to merge, or discard this patch.