Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
Nielsvanpach authored and actions-user committed Dec 2, 2020
1 parent b8a57af commit e65eb3b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/BaseUrlSigner.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,11 @@ public function validate($url)

$expiration = $query[$this->expiresParameter];

if (!$this->isFuture($expiration)) {
if (! $this->isFuture($expiration)) {
return false;
}

if (!$this->hasValidSignature($url)) {
if (! $this->hasValidSignature($url)) {
return false;
}

Expand All @@ -128,11 +128,11 @@ public function validate($url)
*/
protected function isMissingAQueryParameter(array $query)
{
if (!isset($query[$this->expiresParameter])) {
if (! isset($query[$this->expiresParameter])) {
return true;
}

if (!isset($query[$this->signatureParameter])) {
if (! isset($query[$this->signatureParameter])) {
return true;
}

Expand Down Expand Up @@ -185,11 +185,11 @@ protected function getExpirationTimestamp($expiration)
$expiration = (new DateTime())->modify((int) $expiration.' days');
}

if (!$expiration instanceof DateTime) {
if (! $expiration instanceof DateTime) {
throw new InvalidExpiration('Expiration date must be an instance of DateTime or an integer');
}

if (!$this->isFuture($expiration->getTimestamp())) {
if (! $this->isFuture($expiration->getTimestamp())) {
throw new InvalidExpiration('Expiration date must be in the future');
}

Expand Down

0 comments on commit e65eb3b

Please sign in to comment.