@@ -1064,7 +1064,7 @@ discard block |
||
1064 | 1064 | * Use strval, intval or similar methods to ensure the right type is sent. |
1065 | 1065 | * |
1066 | 1066 | * @param string $name key |
1067 | - * @param mixed $value value |
|
1067 | + * @param string $value value |
|
1068 | 1068 | * |
1069 | 1069 | * @throws KlarnaException |
1070 | 1070 | * @return void |
@@ -1505,7 +1505,7 @@ discard block |
||
1505 | 1505 | * @param string $title Article title. |
1506 | 1506 | * @param int $price Article price. |
1507 | 1507 | * @param float $vat VAT in percent, e.g. 25% is inputted as 25. |
1508 | - * @param float $discount Possible discount on article. |
|
1508 | + * @param integer $discount Possible discount on article. |
|
1509 | 1509 | * @param int $flags Options which specify the article |
1510 | 1510 | * ({@link KlarnaFlags::IS_HANDLING}) and it's price |
1511 | 1511 | * ({@link KlarnaFlags::INC_VAT}) |
@@ -2091,7 +2091,7 @@ discard block |
||
2091 | 2091 | * @throws KlarnaException if no RNO is given, or if an error is recieved |
2092 | 2092 | * from Klarna Online. |
2093 | 2093 | * |
2094 | - * @return true if the update was successful |
|
2094 | + * @return boolean if the update was successful |
|
2095 | 2095 | */ |
2096 | 2096 | public function update($rno, $clear = true) |
2097 | 2097 | { |
@@ -3989,6 +3989,7 @@ discard block |
||
3989 | 3989 | * Checks/fixes so the invNo input is valid. |
3990 | 3990 | * |
3991 | 3991 | * @param string &$invNo Invoice number. |
3992 | + * @param string $invNo |
|
3992 | 3993 | * |
3993 | 3994 | * @throws KlarnaException |
3994 | 3995 | * @return void |
@@ -4010,6 +4011,7 @@ discard block |
||
4010 | 4011 | * Checks/fixes so the quantity input is valid. |
4011 | 4012 | * |
4012 | 4013 | * @param int &$qty Quantity. |
4014 | + * @param integer $qty |
|
4013 | 4015 | * |
4014 | 4016 | * @throws KlarnaException |
4015 | 4017 | * @return void |
@@ -4049,6 +4051,7 @@ discard block |
||
4049 | 4051 | * Checks/fixes so the artNo input is valid. |
4050 | 4052 | * |
4051 | 4053 | * @param int|string &$artNo Article number. |
4054 | + * @param string $artNo |
|
4052 | 4055 | * |
4053 | 4056 | * @throws KlarnaException |
4054 | 4057 | * @return void |
@@ -4068,6 +4071,7 @@ discard block |
||
4068 | 4071 | * Checks/fixes so the credNo input is valid. |
4069 | 4072 | * |
4070 | 4073 | * @param string &$credNo Credit number. |
4074 | + * @param string $credNo |
|
4071 | 4075 | * |
4072 | 4076 | * @throws KlarnaException |
4073 | 4077 | * @return void |
@@ -4133,6 +4137,7 @@ discard block |
||
4133 | 4137 | * Checks/fixes so the VAT input is valid. |
4134 | 4138 | * |
4135 | 4139 | * @param float &$vat VAT. |
4140 | + * @param double $vat |
|
4136 | 4141 | * |
4137 | 4142 | * @throws KlarnaException |
4138 | 4143 | * @return void |
@@ -4154,6 +4159,7 @@ discard block |
||
4154 | 4159 | * Checks/fixes so the amount input is valid. |
4155 | 4160 | * |
4156 | 4161 | * @param int &$amount Amount. |
4162 | + * @param integer $amount |
|
4157 | 4163 | * |
4158 | 4164 | * @throws KlarnaException |
4159 | 4165 | * @return void |
@@ -4178,6 +4184,7 @@ discard block |
||
4178 | 4184 | * Checks/fixes so the price input is valid. |
4179 | 4185 | * |
4180 | 4186 | * @param int &$price Price. |
4187 | + * @param integer $price |
|
4181 | 4188 | * |
4182 | 4189 | * @throws KlarnaException |
4183 | 4190 | * @return void |
@@ -4215,6 +4222,7 @@ discard block |
||
4215 | 4222 | * Checks/fixes so the discount input is valid. |
4216 | 4223 | * |
4217 | 4224 | * @param float &$discount Discount amount. |
4225 | + * @param integer $discount |
|
4218 | 4226 | * |
4219 | 4227 | * @throws KlarnaException |
4220 | 4228 | * @return void |
@@ -4241,6 +4249,7 @@ discard block |
||
4241 | 4249 | * Checks/fixes so that the estoreOrderNo input is valid. |
4242 | 4250 | * |
4243 | 4251 | * @param string &$estoreOrderNo Estores order number. |
4252 | + * @param string $estoreOrderNo |
|
4244 | 4253 | * |
4245 | 4254 | * @throws KlarnaException |
4246 | 4255 | * @return void |
@@ -4264,6 +4273,7 @@ discard block |
||
4264 | 4273 | * |
4265 | 4274 | * @param string &$pno Personal number, social security number, ... |
4266 | 4275 | * @param int $enc {@link KlarnaEncoding PNO Encoding} constant. |
4276 | + * @param string $pno |
|
4267 | 4277 | * |
4268 | 4278 | * @throws KlarnaException |
4269 | 4279 | * @return void |
@@ -4346,6 +4356,7 @@ discard block |
||
4346 | 4356 | * Checks/fixes so no/number is a valid input. |
4347 | 4357 | * |
4348 | 4358 | * @param int &$no Number. |
4359 | + * @param integer $no |
|
4349 | 4360 | * |
4350 | 4361 | * @throws KlarnaException |
4351 | 4362 | * @return void |
@@ -4367,6 +4378,7 @@ discard block |
||
4367 | 4378 | * Checks/fixes so reservation number is a valid input. |
4368 | 4379 | * |
4369 | 4380 | * @param string &$rno Reservation number. |
4381 | + * @param string $rno |
|
4370 | 4382 | * |
4371 | 4383 | * @throws KlarnaException |
4372 | 4384 | * @return void |
@@ -4386,6 +4398,8 @@ discard block |
||
4386 | 4398 | * |
4387 | 4399 | * @param string &$reference Reference string. |
4388 | 4400 | * @param string &$refCode Reference code. |
4401 | + * @param string $reference |
|
4402 | + * @param string $refCode |
|
4389 | 4403 | * |
4390 | 4404 | * @throws KlarnaException |
4391 | 4405 | * @return void |
@@ -4411,6 +4425,7 @@ discard block |
||
4411 | 4425 | * Checks/fixes so that the OCR input is valid. |
4412 | 4426 | * |
4413 | 4427 | * @param string &$ocr OCR number. |
4428 | + * @param string $ocr |
|
4414 | 4429 | * |
4415 | 4430 | * @throws KlarnaException |
4416 | 4431 | * @return void |
@@ -4522,6 +4537,7 @@ discard block |
||
4522 | 4537 | /** |
4523 | 4538 | * Setter method for the version. |
4524 | 4539 | * |
4540 | + * @param string $version |
|
4525 | 4541 | * @return string |
4526 | 4542 | */ |
4527 | 4543 | public function setVersion($version) |
@@ -136,7 +136,7 @@ |
||
136 | 136 | * @param string|array $uri Specified URI to database and table. |
137 | 137 | * |
138 | 138 | * @throws KlarnaException |
139 | - * @return void |
|
139 | + * @return string[] |
|
140 | 140 | */ |
141 | 141 | protected function splitURI($uri) |
142 | 142 | { |
@@ -944,8 +944,6 @@ discard block |
||
944 | 944 | |
945 | 945 | /** |
946 | 946 | * Enables/disables the echoing to screen of the xmlrpc responses received |
947 | - * @param integer $debug values 0, 1 and 2 are supported (2 = echo sent msg too, before received response) |
|
948 | - * @access public |
|
949 | 947 | */ |
950 | 948 | function setDebug($in) |
951 | 949 | { |
@@ -1228,6 +1226,7 @@ discard block |
||
1228 | 1226 | |
1229 | 1227 | /** |
1230 | 1228 | * @access private |
1229 | + * @param integer $port |
|
1231 | 1230 | */ |
1232 | 1231 | function &sendPayloadHTTP10($msg, $server, $port, $timeout=0, |
1233 | 1232 | $username='', $password='', $authtype=1, $proxyhost='', |
@@ -1413,6 +1412,7 @@ discard block |
||
1413 | 1412 | |
1414 | 1413 | /** |
1415 | 1414 | * @access private |
1415 | + * @param integer $port |
|
1416 | 1416 | */ |
1417 | 1417 | function &sendPayloadHTTPS($msg, $server, $port, $timeout=0, $username='', |
1418 | 1418 | $password='', $authtype=1, $cert='',$certpass='', $cacert='', $cacertdir='', |
@@ -1785,6 +1785,8 @@ discard block |
||
1785 | 1785 | * Returns either an array of xmlrpcreponses, an xmlrpc error response |
1786 | 1786 | * or false (when received response does not respect valid multicall syntax) |
1787 | 1787 | * @access private |
1788 | + * @param integer $timeout |
|
1789 | + * @param string $method |
|
1788 | 1790 | */ |
1789 | 1791 | function _try_multicall($msgs, $timeout, $method) |
1790 | 1792 | { |
@@ -2003,7 +2005,7 @@ discard block |
||
2003 | 2005 | |
2004 | 2006 | /** |
2005 | 2007 | * Returns the value received by the server. |
2006 | - * @return mixed the xmlrpcval object returned by the server. Might be an xml string or php value if the response has been created by specially configured xmlrpc_client objects |
|
2008 | + * @return integer the xmlrpcval object returned by the server. Might be an xml string or php value if the response has been created by specially configured xmlrpc_client objects |
|
2007 | 2009 | * @access public |
2008 | 2010 | */ |
2009 | 2011 | function value() |
@@ -2089,7 +2091,7 @@ discard block |
||
2089 | 2091 | |
2090 | 2092 | /** |
2091 | 2093 | * @param string $meth the name of the method to invoke |
2092 | - * @param array $pars array of parameters to be paased to the method (xmlrpcval objects) |
|
2094 | + * @param integer $pars array of parameters to be paased to the method (xmlrpcval objects) |
|
2093 | 2095 | */ |
2094 | 2096 | function xmlrpcmsg($meth, $pars=0) |
2095 | 2097 | { |
@@ -2244,6 +2246,7 @@ discard block |
||
2244 | 2246 | /** |
2245 | 2247 | * Parses HTTP headers and separates them from data. |
2246 | 2248 | * @access private |
2249 | + * @param string $data |
|
2247 | 2250 | */ |
2248 | 2251 | function &parseResponseHeaders(&$data, $headers_processed=false) |
2249 | 2252 | { |
@@ -2711,7 +2714,7 @@ discard block |
||
2711 | 2714 | var $_php_class=null; |
2712 | 2715 | |
2713 | 2716 | /** |
2714 | - * @param mixed $val |
|
2717 | + * @param integer $val |
|
2715 | 2718 | * @param string $type any valid xmlrpc type name (lowercase). If null, 'string' is assumed |
2716 | 2719 | */ |
2717 | 2720 | function xmlrpcval($val=-1, $type='') |
@@ -3654,7 +3657,7 @@ discard block |
||
3654 | 3657 | * we SHOULD assume it is strictly US-ASCII. But we try to be more tolerant of unconforming (legacy?) clients/servers, |
3655 | 3658 | * which will be most probably using UTF-8 anyway... |
3656 | 3659 | * |
3657 | - * @param string $httpheaders the http Content-type header |
|
3660 | + * @param string $httpheader the http Content-type header |
|
3658 | 3661 | * @param string $xmlchunk xml content buffer |
3659 | 3662 | * @param string $encoding_prefs comma separated list of character encodings to be used as default (when mb extension is enabled) |
3660 | 3663 | * |
@@ -558,7 +558,7 @@ discard block |
||
558 | 558 | * |
559 | 559 | * @param xmlrpc_client $client an xmlrpc client set up correctly to communicate with target server |
560 | 560 | * @param string $methodname the xmlrpc method to be mapped to a php function |
561 | - * @param array $extra_options array of options that specify conversion details. valid ptions include |
|
561 | + * @param integer $extra_options array of options that specify conversion details. valid ptions include |
|
562 | 562 | * integer signum the index of the method signature to use in mapping (if method exposes many sigs) |
563 | 563 | * integer timeout timeout (in secs) to be used when executing function/calling remote method |
564 | 564 | * string protocol 'http' (default), 'http11' or 'https' |
@@ -826,6 +826,8 @@ discard block |
||
826 | 826 | * valid php code is emitted. |
827 | 827 | * Note: real spaghetti code follows... |
828 | 828 | * @access private |
829 | + * @param xmlrpc_client $client |
|
830 | + * @param string $methodname |
|
829 | 831 | */ |
830 | 832 | function build_remote_method_wrapper_code($client, $methodname, $xmlrpcfuncname, |
831 | 833 | $msig, $mdesc='', $timeout=0, $protocol='', $client_copy_mode=0, $prefix='xmlrpc', |
@@ -495,8 +495,8 @@ discard block |
||
495 | 495 | var $user_data = null; |
496 | 496 | |
497 | 497 | /** |
498 | - * @param array $dispmap the dispatch map withd efinition of exposed services |
|
499 | - * @param boolean $servicenow set to false to prevent the server from runnung upon construction |
|
498 | + * @param array $dispMap the dispatch map withd efinition of exposed services |
|
499 | + * @param boolean $serviceNow set to false to prevent the server from runnung upon construction |
|
500 | 500 | */ |
501 | 501 | function xmlrpc_server($dispMap=null, $serviceNow=true) |
502 | 502 | { |
@@ -785,7 +785,7 @@ discard block |
||
785 | 785 | |
786 | 786 | /** |
787 | 787 | * Parse http headers received along with xmlrpc request. If needed, inflate request |
788 | - * @return null on success or an xmlrpcresp |
|
788 | + * @return xmlrpcresp|null on success or an xmlrpcresp |
|
789 | 789 | * @access private |
790 | 790 | */ |
791 | 791 | function parseRequestHeaders(&$data, &$req_encoding, &$resp_encoding, &$resp_compression) |
@@ -1210,7 +1210,7 @@ discard block |
||
1210 | 1210 | |
1211 | 1211 | /** |
1212 | 1212 | * add a string to the 'internal debug message' (separate from 'user debug message') |
1213 | - * @param string $strings |
|
1213 | + * @param string $string |
|
1214 | 1214 | * @access private |
1215 | 1215 | */ |
1216 | 1216 | function debugmsg($string) |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | * @param Klarna_Checkout_ResourceInterface $resource resource |
98 | 98 | * @param array $options Options |
99 | 99 | * |
100 | - * @return mixed |
|
100 | + * @return Klarna_Checkout_HTTP_Response |
|
101 | 101 | */ |
102 | 102 | public function apply( |
103 | 103 | $method, |
@@ -284,7 +284,7 @@ discard block |
||
284 | 284 | * @param array $visited list of visited locations |
285 | 285 | * |
286 | 286 | * @throws Klarna_Checkout_Exception if 4xx or 5xx response code. |
287 | - * @return Result object containing status code and payload |
|
287 | + * @return Klarna_Checkout_HTTP_Response object containing status code and payload |
|
288 | 288 | */ |
289 | 289 | protected function handle( |
290 | 290 | $method, |
@@ -321,8 +321,7 @@ discard block |
||
321 | 321 | /** |
322 | 322 | * Logs a message |
323 | 323 | * |
324 | - * @param string $sMessage |
|
325 | - * @param bool $blIncludeDebugBacktrace |
|
324 | + * @param string $message |
|
326 | 325 | * @return void |
327 | 326 | */ |
328 | 327 | public function klarnaLog($message, $logLevelMessage=1, $mPrintableElement=null) { |
@@ -260,8 +260,7 @@ |
||
260 | 260 | /** |
261 | 261 | * Logs a message |
262 | 262 | * |
263 | - * @param string $sMessage |
|
264 | - * @param bool $blIncludeDebugBacktrace |
|
263 | + * @param string $message |
|
265 | 264 | * @return void |
266 | 265 | */ |
267 | 266 | public function klarnaLog($message, $logLevelMessage=1) { |
@@ -42,6 +42,7 @@ |
||
42 | 42 | |
43 | 43 | /** |
44 | 44 | * {@inheritdoc} |
45 | + * @param string $name |
|
45 | 46 | */ |
46 | 47 | public function get($name) |
47 | 48 | { |
@@ -29,6 +29,7 @@ discard block |
||
29 | 29 | |
30 | 30 | /** |
31 | 31 | * {@inheritdoc} |
32 | + * @param string $name |
|
32 | 33 | */ |
33 | 34 | public function get($name) |
34 | 35 | { |
@@ -573,7 +574,6 @@ discard block |
||
573 | 574 | /** |
574 | 575 | * Method checks if certain klarna order exists or not |
575 | 576 | * |
576 | - * @param string $transactionId |
|
577 | 577 | * @param string $paymentUniqueId |
578 | 578 | * @return bool |
579 | 579 | */ |
@@ -599,7 +599,6 @@ discard block |
||
599 | 599 | * Method checks if certain klarna order exists or not |
600 | 600 | * |
601 | 601 | * @param string $transactionId |
602 | - * @param string $paymentUniqueId |
|
603 | 602 | * @return bool |
604 | 603 | */ |
605 | 604 | protected function checkKlarnaOrderExistsByReservation($transactionId) { |