diff --git a/src/Endpoints/BalanceEndpoint.php b/src/Endpoints/BalanceEndpoint.php index 0c701304..b6047ae7 100644 --- a/src/Endpoints/BalanceEndpoint.php +++ b/src/Endpoints/BalanceEndpoint.php @@ -5,7 +5,6 @@ use Mollie\Api\Exceptions\ApiException; use Mollie\Api\Resources\Balance; use Mollie\Api\Resources\BalanceCollection; -use Mollie\Api\Resources\BaseCollection; use Mollie\Api\Resources\LazyCollection; class BalanceEndpoint extends CollectionRestEndpoint diff --git a/src/Endpoints/OrderLineEndpoint.php b/src/Endpoints/OrderLineEndpoint.php index 6fd243ee..15977260 100644 --- a/src/Endpoints/OrderLineEndpoint.php +++ b/src/Endpoints/OrderLineEndpoint.php @@ -109,7 +109,7 @@ public function cancelFor(Order $order, array $data): void */ public function cancelForId(string $orderId, array $data): void { - if (!isset($data['lines']) || !is_array($data['lines'])) { + if (! isset($data['lines']) || ! is_array($data['lines'])) { throw new ApiException("A lines array is required."); } $this->parentId = $orderId; diff --git a/src/Endpoints/RestEndpoint.php b/src/Endpoints/RestEndpoint.php index 18084123..7bd23e99 100644 --- a/src/Endpoints/RestEndpoint.php +++ b/src/Endpoints/RestEndpoint.php @@ -65,7 +65,7 @@ protected function rest_update(string $id, array $body = []): ?BaseResource */ protected function rest_read(string $id, array $filters): BaseResource { - if (!$this instanceof SingleResourceEndpoint && empty($id)) { + if (! $this instanceof SingleResourceEndpoint && empty($id)) { throw new ApiException("Invalid resource id."); } diff --git a/src/Endpoints/SubscriptionEndpoint.php b/src/Endpoints/SubscriptionEndpoint.php index 44aa4846..79e1a8ac 100644 --- a/src/Endpoints/SubscriptionEndpoint.php +++ b/src/Endpoints/SubscriptionEndpoint.php @@ -5,7 +5,6 @@ use Mollie\Api\Exceptions\ApiException; use Mollie\Api\Resources\Customer; use Mollie\Api\Resources\LazyCollection; -use Mollie\Api\Resources\ResourceFactory; use Mollie\Api\Resources\Subscription; use Mollie\Api\Resources\SubscriptionCollection;