Passed
Push — main ( a1d9c6...449c3a )
by smiley
02:06
created
src/Tumblr/Tumblr.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
  * @method \Psr\Http\Message\ResponseInterface me()
21 21
  */
22
-class Tumblr extends OAuth1Provider{
22
+class Tumblr extends OAuth1Provider {
23 23
 
24 24
 	protected string $requestTokenURL = 'https://www.tumblr.com/oauth/request_token';
25 25
 	protected string $authURL         = 'https://www.tumblr.com/oauth/authorize';
Please login to merge, or discard this patch.
src/Amazon/AmazonEndpoints.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 AmazonEndpoints extends EndpointMap{
19
+class AmazonEndpoints extends EndpointMap {
20 20
 
21 21
 	protected array $userProfile = [
22 22
 		'path'          => '/user/profile',
Please login to merge, or discard this patch.
src/GitHub/GitHubEndpoints.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
  * @todo
21 21
  */
22
-class GitHubEndpoints extends EndpointMap{
22
+class GitHubEndpoints extends EndpointMap {
23 23
 
24 24
 	/**
25 25
 	 * @link https://developer.github.com/v3/users/#get-the-authenticated-user
Please login to merge, or discard this patch.
src/Deezer/DeezerEndpoints.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://developers.deezer.com/api/
19 19
  */
20
-class DeezerEndpoints extends EndpointMap{
20
+class DeezerEndpoints extends EndpointMap {
21 21
 
22 22
 	protected array $me = [
23 23
 		'path'          => '/user/me',
Please login to merge, or discard this patch.
src/Gitter/GitterEndpoints.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.gitter.im/docs/rest-api
19 19
  */
20
-class GitterEndpoints extends EndpointMap{
20
+class GitterEndpoints extends EndpointMap {
21 21
 
22 22
 	protected array $me = [
23 23
 		'path'          => '/user/me',
Please login to merge, or discard this patch.
src/Mastodon/MastodonEndpoints.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://github.com/tootsuite/documentation/blob/master/Using-the-API/API.md
19 19
  */
20
-class MastodonEndpoints extends EndpointMap{
20
+class MastodonEndpoints extends EndpointMap {
21 21
 
22 22
 	protected array $getCurrentUser = [
23 23
 		'path'          => '/v1/accounts/verify_credentials',
Please login to merge, or discard this patch.
src/Twitter/TwitterEndpoints.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
  *
20 20
  * Note: the endpoints are ordered by the api docs (against any logical pattern)
21 21
  */
22
-class TwitterEndpoints extends EndpointMap{
22
+class TwitterEndpoints extends EndpointMap {
23 23
 
24 24
 	/**
25 25
 	 * 1 Basics
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
 		'method'        => 'POST',
124 124
 		'query'         => [],
125 125
 		'path_elements' => [],
126
-		'body'          => ['name', 'url', 'location', 'description', 'profile_link_color', 'include_entities', 'skip_status',],
126
+		'body'          => ['name', 'url', 'location', 'description', 'profile_link_color', 'include_entities', 'skip_status', ],
127 127
 		'headers'       => [],
128 128
 	];
129 129
 
@@ -415,7 +415,7 @@  discard block
 block discarded – undo
415 415
 	protected array $friendshipsShow = [
416 416
 		'path'          => '/friendships/show.json',
417 417
 		'method'        => 'GET',
418
-		'query'         => ['source_id', 'source_screen_name', 'target_id', 'target_screen_name',],
418
+		'query'         => ['source_id', 'source_screen_name', 'target_id', 'target_screen_name', ],
419 419
 		'path_elements' => [],
420 420
 		'body'          => null,
421 421
 		'headers'       => [],
Please login to merge, or discard this patch.
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/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.