Skip to content

Commit

Permalink
Merge pull request #101 from OskarStark/feature/simplify
Browse files Browse the repository at this point in the history
Enhancement: Simplify
  • Loading branch information
slunak authored Sep 17, 2024
2 parents 85ee422 + 4d720a2 commit 3d33251
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/Client/Response/ReceiptResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,13 +179,7 @@ private function processCurlResponse(string $curlResponse): void
}

$this->setLastDeliveredAt(new \DateTime('@'.$decodedCurlResponse->last_delivered_at));

if ($decodedCurlResponse->expired === 1) {
$this->setIsExpired(true);
} else {
$this->setIsExpired(false);
}

$this->setIsExpired($decodedCurlResponse->expired === 1);
$this->setExpiresAt(new \DateTime('@'.$decodedCurlResponse->expires_at));

if ($decodedCurlResponse->called_back === 1) {
Expand Down

0 comments on commit 3d33251

Please sign in to comment.