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

Commit

Permalink
🚿
Browse files Browse the repository at this point in the history
  • Loading branch information
codemasher committed Jul 28, 2023
1 parent ca007f8 commit 0c2047b
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 39 deletions.
1 change: 0 additions & 1 deletion src/Core/AccessToken.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
namespace chillerlan\OAuth\Core;

use chillerlan\Settings\SettingsContainerAbstract;

use function time;

/**
Expand Down
11 changes: 1 addition & 10 deletions src/Core/OAuth1Provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,7 @@

use chillerlan\HTTP\Utils\{MessageUtil, QueryUtil};
use Psr\Http\Message\{RequestInterface, ResponseInterface, UriInterface};
use function array_map;
use function array_merge;
use function base64_encode;
use function hash_hmac;
use function implode;
use function in_array;
use function random_bytes;
use function sodium_bin2hex;
use function strtoupper;
use function time;
use function array_map, array_merge, base64_encode, hash_hmac, implode, in_array, random_bytes, sodium_bin2hex, strtoupper, time;

/**
* Implements an abstract OAuth1 provider with all methods required by the OAuth1Interface.
Expand Down
14 changes: 2 additions & 12 deletions src/Core/OAuth2Provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,8 @@

use chillerlan\HTTP\Utils\{MessageUtil, QueryUtil};
use Psr\Http\Message\{RequestInterface, ResponseInterface, UriInterface};
use function array_merge;
use function base64_encode;
use function date;
use function hash_equals;
use function implode;
use function is_array;
use function json_decode;
use function random_bytes;
use function sha1;
use function sprintf;
use const JSON_THROW_ON_ERROR;
use const PHP_QUERY_RFC1738;
use function array_merge, base64_encode, date, hash_equals, implode, is_array, json_decode, random_bytes, sha1, sprintf;
use const JSON_THROW_ON_ERROR, PHP_QUERY_RFC1738;

/**
* Implements an abstract OAuth2 provider with all methods required by the OAuth2Interface.
Expand Down
9 changes: 1 addition & 8 deletions src/Core/OAuthProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,7 @@
};
use Psr\Log\{LoggerInterface, NullLogger};
use ReflectionClass;
use function array_merge;
use function in_array;
use function is_array;
use function is_string;
use function json_encode;
use function sprintf;
use function str_starts_with;
use function strtolower;
use function array_merge, in_array, is_array, is_string, json_encode, sprintf, str_starts_with, strtolower;
use const PHP_QUERY_RFC1738;

/**
Expand Down
3 changes: 1 addition & 2 deletions src/Storage/MemoryStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
namespace chillerlan\OAuth\Storage;

use chillerlan\OAuth\Core\AccessToken;
use function array_key_exists;
use function array_keys;
use function array_key_exists, array_keys;

/**
* Implements a memory storage adapter. Memory storage is not persistent as tokens are only stored during script runtime.
Expand Down
2 changes: 1 addition & 1 deletion src/Storage/OAuthStorageAbstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
use chillerlan\OAuth\Core\AccessToken;
use chillerlan\Settings\SettingsContainerInterface;
use Psr\Log\{LoggerAwareTrait, LoggerInterface, NullLogger};
use function is_string;
use function is_string, trim;

/**
* Implements an abstract OAuth storage adapter
Expand Down
6 changes: 1 addition & 5 deletions src/Storage/SessionStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,7 @@
use chillerlan\OAuth\Core\AccessToken;
use chillerlan\OAuth\OAuthOptions;
use chillerlan\Settings\SettingsContainerInterface;
use function array_key_exists;
use function array_keys;
use function session_start;
use function session_status;
use function session_write_close;
use function array_key_exists, array_keys, session_start, session_status, session_write_close;
use const PHP_SESSION_NONE;

/**
Expand Down

0 comments on commit 0c2047b

Please sign in to comment.