From 10ca781ad3307738d9e4a4b8a25fafa7214cf99c Mon Sep 17 00:00:00 2001 From: Daniel Date: Tue, 8 Mar 2016 08:38:28 +0100 Subject: [PATCH 1/2] remove unused var remove unused var --- src/PCStorage.php | 1 - 1 file changed, 1 deletion(-) diff --git a/src/PCStorage.php b/src/PCStorage.php index 4ee291b..e745639 100644 --- a/src/PCStorage.php +++ b/src/PCStorage.php @@ -147,7 +147,6 @@ public function getPClasses($eid, $country, $type = null) throw new Klarna_ArgumentNotSetException('country'); } - $tmp = false; if (!is_array($this->pclasses)) { return; } From 42cd5fd82dbb1e2d1733eab82cd7099441690563 Mon Sep 17 00:00:00 2001 From: Daniel Date: Tue, 8 Mar 2016 08:42:59 +0100 Subject: [PATCH 2/2] remove unused vars remove unused vars --- src/Klarna.php | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/Klarna.php b/src/Klarna.php index 040c7dc..8d1c214 100644 --- a/src/Klarna.php +++ b/src/Klarna.php @@ -3620,16 +3620,13 @@ protected function xmlrpc_call($method, $array) */ $this->xmlrpc->verifypeer = false; - $timestart = microtime(true); - - //Create the XMLRPC message. - $msg = new xmlrpcmsg($method); $params = array_merge( array( $this->PROTO, $this->VERSION ), $array ); - + + //Create the XMLRPC message. $msg = new xmlrpcmsg($method); foreach ($params as $p) { if (!$msg->addParam( @@ -3650,11 +3647,6 @@ protected function xmlrpc_call($method, $array) } $xmlrpcresp = $this->xmlrpc->send($msg); - //Calculate time and selectTime. - $timeend = microtime(true); - $time = (int) (($selectDateTime - $timestart) * 1000); - $selectTime = (int) (($timeend - $timestart) * 1000); - $status = $xmlrpcresp->faultCode(); if ($status !== 0) {