From 2c9a6704bc4eb6ff6813924131aa6e93fdb331a8 Mon Sep 17 00:00:00 2001 From: StyleCI Bot Date: Wed, 8 Nov 2023 22:32:30 +0000 Subject: [PATCH] Apply fixes from StyleCI --- bin/index.php | 8 +++--- example.php | 2 +- src/Access/AccessInterface.php | 2 +- src/Cache/CommonOperations.php | 25 ++++++++++++++++--- src/Cache/FileCache.php | 9 +------ src/Cache/HashesStrings.php | 2 +- src/Cache/MemcachedCache.php | 8 ++---- src/Cache/NullCache.php | 3 +-- src/Cache/ValidateCacheEntry.php | 21 +++++++++++++++- src/Checker/Claim/AzpChecker.php | 2 +- src/Checker/Claim/NameChecker.php | 2 +- src/Checker/Claim/OwnerChecker.php | 2 +- src/Checker/Claim/ScpChecker.php | 2 +- src/Checker/Claim/SubEveCharacterChecker.php | 2 +- src/Checker/Header/TypeChecker.php | 2 +- src/Configuration.php | 2 +- src/Containers/AbstractArrayAccess.php | 8 +++--- src/Containers/EsiAuthentication.php | 2 +- src/Containers/EsiConfiguration.php | 2 +- src/Eseye.php | 2 +- src/Exceptions/CachePathException.php | 2 +- .../DiscoverServiceNotAvailableException.php | 2 +- .../EsiScopeAccessDeniedException.php | 2 +- .../InvalidAuthenticationException.php | 2 +- .../InvalidConfigurationException.php | 2 +- .../InvalidContainerDataException.php | 2 +- src/Exceptions/RequestFailedException.php | 2 +- src/Exceptions/UriDataMissingException.php | 2 +- src/Fetchers/Fetcher.php | 2 +- src/Fetchers/FetcherInterface.php | 2 +- src/Helpers/helpers.php | 2 +- src/Log/FileLogger.php | 4 +-- src/Log/NullLogger.php | 4 +-- src/Log/RotatingFileLogger.php | 4 +-- src/Traits/ConstructsContainers.php | 2 +- src/Traits/ValidatesContainers.php | 2 +- tools/get_endpoints_and_scopes.php | 2 +- tools/swagger_download.php | 2 +- 38 files changed, 87 insertions(+), 63 deletions(-) diff --git a/bin/index.php b/bin/index.php index e748875..b33eddb 100644 --- a/bin/index.php +++ b/bin/index.php @@ -3,7 +3,7 @@ /* * This file is part of SeAT * - * Copyright (C) 2015 to 2022 Leon Jacobs + * Copyright (C) 2015 to present Leon Jacobs * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -256,7 +256,7 @@ function new_login() } /** - * @param $url + * @param $url */ function print_sso_url($url) { @@ -281,8 +281,8 @@ function print_sso_url($url) } /** - * @param $access_token - * @param $refresh_token + * @param $access_token + * @param $refresh_token */ function print_tokens($access_token, $refresh_token) { diff --git a/example.php b/example.php index 2ee5ded..29a5711 100644 --- a/example.php +++ b/example.php @@ -3,7 +3,7 @@ /* * This file is part of SeAT * - * Copyright (C) 2015 to 2022 Leon Jacobs + * Copyright (C) 2015 to present Leon Jacobs * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/Access/AccessInterface.php b/src/Access/AccessInterface.php index 891996d..c15b070 100644 --- a/src/Access/AccessInterface.php +++ b/src/Access/AccessInterface.php @@ -3,7 +3,7 @@ /* * This file is part of SeAT * - * Copyright (C) 2015 to 2022 Leon Jacobs + * Copyright (C) 2015 to present Leon Jacobs * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/Cache/CommonOperations.php b/src/Cache/CommonOperations.php index e6315db..9132093 100644 --- a/src/Cache/CommonOperations.php +++ b/src/Cache/CommonOperations.php @@ -1,5 +1,25 @@ memcached->addServer($configuration->memcached_cache_host, $configuration->memcached_cache_port, 0); if ($this->is_memcached) - $this->memcached->setOption(\Memcached::OPT_COMPRESSION, ($configuration->memcached_cache_compressed)); + $this->memcached->setOption(\Memcached::OPT_COMPRESSION, $configuration->memcached_cache_compressed); else $this->flags = ($configuration->memcached_cache_compressed) ? MEMCACHE_COMPRESSED : 0; } @@ -91,7 +91,6 @@ public function __construct($instance = null) * @param string $key * @param mixed $value * @param int|\DateInterval|null $ttl - * * @return bool */ public function set(string $key, mixed $value, null|int|DateInterval $ttl = null): bool @@ -108,7 +107,6 @@ public function set(string $key, mixed $value, null|int|DateInterval $ttl = null /** * @param string $key * @param mixed|null $default - * * @return \Seat\Eseye\Containers\EsiResponse */ public function get(string $key, mixed $default = null): mixed @@ -136,7 +134,6 @@ public function get(string $key, mixed $default = null): mixed /** * @param string $key - * * @return bool */ public function delete(string $key): bool @@ -148,7 +145,6 @@ public function delete(string $key): bool /** * @param string $key - * * @return bool */ public function has(string $key): bool diff --git a/src/Cache/NullCache.php b/src/Cache/NullCache.php index f92ad6d..c15dacc 100644 --- a/src/Cache/NullCache.php +++ b/src/Cache/NullCache.php @@ -3,7 +3,7 @@ /* * This file is part of SeAT * - * Copyright (C) 2015 to 2022 Leon Jacobs + * Copyright (C) 2015 to present Leon Jacobs * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -34,7 +34,6 @@ */ class NullCache implements CacheInterface { - /** * @param string $key * @param mixed|null $default diff --git a/src/Cache/ValidateCacheEntry.php b/src/Cache/ValidateCacheEntry.php index 981b82d..5f89d44 100644 --- a/src/Cache/ValidateCacheEntry.php +++ b/src/Cache/ValidateCacheEntry.php @@ -1,5 +1,25 @@