Passed
Push — main ( d473b6...58e8ad )
by smiley
11:00
created
src/Steam/SteamEndpoints.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
 
13 13
 use chillerlan\OAuth\MagicAPI\EndpointMap;
14 14
 
15
-class SteamEndpoints extends EndpointMap{
15
+class SteamEndpoints extends EndpointMap {
16 16
 
17 17
 	/*
18 18
 	 * ISteamApps
Please login to merge, or discard this patch.
src/Twitch/TwitchEndpoints.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 TwitchEndpoints extends EndpointMap{
14
+class TwitchEndpoints extends EndpointMap {
15 15
 
16 16
 	protected string $API_BASE = '/helix';
17 17
 
Please login to merge, or discard this patch.
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/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.
src/MusicBrainz/MusicBrainz.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -92,13 +92,13 @@  discard block
 block discarded – undo
92 92
 	 */
93 93
 	public function refreshAccessToken(AccessToken $token = null):AccessToken{
94 94
 
95
-		if($token === null){
95
+		if ($token === null) {
96 96
 			$token = $this->storage->getAccessToken($this->serviceName);
97 97
 		}
98 98
 
99 99
 		$refreshToken = $token->refreshToken;
100 100
 
101
-		if(empty($refreshToken)){
101
+		if (empty($refreshToken)) {
102 102
 			throw new ProviderException(
103 103
 				sprintf('no refresh token available, token expired [%s]', date('Y-m-d h:i:s A', $token->expires))
104 104
 			);
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
 
121 121
 		$newToken = $this->parseTokenResponse($this->http->sendRequest($request));
122 122
 
123
-		if(empty($newToken->refreshToken)){
123
+		if (empty($newToken->refreshToken)) {
124 124
 			$newToken->refreshToken = $refreshToken;
125 125
 		}
126 126
 
@@ -143,15 +143,15 @@  discard block
 block discarded – undo
143 143
 		$method = strtoupper($method ?? '');
144 144
 		$token  = $this->storage->getAccessToken($this->serviceName);
145 145
 
146
-		if($token->isExpired()){
146
+		if ($token->isExpired()) {
147 147
 			$this->refreshAccessToken($token);
148 148
 		}
149 149
 
150
-		if(!isset($params['fmt'])){
150
+		if (!isset($params['fmt'])) {
151 151
 			$params['fmt'] = 'json';
152 152
 		}
153 153
 
154
-		if(in_array($method, ['POST', 'PUT', 'DELETE']) && !isset($params['client'])){
154
+		if (in_array($method, ['POST', 'PUT', 'DELETE']) && !isset($params['client'])) {
155 155
 			$params['client'] = $this->options->user_agent; // @codeCoverageIgnore
156 156
 		}
157 157
 
Please login to merge, or discard this patch.