Passed
Push — main ( e868ec...9f95cc )
by smiley
12:00
created
src/Google.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
  * @see https://developers.google.com/identity/protocols/OAuth2ServiceAccount
21 21
  * @see https://developers.google.com/oauthplayground/
22 22
  */
23
-class Google extends OAuth2Provider implements CSRFToken{
23
+class Google extends OAuth2Provider implements CSRFToken {
24 24
 
25 25
 	public const SCOPE_EMAIL            = 'email';
26 26
 	public const SCOPE_PROFILE          = 'profile';
@@ -46,13 +46,13 @@  discard block
 block discarded – undo
46 46
 		$response = $this->request('/userinfo/v2/me');
47 47
 		$status   = $response->getStatusCode();
48 48
 
49
-		if($status === 200){
49
+		if ($status === 200) {
50 50
 			return $response;
51 51
 		}
52 52
 
53 53
 		$json = MessageUtil::decodeJSON($response);
54 54
 
55
-		if(isset($json->error, $json->error->message)){
55
+		if (isset($json->error, $json->error->message)) {
56 56
 			throw new ProviderException($json->error->message);
57 57
 		}
58 58
 
Please login to merge, or discard this patch.
src/GitLab.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,13 +33,13 @@
 block discarded – undo
33 33
 		$response = $this->request('/v4/user');
34 34
 		$status   = $response->getStatusCode();
35 35
 
36
-		if($status === 200){
36
+		if ($status === 200) {
37 37
 			return $response;
38 38
 		}
39 39
 
40 40
 		$json = MessageUtil::decodeJSON($response);
41 41
 
42
-		if(isset($json->error, $json->error_description)){
42
+		if (isset($json->error, $json->error_description)) {
43 43
 			throw new ProviderException($json->error_description);
44 44
 		}
45 45
 
Please login to merge, or discard this patch.
src/Mastodon.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 		Mastodon::SCOPE_FOLLOW,
39 39
 	];
40 40
 
41
-	protected string $instance     = '';
41
+	protected string $instance = '';
42 42
 
43 43
 	/**
44 44
 	 * set the internal URLs for the given Mastodon instance
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
 	public function setInstance(string $instance):Mastodon{
49 49
 		$instance = QueryUtil::parseUrl($instance);
50 50
 
51
-		if(!isset($instance['host'])){
51
+		if (!isset($instance['host'])) {
52 52
 			throw new OAuthException('invalid instance URL');
53 53
 		}
54 54
 
@@ -99,13 +99,13 @@  discard block
 block discarded – undo
99 99
 		$response = $this->request('/v1/accounts/verify_credentials');
100 100
 		$status   = $response->getStatusCode();
101 101
 
102
-		if($status === 200){
102
+		if ($status === 200) {
103 103
 			return $response;
104 104
 		}
105 105
 
106 106
 		$json = MessageUtil::decodeJSON($response);
107 107
 
108
-		if(isset($json->error)){
108
+		if (isset($json->error)) {
109 109
 			throw new ProviderException($json->error);
110 110
 		}
111 111
 
Please login to merge, or discard this patch.
src/Spotify.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -82,13 +82,13 @@
 block discarded – undo
82 82
 		$response = $this->request('/v1/me');
83 83
 		$status   = $response->getStatusCode();
84 84
 
85
-		if($status === 200){
85
+		if ($status === 200) {
86 86
 			return $response;
87 87
 		}
88 88
 
89 89
 		$json = MessageUtil::decodeJSON($response);
90 90
 
91
-		if(isset($json->error, $json->error->message)){
91
+		if (isset($json->error, $json->error->message)) {
92 92
 			throw new ProviderException($json->error->message);
93 93
 		}
94 94
 
Please login to merge, or discard this patch.
src/YouTube.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
 /**
14 14
  *
15 15
  */
16
-class YouTube extends Google{
16
+class YouTube extends Google {
17 17
 
18 18
 	public const SCOPE_YOUTUBE       = 'https://www.googleapis.com/auth/youtube';
19 19
 	public const SCOPE_YOUTUBE_GDATA = 'https://gdata.youtube.com';
Please login to merge, or discard this patch.
src/Discogs.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
  * @see https://www.discogs.com/developers/
21 21
  * @see https://www.discogs.com/developers/#page:authentication,header:authentication-oauth-flow
22 22
  */
23
-class Discogs extends OAuth1Provider{
23
+class Discogs extends OAuth1Provider {
24 24
 
25 25
 	protected string  $requestTokenURL = 'https://api.discogs.com/oauth/request_token';
26 26
 	protected string  $authURL         = 'https://www.discogs.com/oauth/authorize';
@@ -39,13 +39,13 @@  discard block
 block discarded – undo
39 39
 		$response = $this->request('/oauth/identity');
40 40
 		$status   = $response->getStatusCode();
41 41
 
42
-		if($status === 200){
42
+		if ($status === 200) {
43 43
 			return $response;
44 44
 		}
45 45
 
46 46
 		$json = MessageUtil::decodeJSON($response);
47 47
 
48
-		if(isset($json->message)){
48
+		if (isset($json->message)) {
49 49
 			throw new ProviderException($json->message);
50 50
 		}
51 51
 
Please login to merge, or discard this patch.
src/BigCartel.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
  * @see https://developers.bigcartel.com/api/v1
22 22
  * @see https://bigcartel.wufoo.com/confirm/big-cartel-api-application/
23 23
  */
24
-class BigCartel extends OAuth2Provider implements CSRFToken{
24
+class BigCartel extends OAuth2Provider implements CSRFToken {
25 25
 
26 26
 	protected string  $authURL        = 'https://my.bigcartel.com/oauth/authorize';
27 27
 	protected string  $accessTokenURL = 'https://api.bigcartel.com/oauth/token';
@@ -39,13 +39,13 @@  discard block
 block discarded – undo
39 39
 		$response = $this->request('/accounts');
40 40
 		$status   = $response->getStatusCode();
41 41
 
42
-		if($status === 200){
42
+		if ($status === 200) {
43 43
 			return $response;
44 44
 		}
45 45
 
46 46
 		$json = MessageUtil::decodeJSON($response);
47 47
 
48
-		if(isset($json->error)){
48
+		if (isset($json->error)) {
49 49
 			throw new ProviderException($json->error);
50 50
 		}
51 51
 
Please login to merge, or discard this patch.
src/Mixcloud.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
  *
22 22
  * @see https://www.mixcloud.com/developers/
23 23
  */
24
-class Mixcloud extends OAuth2Provider{
24
+class Mixcloud extends OAuth2Provider {
25 25
 
26 26
 	protected string  $authURL        = 'https://www.mixcloud.com/oauth/authorize';
27 27
 	protected string  $accessTokenURL = 'https://www.mixcloud.com/oauth/access_token';
@@ -38,13 +38,13 @@  discard block
 block discarded – undo
38 38
 		$response = $this->request('/me/');
39 39
 		$status   = $response->getStatusCode();
40 40
 
41
-		if($status === 200){
41
+		if ($status === 200) {
42 42
 			return $response;
43 43
 		}
44 44
 
45 45
 		$json = MessageUtil::decodeJSON($response);
46 46
 
47
-		if(isset($json->error, $json->error->message)){
47
+		if (isset($json->error, $json->error->message)) {
48 48
 			throw new ProviderException($json->error->message);
49 49
 		}
50 50
 
Please login to merge, or discard this patch.
src/DeviantArt.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,13 +51,13 @@
 block discarded – undo
51 51
 		$response = $this->request('/user/whoami');
52 52
 		$status   = $response->getStatusCode();
53 53
 
54
-		if($status === 200){
54
+		if ($status === 200) {
55 55
 			return $response;
56 56
 		}
57 57
 
58 58
 		$json = MessageUtil::decodeJSON($response);
59 59
 
60
-		if(isset($json->error, $json->error_description)){
60
+		if (isset($json->error, $json->error_description)) {
61 61
 			throw new ProviderException($json->error_description);
62 62
 		}
63 63
 
Please login to merge, or discard this patch.