@@ -217,7 +217,7 @@ |
||
217 | 217 | /** |
218 | 218 | * Set access token |
219 | 219 | * |
220 | - * @param null|Tokens\Access $accessToken Access token |
|
220 | + * @param Tokens\Access $accessToken Access token |
|
221 | 221 | * |
222 | 222 | * @return $this |
223 | 223 | */ |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | $this->tokenType = $tokenType; |
52 | 52 | $this->expiresIn = $expiresIn; |
53 | 53 | $this->createdAt = new \DateTime(); |
54 | - $this->expiresAt = new \DateTime();; |
|
54 | + $this->expiresAt = new \DateTime(); ; |
|
55 | 55 | $this->expiresAt->add(new \DateInterval('PT'.$this->expiresIn.'S')); |
56 | 56 | } |
57 | 57 | |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | */ |
73 | 73 | public function isExpired() |
74 | 74 | { |
75 | - if ($this->expiresAt > new \DateTime()){ |
|
75 | + if ($this->expiresAt > new \DateTime()) { |
|
76 | 76 | return false; |
77 | 77 | } |
78 | 78 |