Skip to content

Commit

Permalink
make whitespace optional
Browse files Browse the repository at this point in the history
  • Loading branch information
bshaffer committed Sep 15, 2023
1 parent 89e54af commit eb3aceb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/AccessToken.php
Original file line number Diff line number Diff line change
Expand Up @@ -372,10 +372,10 @@ private function retrieveCertsFromLocation($url, array $options = [])
if ($cacheControl = $response->getHeaderLine('Cache-Control')) {
array_map(function ($value) use (&$expireTime) {
list($key, $value) = explode('=', $value) + [null, null];
if ($key == 'max-age') {
if (trim($key) == 'max-age') {
$expireTime = '+' . $value . ' seconds';
}
}, explode(', ', $cacheControl));
}, explode(',', $cacheControl));
}
return [
json_decode((string) $response->getBody(), true),
Expand Down

0 comments on commit eb3aceb

Please sign in to comment.