Passed
Push — main ( d473b6...58e8ad )
by smiley
11:00
created
src/Flickr/Flickr.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -243,7 +243,7 @@
 block discarded – undo
243 243
  * @method \Psr\Http\Message\ResponseInterface urlsLookupGroup(array $params = ['url'])
244 244
  * @method \Psr\Http\Message\ResponseInterface urlsLookupUser(array $params = ['url'])
245 245
  */
246
-class Flickr extends OAuth1Provider{
246
+class Flickr extends OAuth1Provider {
247 247
 
248 248
 	public const PERM_READ   = 'read';
249 249
 	public const PERM_WRITE  = 'write';
Please login to merge, or discard this patch.
src/Twitter/TwitterCC.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -132,7 +132,7 @@
 block discarded – undo
132 132
  * @method \Psr\Http\Message\ResponseInterface usersSuggestionsSlugMembers(string $slug, array $params = ['lang'])
133 133
  * @method \Psr\Http\Message\ResponseInterface verifyCredentials(array $params = ['include_entities', 'skip_status'])
134 134
  */
135
-class TwitterCC extends OAuth2Provider implements ClientCredentials{
135
+class TwitterCC extends OAuth2Provider implements ClientCredentials {
136 136
 
137 137
 	protected const AUTH_ERRMSG = 'TwitterCC only supports Client Credentials Grant, use the Twitter OAuth1 class for authentication instead.';
138 138
 
Please login to merge, or discard this patch.
src/Microsoft/MicrosoftGraph.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
  * @method \Psr\Http\Message\ResponseInterface me()
19 19
  */
20
-class MicrosoftGraph extends AzureActiveDirectory{
20
+class MicrosoftGraph extends AzureActiveDirectory {
21 21
 
22 22
 	public const SCOPE_USER_READ = 'User.Read';
23 23
 	public const SCOPE_USER_READBASIC_ALL = 'User.ReadBasic.All';
Please login to merge, or discard this patch.
src/functions.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -14,22 +14,22 @@
 block discarded – undo
14 14
 
15 15
 use function function_exists, hash, realpath, str_replace, strlen, substr;
16 16
 
17
-if(!function_exists(__NAMESPACE__.'\\getProviders')){
17
+if (!function_exists(__NAMESPACE__.'\\getProviders')) {
18 18
 
19 19
 	function getProviders():array{
20 20
 		$providers = [];
21 21
 
22 22
 		/** @var \SplFileInfo $e */
23
-		foreach(new RecursiveIteratorIterator(new RecursiveDirectoryIterator(__DIR__, FilesystemIterator::SKIP_DOTS)) as $e){
23
+		foreach (new RecursiveIteratorIterator(new RecursiveDirectoryIterator(__DIR__, FilesystemIterator::SKIP_DOTS)) as $e) {
24 24
 
25
-			if($e->getExtension() !== 'php' || realpath($e->getPath()) === __DIR__){
25
+			if ($e->getExtension() !== 'php' || realpath($e->getPath()) === __DIR__) {
26 26
 				continue;
27 27
 			}
28 28
 
29 29
 			$class = __NAMESPACE__.str_replace('/', '\\', substr($e->getPathname(), strlen(__DIR__), -4));
30 30
 			$r     = new ReflectionClass($class);
31 31
 
32
-			if(!$r->implementsInterface(OAuthInterface::class) || $r->isAbstract()){
32
+			if (!$r->implementsInterface(OAuthInterface::class) || $r->isAbstract()) {
33 33
 				continue;
34 34
 			}
35 35
 
Please login to merge, or discard this patch.
src/Microsoft/AzureActiveDirectory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
 
19 19
 /**
20 20
  */
21
-abstract class AzureActiveDirectory extends OAuth2Provider implements CSRFToken{
21
+abstract class AzureActiveDirectory extends OAuth2Provider implements CSRFToken {
22 22
 
23 23
 	public const SCOPE_OPENID         = 'openid';
24 24
 	public const SCOPE_OPENID_EMAIL   = 'email';
Please login to merge, or discard this patch.
src/Amazon/Amazon.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
 namespace chillerlan\OAuth\Providers\Amazon;
18 18
 
19
-use chillerlan\OAuth\Core\{CSRFToken, OAuth2Provider, TokenRefresh,};
19
+use chillerlan\OAuth\Core\{CSRFToken, OAuth2Provider, TokenRefresh, };
20 20
 
21 21
 /**
22 22
  * @method \Psr\Http\Message\ResponseInterface userProfile()
Please login to merge, or discard this patch.
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/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/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.