diff --git a/src/Credentials/Token.php b/src/Credentials/Token.php index 7d2118d..cf7e6d3 100644 --- a/src/Credentials/Token.php +++ b/src/Credentials/Token.php @@ -34,7 +34,7 @@ public static function getApimToken() }); } - public static function forget() + public static function forget(): void { cache()->forget('apim-token'); cache()->forget('sso-token'); diff --git a/src/Helpers/Config.php b/src/Helpers/Config.php index bf3640d..cd1b9cb 100644 --- a/src/Helpers/Config.php +++ b/src/Helpers/Config.php @@ -4,16 +4,13 @@ class Config { - /** - * Get mode. - */ public static function getMode(): string { return config('siasn-api.mode'); } /** - * Get is production. + * @noinspection PhpUnused */ public static function isProduction(): bool { @@ -21,32 +18,23 @@ public static function isProduction(): bool } /** - * Get is training. + * @noinspection PhpUnused */ public static function isTraining(): bool { return self::getMode() === 'training'; } - /** - * Get debug. - */ public static function getDebug(): bool { return config('siasn-api.debug'); } - /** - * Get http verify. - */ public static function getEnableSslVerification(): bool { return config('siasn-api.enable_ssl_verification'); } - /** - * Get Apim configuration. - */ public static function getApimCredential(): object { return (object) [ @@ -57,9 +45,6 @@ public static function getApimCredential(): object ]; } - /** - * Get SSO configuration. - */ public static function getSsoCredential(): object { return (object) [ @@ -72,7 +57,7 @@ public static function getSsoCredential(): object } /** - * Get get const. + * @noinspection PhpUnused */ public static function getConst(): object {