Passed
Branch main (d68b9c)
by smiley
09:54
created
src/Twitter/Twitter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -129,11 +129,11 @@
 block discarded – undo
129 129
  * @method \Psr\Http\Message\ResponseInterface usersSuggestionsSlugMembers(string $slug, array $params = ['lang'])
130 130
  * @method \Psr\Http\Message\ResponseInterface verifyCredentials(array $params = ['include_entities', 'skip_status'])
131 131
  */
132
-class Twitter extends OAuth1Provider{
132
+class Twitter extends OAuth1Provider {
133 133
 
134 134
 	// choose your fighter
135 135
 	/** @link https://developer.twitter.com/en/docs/basics/authentication/api-reference/authorize */
136
-	protected string $authURL         = 'https://api.twitter.com/oauth/authorize';
136
+	protected string $authURL = 'https://api.twitter.com/oauth/authorize';
137 137
 	/** @link https://developer.twitter.com/en/docs/basics/authentication/api-reference/authenticate */
138 138
 #	protected string $authURL         = 'https://api.twitter.com/oauth/authenticate';
139 139
 
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
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
  *
20 20
  * Note: the endpoints are ordered by the api docs (against any logical pattern)
21 21
  */
22
-class SpotifyEndpoints extends EndpointMap{
22
+class SpotifyEndpoints extends EndpointMap {
23 23
 
24 24
 	protected string $API_BASE = '/v1';
25 25
 
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
@@ -86,13 +86,13 @@  discard block
 block discarded – undo
86 86
 	 */
87 87
 	public function refreshAccessToken(AccessToken $token = null):AccessToken{
88 88
 
89
-		if($token === null){
89
+		if ($token === null) {
90 90
 			$token = $this->storage->getAccessToken($this->serviceName);
91 91
 		}
92 92
 
93 93
 		$refreshToken = $token->refreshToken;
94 94
 
95
-		if(empty($refreshToken)){
95
+		if (empty($refreshToken)) {
96 96
 			throw new ProviderException(
97 97
 				sprintf('no refresh token available, token expired [%s]', date('Y-m-d h:i:s A', $token->expires))
98 98
 			);
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
 
115 115
 		$newToken = $this->parseTokenResponse($this->http->sendRequest($request));
116 116
 
117
-		if(empty($newToken->refreshToken)){
117
+		if (empty($newToken->refreshToken)) {
118 118
 			$newToken->refreshToken = $refreshToken;
119 119
 		}
120 120
 
@@ -137,15 +137,15 @@  discard block
 block discarded – undo
137 137
 		$method = strtoupper($method ?? '');
138 138
 		$token  = $this->storage->getAccessToken($this->serviceName);
139 139
 
140
-		if($token->isExpired()){
140
+		if ($token->isExpired()) {
141 141
 			$token = $this->refreshAccessToken($token);
142 142
 		}
143 143
 
144
-		if(!isset($params['fmt'])){
144
+		if (!isset($params['fmt'])) {
145 145
 			$params['fmt'] = 'json';
146 146
 		}
147 147
 
148
-		if(in_array($method, ['POST', 'PUT', 'DELETE']) && !isset($params['client'])){
148
+		if (in_array($method, ['POST', 'PUT', 'DELETE']) && !isset($params['client'])) {
149 149
 			$params['client'] = $this->options->user_agent; // @codeCoverageIgnore
150 150
 		}
151 151
 
Please login to merge, or discard this patch.
src/MusicBrainz/MusicBrainzEndpoints.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
 use chillerlan\OAuth\MagicAPI\EndpointMap;
19 19
 
20
-class MusicBrainzEndpoints extends EndpointMap{
20
+class MusicBrainzEndpoints extends EndpointMap {
21 21
 
22 22
 	/**
23 23
 	 * oauth2
Please login to merge, or discard this patch.
src/OpenStreetmap/OpenStreetmap.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
 /**
21 21
  * @method \Psr\Http\Message\ResponseInterface userDetails()
22 22
  */
23
-class OpenStreetmap extends OAuth1Provider{
23
+class OpenStreetmap extends OAuth1Provider {
24 24
 
25 25
 	protected string $requestTokenURL = 'https://www.openstreetmap.org/oauth/request_token';
26 26
 	protected string $authURL         = 'https://www.openstreetmap.org/oauth/authorize';
Please login to merge, or discard this patch.
src/OpenStreetmap/OpenStreetmapEndpoints.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
 
17 17
 /**
18 18
  */
19
-class OpenStreetmapEndpoints extends EndpointMap{
19
+class OpenStreetmapEndpoints extends EndpointMap {
20 20
 
21 21
 	protected string $API_BASE = '/api/0.6';
22 22
 
Please login to merge, or discard this patch.
src/Foursquare/FoursquareEndpoints.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://developer.foursquare.com/docs
19 19
  */
20
-class FoursquareEndpoints extends EndpointMap{
20
+class FoursquareEndpoints extends EndpointMap {
21 21
 
22 22
 	protected array $me = [
23 23
 		'path'          => '/users/self',
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
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
 
15 15
 use chillerlan\OAuth\MagicAPI\EndpointMap;
16 16
 
17
-class OpenCachingEndpoints extends EndpointMap{
17
+class OpenCachingEndpoints extends EndpointMap {
18 18
 
19 19
 	/**
20 20
 	 * @link https://www.opencaching.de/okapi/services/apiref/method.html
Please login to merge, or discard this patch.
src/OpenCaching/OpenCaching.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
  * @method \Psr\Http\Message\ResponseInterface usersUser(array $params = ['fields', 'user_uuid', 'format', 'callback'])
61 61
  * @method \Psr\Http\Message\ResponseInterface usersUsers(array $params = ['user_uuids', 'fields', 'format', 'callback'])
62 62
  */
63
-class OpenCaching extends OAuth1Provider{
63
+class OpenCaching extends OAuth1Provider {
64 64
 
65 65
 	protected string $requestTokenURL = 'https://www.opencaching.de/okapi/services/oauth/request_token';
66 66
 	protected string $authURL         = 'https://www.opencaching.de/okapi/services/oauth/authorize';
Please login to merge, or discard this patch.