Skip to content

Commit

Permalink
Merge pull request #26 from ThePay/hotfix-2281-php-stan-error
Browse files Browse the repository at this point in the history
unnecessary condition removed
  • Loading branch information
Triplkrypl authored Sep 10, 2022
2 parents 8f22968 + de7e52e commit 728e4b5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
8 changes: 0 additions & 8 deletions src/Model/Collection/PaymentMethodCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,4 @@ public function getFiltered(PaymentMethodFilter $filter, $isRecurring = false, $

return new PaymentMethodCollection($result);
}

/**
* @return PaymentMethod
*/
public function current()
{
return parent::current();
}
}
7 changes: 1 addition & 6 deletions src/Service/ApiService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit 728e4b5

Please sign in to comment.