@@ -56,18 +56,18 @@ discard block |
||
56 | 56 | ]; |
57 | 57 | |
58 | 58 | /** @var \chillerlan\Traits\ContainerInterface $options */ |
59 | -$options = new class($options_arr) extends OAuthOptions{ |
|
59 | +$options = new class($options_arr) extends OAuthOptions { |
|
60 | 60 | use DatabaseOptionsTrait; |
61 | 61 | }; |
62 | 62 | |
63 | 63 | /** @var \Psr\Log\LoggerInterface $logger */ |
64 | 64 | $logger = (new Log)->addInstance( |
65 | - new class (new LogOptions(['minLogLevel' => 'debug'])) extends LogOutputAbstract{ |
|
65 | + new class (new LogOptions(['minLogLevel' => 'debug'])) extends LogOutputAbstract { |
|
66 | 66 | |
67 | 67 | protected function __log(string $level, string $message, array $context = null):void{ |
68 | 68 | echo $message.PHP_EOL; |
69 | 69 | |
70 | - if(!empty($context)){ |
|
70 | + if (!empty($context)) { |
|
71 | 71 | echo print_r($context, true).PHP_EOL; |
72 | 72 | } |
73 | 73 | } |
@@ -77,12 +77,12 @@ discard block |
||
77 | 77 | ); |
78 | 78 | |
79 | 79 | /** @var \chillerlan\HTTP\HTTPClientInterface $http */ |
80 | -$http = new class($options) extends HTTPClientAbstract{ |
|
80 | +$http = new class($options) extends HTTPClientAbstract { |
|
81 | 81 | use LogTrait; |
82 | 82 | |
83 | 83 | protected $client; |
84 | 84 | |
85 | - public function __construct(ContainerInterface $options){ |
|
85 | + public function __construct(ContainerInterface $options) { |
|
86 | 86 | parent::__construct($options); |
87 | 87 | $this->client = new TinyCurlClient($this->options, new Request($this->options)); |
88 | 88 | } |