Passed
Push — main ( 129f19...5ed128 )
by smiley
31:18
created
src/Google/Google.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
 /**
22 22
  * @method \Psr\Http\Message\ResponseInterface me()
23 23
  */
24
-class Google extends OAuth2Provider implements CSRFToken{
24
+class Google extends OAuth2Provider implements CSRFToken {
25 25
 
26 26
 	public const SCOPE_EMAIL            = 'email';
27 27
 	public const SCOPE_PROFILE          = 'profile';
Please login to merge, or discard this patch.
src/Deezer/Deezer.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 /**
29 29
  * @method \Psr\Http\Message\ResponseInterface me()
30 30
  */
31
-class Deezer extends OAuth2Provider implements CSRFToken{
31
+class Deezer extends OAuth2Provider implements CSRFToken {
32 32
 
33 33
 	public const SCOPE_BASIC             = 'basic_access';
34 34
 	public const SCOPE_EMAIL             = 'email';
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 	public function getAuthURL(array $params = null, array $scopes = null):UriInterface{
54 54
 		$params = $params ?? [];
55 55
 
56
-		if(isset($params['client_secret'])){
56
+		if (isset($params['client_secret'])) {
57 57
 			unset($params['client_secret']);
58 58
 		}
59 59
 
@@ -101,15 +101,15 @@  discard block
 block discarded – undo
101 101
 	protected function parseTokenResponse(ResponseInterface $response):AccessToken{
102 102
 		parse_str(decompress_content($response), $data);
103 103
 
104
-		if(!is_array($data) || empty($data)){
104
+		if (!is_array($data) || empty($data)) {
105 105
 			throw new ProviderException('unable to parse token response');
106 106
 		}
107 107
 
108
-		if(isset($data['error_reason'])){
108
+		if (isset($data['error_reason'])) {
109 109
 			throw new ProviderException('error retrieving access token: "'.$data['error_reason'].'"');
110 110
 		}
111 111
 
112
-		if(!isset($data['access_token'])){
112
+		if (!isset($data['access_token'])) {
113 113
 			throw new ProviderException('token missing');
114 114
 		}
115 115
 
Please login to merge, or discard this patch.
src/Gitter/Gitter.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 me()
22 22
  */
23
-class Gitter extends OAuth2Provider implements CSRFToken{
23
+class Gitter extends OAuth2Provider implements CSRFToken {
24 24
 
25 25
 	public const SCOPE_FLOW    = 'flow';
26 26
 	public const SCOPE_PRIVATE = 'private';
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
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
  * @method \Psr\Http\Message\ResponseInterface me()
22 22
  * @method \Psr\Http\Message\ResponseInterface user(string $id)
23 23
  */
24
-class SoundCloud extends OAuth2Provider{
24
+class SoundCloud extends OAuth2Provider {
25 25
 
26 26
 	public const SCOPE_NONEXPIRING = 'non-expiring';
27 27
 #	public const SCOPE_EMAIL       = 'email'; // ???
Please login to merge, or discard this patch.
src/BattleNet/BattleNet.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 		OAuthStorageInterface $storage,
51 51
 		SettingsContainerInterface $options,
52 52
 		LoggerInterface $logger = null
53
-	){
53
+	) {
54 54
 		parent::__construct($http, $storage, $options, $logger);
55 55
 
56 56
 		$this->setRegion('eu');
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 	public function setRegion(string $region):BattleNet{
66 66
 		$region = strtolower($region);
67 67
 
68
-		if(!in_array($region, ['apac', 'cn', 'eu', 'us'], true)){
68
+		if (!in_array($region, ['apac', 'cn', 'eu', 'us'], true)) {
69 69
 			throw new ProviderException('invalid region: '.$region);
70 70
 		}
71 71
 
Please login to merge, or discard this patch.
src/GuildWars2/GuildWars2Endpoints.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
 
16 16
 use chillerlan\OAuth\MagicAPI\EndpointMap;
17 17
 
18
-class GuildWars2Endpoints extends EndpointMap{
18
+class GuildWars2Endpoints extends EndpointMap {
19 19
 
20 20
 	protected array $account = [
21 21
 		'path'          => '/account',
Please login to merge, or discard this patch.
src/DeviantArt/DeviantArtEndpoints.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://www.deviantart.com/developers/http/v1/20160316
19 19
  */
20
-class DeviantArtEndpoints extends EndpointMap{
20
+class DeviantArtEndpoints extends EndpointMap {
21 21
 
22 22
 	protected array $whoami = [
23 23
 		'path'          => '/user/whoami',
Please login to merge, or discard this patch.
src/Google/Youtube.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
 /**
16 16
  */
17
-class Youtube extends Google{
17
+class Youtube extends Google {
18 18
 
19 19
 	public const SCOPE_YOUTUBE       = 'https://www.googleapis.com/auth/youtube';
20 20
 	public const SCOPE_YOUTUBE_GDATA = 'https://gdata.youtube.com';
Please login to merge, or discard this patch.
src/Google/GoogleEndpoints.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 GoogleEndpoints extends EndpointMap{
19
+class GoogleEndpoints extends EndpointMap {
20 20
 
21 21
 	protected array $me = [
22 22
 		'path'          => '/userinfo/v2/me',
Please login to merge, or discard this patch.