Passed
Push — master ( 75afe1...a75cb7 )
by smiley
01:30
created
src/NPR/NPROne.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,11 +58,11 @@
 block discarded – undo
58 58
 	public function sendRequest(RequestInterface $request):ResponseInterface{
59 59
 
60 60
 		// get authorization only if we request the provider API
61
-		if(\strpos((string)$request->getUri(), '.api.npr.org/') !== false){ // silly resource subdomains >.<
61
+		if (\strpos((string)$request->getUri(), '.api.npr.org/') !== false) { // silly resource subdomains >.<
62 62
 			$token = $this->storage->getAccessToken($this->serviceName);
63 63
 
64 64
 			// attempt to refresh an expired token
65
-			if($this->options->tokenAutoRefresh && ($token->isExpired() || $token->expires === $token::EOL_UNKNOWN)){
65
+			if ($this->options->tokenAutoRefresh && ($token->isExpired() || $token->expires === $token::EOL_UNKNOWN)) {
66 66
 				$token = $this->refreshAccessToken($token); // @codeCoverageIgnore
67 67
 			}
68 68
 
Please login to merge, or discard this patch.
src/NPR/NPROneEndpoints.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
 /**
18 18
  * @link https://dev.npr.org/api/
19 19
  */
20
-class NPROneEndpoints extends EndpointMap{
20
+class NPROneEndpoints extends EndpointMap {
21 21
 
22 22
 	protected $API_BASE = 'https://'; // i hate this so much
23 23
 
Please login to merge, or discard this patch.