Passed
Push — main ( a1d9c6...449c3a )
by smiley
02:06
created
src/Spotify/SpotifyEndpoints.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 
12 12
 use chillerlan\OAuth\MagicAPI\EndpointMap;
13 13
 
14
-class SpotifyEndpoints extends EndpointMap{
14
+class SpotifyEndpoints extends EndpointMap {
15 15
 
16 16
 	protected string $API_BASE = '/v1';
17 17
 
Please login to merge, or discard this patch.
src/Vimeo/Vimeo.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@
 block discarded – undo
124 124
 	protected array $authHeaders                 = ['Accept' => 'application/vnd.vimeo.*+json;version='.self::API_VERSION];
125 125
 	protected array $apiHeaders                  = ['Accept' => 'application/vnd.vimeo.*+json;version='.self::API_VERSION];
126 126
 
127
-	protected array $defaultScopes               =  [
127
+	protected array $defaultScopes               = [
128 128
 		self::SCOPE_PRIVATE,
129 129
 		self::SCOPE_INTERACT,
130 130
 	];
Please login to merge, or discard this patch.
src/OpenCaching/OpenCachingEndpoints.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 
12 12
 use chillerlan\OAuth\MagicAPI\EndpointMap;
13 13
 
14
-class OpenCachingEndpoints extends EndpointMap{
14
+class OpenCachingEndpoints extends EndpointMap {
15 15
 
16 16
 	protected string $API_BASE = '/services';
17 17
 
Please login to merge, or discard this patch.
src/Deezer/Deezer.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
 /**
27 27
  * @method \Psr\Http\Message\ResponseInterface me()
28 28
  */
29
-class Deezer extends OAuth2Provider implements CSRFToken{
29
+class Deezer extends OAuth2Provider implements CSRFToken {
30 30
 
31 31
 	public const SCOPE_BASIC             = 'basic_access';
32 32
 	public const SCOPE_EMAIL             = 'email';
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 	public function getAuthURL(array $params = null, array $scopes = null):UriInterface{
60 60
 		$params = $params ?? [];
61 61
 
62
-		if(isset($params['client_secret'])){
62
+		if (isset($params['client_secret'])) {
63 63
 			unset($params['client_secret']);
64 64
 		}
65 65
 
@@ -107,11 +107,11 @@  discard block
 block discarded – undo
107 107
 	protected function parseTokenResponse(ResponseInterface $response):AccessToken{
108 108
 		parse_str(decompress_content($response), $data);
109 109
 
110
-		if(isset($data['error_reason'])){
110
+		if (isset($data['error_reason'])) {
111 111
 			throw new ProviderException('error retrieving access token: "'.$data['error_reason'].'"');
112 112
 		}
113 113
 
114
-		if(!isset($data['access_token'])){
114
+		if (!isset($data['access_token'])) {
115 115
 			throw new ProviderException('token missing');
116 116
 		}
117 117
 
Please login to merge, or discard this patch.
src/LastFM/LastFMEndpoints.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 
12 12
 use chillerlan\OAuth\MagicAPI\EndpointMap;
13 13
 
14
-class LastFMEndpoints extends EndpointMap{
14
+class LastFMEndpoints extends EndpointMap {
15 15
 
16 16
 	/**
17 17
 	 * Tag an album using a list of user supplied tags.
Please login to merge, or discard this patch.
src/SoundCloud/SoundCloudEndpoints.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 
12 12
 use chillerlan\OAuth\MagicAPI\EndpointMap;
13 13
 
14
-class SoundCloudEndpoints extends EndpointMap{
14
+class SoundCloudEndpoints extends EndpointMap {
15 15
 
16 16
 	/**
17 17
 	 * Returns the authenticated user’s information.
Please login to merge, or discard this patch.
src/SoundCloud/SoundCloud.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
  * @method \Psr\Http\Message\ResponseInterface usersUserIdTracks(string $user_id, array $params = ['limit', 'linked_partitioning'])
75 75
  * @method \Psr\Http\Message\ResponseInterface usersUserIdWebProfiles(string $user_id, array $params = ['limit'])
76 76
  */
77
-class SoundCloud extends OAuth2Provider{
77
+class SoundCloud extends OAuth2Provider {
78 78
 
79 79
 	public const SCOPE_NONEXPIRING = 'non-expiring';
80 80
 #	public const SCOPE_EMAIL       = 'email'; // ???
Please login to merge, or discard this patch.