Passed
Push — master ( 74736c...41514f )
by smiley
02:15
created
src/OAuthOptionsTrait.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.
src/OAuthException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,4 +12,4 @@
 block discarded – undo
12 12
 
13 13
 namespace chillerlan\OAuth;
14 14
 
15
-class OAuthException extends \Exception{}
15
+class OAuthException extends \Exception {}
Please login to merge, or discard this patch.
src/OAuthOptions.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
examples/OAuth1Testprovider.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
  *
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';
Please login to merge, or discard this patch.
examples/oauth-example-common.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 	}
Please login to merge, or discard this patch.
src/Core/OAuthInterface.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
  * @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
Please login to merge, or discard this patch.
src/Core/TokenExpires.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,6 +12,6 @@
 block discarded – undo
12 12
 
13 13
 namespace chillerlan\OAuth\Core;
14 14
 
15
-interface TokenExpires{
15
+interface TokenExpires {
16 16
 
17 17
 }
Please login to merge, or discard this patch.
src/Core/ProviderException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,4 +14,4 @@
 block discarded – undo
14 14
 
15 15
 use chillerlan\OAuth\OAuthException;
16 16
 
17
-class ProviderException extends OAuthException{}
17
+class ProviderException extends OAuthException {}
Please login to merge, or discard this patch.
src/Core/CSRFToken.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,6 +12,6 @@
 block discarded – undo
12 12
 
13 13
 namespace chillerlan\OAuth\Core;
14 14
 
15
-interface CSRFToken{
15
+interface CSRFToken {
16 16
 
17 17
 }
Please login to merge, or discard this patch.