@@ -12,7 +12,7 @@ discard block |
||
12 | 12 | |
13 | 13 | namespace chillerlan\OAuth; |
14 | 14 | |
15 | -trait OAuthOptionsTrait{ |
|
15 | +trait OAuthOptionsTrait { |
|
16 | 16 | |
17 | 17 | /** |
18 | 18 | * @var string |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | /** |
77 | 77 | * @var string |
78 | 78 | */ |
79 | - protected $dbLabelFormat = '%1$s@%2$s'; // user@service |
|
79 | + protected $dbLabelFormat = '%1$s@%2$s'; // user@service |
|
80 | 80 | |
81 | 81 | /** |
82 | 82 | * @var int|string |
@@ -12,4 +12,4 @@ |
||
12 | 12 | |
13 | 13 | namespace chillerlan\OAuth; |
14 | 14 | |
15 | -class OAuthException extends \Exception{} |
|
15 | +class OAuthException extends \Exception {} |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | * @property string $ca_info |
56 | 56 | * @property int $max_redirects |
57 | 57 | */ |
58 | -class OAuthOptions implements ContainerInterface{ |
|
58 | +class OAuthOptions implements ContainerInterface { |
|
59 | 59 | use OAuthOptionsTrait, HTTPOptionsTrait, MemzeroDestructorTrait, Container{ |
60 | 60 | __construct as protected containerConstruct; |
61 | 61 | } |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | * |
66 | 66 | * @param array|null $properties |
67 | 67 | */ |
68 | - public function __construct(array $properties = null){ |
|
68 | + public function __construct(array $properties = null) { |
|
69 | 69 | // enable encryption by default if possible... |
70 | 70 | $this->useEncryption = extension_loaded('sodium'); |
71 | 71 |
@@ -17,7 +17,7 @@ |
||
17 | 17 | /** |
18 | 18 | * |
19 | 19 | */ |
20 | -class OAuth1Testprovider extends OAuth1Provider{ |
|
20 | +class OAuth1Testprovider extends OAuth1Provider { |
|
21 | 21 | |
22 | 22 | protected $apiURL = 'https://api.example.com'; |
23 | 23 | protected $requestTokenURL = 'https://example.com/oauth/request_token'; |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | ]; |
60 | 60 | |
61 | 61 | /** @var \chillerlan\Traits\ContainerInterface $options */ |
62 | -$options = new class($options_arr) extends OAuthOptions{ |
|
62 | +$options = new class($options_arr) extends OAuthOptions { |
|
63 | 63 | use DatabaseOptionsTrait, LogOptionsTrait; |
64 | 64 | }; |
65 | 65 | |
@@ -67,11 +67,11 @@ discard block |
||
67 | 67 | $logger->addInstance(new ConsoleLog($options), 'console'); |
68 | 68 | |
69 | 69 | /** @var \chillerlan\HTTP\HTTPClientInterface $http */ |
70 | -$http = new class($options) extends HTTPClientAbstract{ |
|
70 | +$http = new class($options) extends HTTPClientAbstract { |
|
71 | 71 | |
72 | 72 | protected $client; |
73 | 73 | |
74 | - public function __construct(ContainerInterface $options){ |
|
74 | + public function __construct(ContainerInterface $options) { |
|
75 | 75 | parent::__construct($options); |
76 | 76 | $this->client = new TinyCurlClient($this->options, new Request($this->options)); |
77 | 77 | } |
@@ -19,7 +19,7 @@ |
||
19 | 19 | * @property string $serviceName |
20 | 20 | * @property string $userRevokeURL |
21 | 21 | */ |
22 | -interface OAuthInterface{ |
|
22 | +interface OAuthInterface { |
|
23 | 23 | |
24 | 24 | /** |
25 | 25 | * @param array $params |
@@ -12,6 +12,6 @@ |
||
12 | 12 | |
13 | 13 | namespace chillerlan\OAuth\Core; |
14 | 14 | |
15 | -interface TokenExpires{ |
|
15 | +interface TokenExpires { |
|
16 | 16 | |
17 | 17 | } |
@@ -14,4 +14,4 @@ |
||
14 | 14 | |
15 | 15 | use chillerlan\OAuth\OAuthException; |
16 | 16 | |
17 | -class ProviderException extends OAuthException{} |
|
17 | +class ProviderException extends OAuthException {} |
@@ -12,6 +12,6 @@ |
||
12 | 12 | |
13 | 13 | namespace chillerlan\OAuth\Core; |
14 | 14 | |
15 | -interface CSRFToken{ |
|
15 | +interface CSRFToken { |
|
16 | 16 | |
17 | 17 | } |