From 1fe64b81312287fdd2038949f0f0d51e17f46c01 Mon Sep 17 00:00:00 2001 From: StyleCI Bot Date: Tue, 12 Sep 2023 20:25:20 +0000 Subject: [PATCH] Apply fixes from StyleCI --- src/ConfigurableCache.php | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/src/ConfigurableCache.php b/src/ConfigurableCache.php index 9353ca1..b74f04f 100644 --- a/src/ConfigurableCache.php +++ b/src/ConfigurableCache.php @@ -16,9 +16,9 @@ class ConfigurableCache * * @template TCacheValue * - * @param string $key The cache key to retrieve or store the item. - * @param string $config The cache configuration to use (e.g., 'default'). - * @param \Closure(): TCacheValue $callback The Closure to execute if the item is not found in the cache. + * @param string $key The cache key to retrieve or store the item. + * @param string $config The cache configuration to use (e.g., 'default'). + * @param \Closure(): TCacheValue $callback The Closure to execute if the item is not found in the cache. * @return TCacheValue The cached item or the result of the Closure execution. */ public static function remember(string $key, string $config, Closure $callback): mixed @@ -30,10 +30,10 @@ public static function remember(string $key, string $config, Closure $callback): } /** - * Get a value from the cache + * Get a value from the cache. * - * @param string $key The key to store the value under. - * @param string $config The name of the configuration to use. + * @param string $key The key to store the value under. + * @param string $config The name of the configuration to use. */ public static function get(string $key, string $config = 'default'): mixed { @@ -45,9 +45,9 @@ public static function get(string $key, string $config = 'default'): mixed /** * It stores a value in the cache for a given key. * - * @param string $key The key to store the value under. - * @param mixed $value The value to store. - * @param string $config The name of the configuration to use. + * @param string $key The key to store the value under. + * @param mixed $value The value to store. + * @param string $config The name of the configuration to use. * * @throws \RuntimeException */ @@ -64,8 +64,8 @@ public static function put(string $key, mixed $value, string $config = 'default' } /** - * @param string $key The name of the configuration to use. - * @param string $config The name of the configuration to use. + * @param string $key The name of the configuration to use. + * @param string $config The name of the configuration to use. */ public static function increment(string $key, string $config = 'default'): void { @@ -74,10 +74,10 @@ public static function increment(string $key, string $config = 'default'): void } /** - * It deletes a cache + * It deletes a cache. * - * @param string $key The key of the cache. - * @param string $config The name of the configuration to use. + * @param string $key The key of the cache. + * @param string $config The name of the configuration to use. */ public static function delete(string $key, string $config = 'default'): bool { @@ -89,8 +89,8 @@ public static function delete(string $key, string $config = 'default'): bool /** * Generate a cache key for the given key and configuration. * - * @param string $key The key to be included in the cache key. - * @param string $config The cache configuration name (e.g., 'default'). + * @param string $key The key to be included in the cache key. + * @param string $config The cache configuration name (e.g., 'default'). * @return string The generated cache key. */ protected static function cacheKey(string $key, string $config): string @@ -101,7 +101,7 @@ protected static function cacheKey(string $key, string $config): string /** * Get the Time To Live (TTL) duration for cache items based on the specified configuration. * - * @param string $config The cache configuration name (e.g., 'default'). + * @param string $config The cache configuration name (e.g., 'default'). * @return CarbonInterface A Carbon instance representing the TTL duration. */ protected static function ttl(string $config): CarbonInterface