Skip to content
This repository was archived by the owner on Mar 23, 2024. It is now read-only.

Commit 4babea4

Browse files
committed
💄
1 parent 5697269 commit 4babea4

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

src/Providers/CSRFTokenTrait.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ protected function checkState(string $state = null):OAuth2Interface{
3838
throw new ProviderException('invalid CSRF state: '.$this->serviceName.' '.$state);
3939
}
4040

41+
/** @noinspection PhpIncompatibleReturnTypeInspection */
4142
return $this;
4243
}
4344

src/Providers/OAuthProvider.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
namespace chillerlan\OAuth\Providers;
1414

1515
use chillerlan\HTTP\{
16-
HTTPClientTrait, HTTPClientInterface
16+
HTTPClientInterface, HTTPClientTrait
1717
};
1818
use chillerlan\Logger\LogTrait;
19-
use chillerlan\OAuth\Storage\TokenStorageInterface;
2019
use chillerlan\MagicAPI\ApiClientInterface;
20+
use chillerlan\OAuth\Storage\TokenStorageInterface;
2121
use chillerlan\Traits\{
2222
ClassLoader, ContainerInterface, Magic
2323
};
@@ -91,9 +91,8 @@ abstract class OAuthProvider implements OAuthInterface, LoggerAwareInterface{
9191
public function __construct(HTTPClientInterface $http, TokenStorageInterface $storage, ContainerInterface $options){
9292
$this->setHTTPClient($http);
9393

94-
$this->storage = $storage;
95-
$this->options = $options;
96-
94+
$this->storage = $storage;
95+
$this->options = $options;
9796
$this->serviceName = (new ReflectionClass($this))->getShortName();
9897

9998
if($this instanceof ApiClientInterface){

tests/StorageTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,11 @@ protected function setUp(){
7171
'dbUserID' => 1,
7272
// DatabaseOptions
7373
'driver' => MySQLiDrv::class,
74-
'host' => $env->get('MYSQL_HOST'),
75-
'port' => $env->get('MYSQL_PORT'),
76-
'database' => $env->get('MYSQL_DATABASE'),
77-
'username' => $env->get('MYSQL_USERNAME'),
78-
'password' => $env->get('MYSQL_PASSWORD'),
74+
'host' => $env->MYSQL_HOST,
75+
'port' => $env->MYSQL_PORT,
76+
'database' => $env->MYSQL_DATABASE,
77+
'username' => $env->MYSQL_USERNAME,
78+
'password' => $env->MYSQL_PASSWORD,
7979
];
8080

8181
$this->options = new class($options) extends OAuthOptions{

0 commit comments

Comments
 (0)