diff --git a/src/Model/Collection/PaymentMethodCollection.php b/src/Model/Collection/PaymentMethodCollection.php index a6156d5..81e2ede 100644 --- a/src/Model/Collection/PaymentMethodCollection.php +++ b/src/Model/Collection/PaymentMethodCollection.php @@ -100,12 +100,4 @@ public function getFiltered(PaymentMethodFilter $filter, $isRecurring = false, $ return new PaymentMethodCollection($result); } - - /** - * @return PaymentMethod - */ - public function current() - { - return parent::current(); - } } diff --git a/src/Service/ApiService.php b/src/Service/ApiService.php index 4531059..0af8307 100644 --- a/src/Service/ApiService.php +++ b/src/Service/ApiService.php @@ -455,13 +455,8 @@ private function url($path = array(), $arguments = array(), $includeProject = tr $apiUrl = $this->config->getApiUrl(); $pathImploded = substr($pathImploded, 0, -1); - $argsPath = ''; - if ($arguments) { - $argsPath .= '?' . http_build_query($arguments); - } - - return $apiUrl . $pathImploded . $argsPath; + return $apiUrl . $pathImploded . '?' . http_build_query($arguments); } /**