@@ -59,19 +59,19 @@ 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 | |
66 | 66 | $logger = new Log; |
67 | 67 | |
68 | 68 | $logger->addInstance( |
69 | - new class ($options) extends LogOutputAbstract{ |
|
69 | + new class ($options) extends LogOutputAbstract { |
|
70 | 70 | |
71 | 71 | protected function __log(string $level, string $message, array $context = null):void{ |
72 | 72 | echo $message.PHP_EOL; |
73 | 73 | |
74 | - if(!empty($context)){ |
|
74 | + if (!empty($context)) { |
|
75 | 75 | echo print_r($context, true).PHP_EOL; |
76 | 76 | } |
77 | 77 | } |
@@ -81,11 +81,11 @@ discard block |
||
81 | 81 | ); |
82 | 82 | |
83 | 83 | /** @var \chillerlan\HTTP\HTTPClientInterface $http */ |
84 | -$http = new class($options) extends HTTPClientAbstract{ |
|
84 | +$http = new class($options) extends HTTPClientAbstract { |
|
85 | 85 | |
86 | 86 | protected $client; |
87 | 87 | |
88 | - public function __construct(ContainerInterface $options){ |
|
88 | + public function __construct(ContainerInterface $options) { |
|
89 | 89 | parent::__construct($options); |
90 | 90 | $this->client = new TinyCurlClient($this->options, new Request($this->options)); |
91 | 91 | } |
@@ -19,7 +19,7 @@ |
||
19 | 19 | * @property \Psr\Log\LoggerInterface $logger |
20 | 20 | * @method setLogger(\Psr\Log\LoggerInterface $logger) |
21 | 21 | */ |
22 | -interface TokenStorageInterface{ |
|
22 | +interface TokenStorageInterface { |
|
23 | 23 | |
24 | 24 | /** |
25 | 25 | * @param string $service |
@@ -26,7 +26,7 @@ |
||
26 | 26 | * from \chillerlan\Traits\Classloader |
27 | 27 | * @method mixed loadClass(string $class, string $type = null, ...$params) |
28 | 28 | */ |
29 | -interface OAuthInterface{ |
|
29 | +interface OAuthInterface { |
|
30 | 30 | |
31 | 31 | /** |
32 | 32 | * @param array $params |