Skip to content

Commit

Permalink
style: fix coding standard
Browse files Browse the repository at this point in the history
  • Loading branch information
nulxrd committed Feb 11, 2024
1 parent fac5e12 commit 0e7f963
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
16 changes: 5 additions & 11 deletions src/Adapter/APCu/APCuAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ public function __construct() {
/**
* @inheritDoc
*/
protected function doSave(CacheItem $item): array|bool
{
protected function doSave(CacheItem $item): array|bool {
$entry = [
'data' => $item->get(),
'ttl' => $item->getExpirationTime()
Expand All @@ -45,8 +44,7 @@ protected function doSave(CacheItem $item): array|bool
/**
* @inheritDoc
*/
protected function doFetch(array $keys): iterable
{
protected function doFetch(array $keys): iterable {
$ok = false;
$values = [];

Expand All @@ -64,30 +62,26 @@ protected function doFetch(array $keys): iterable
}

return $values;

}

/**
* @inheritDoc
*/
protected function doDelete(array $keys): bool
{
protected function doDelete(array $keys): bool {
return (bool) \apcu_delete($keys);
}

/**
* @inheritDoc
*/
protected function doHave(string $key): bool
{
protected function doHave(string $key): bool {
return \apcu_exists($key);
}

/**
* @inheritDoc
*/
protected function doClear(): bool
{
protected function doClear(): bool {
return \apcu_clear_cache();
}
}
1 change: 0 additions & 1 deletion src/Exception/CacheException.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@

class CacheException extends \RuntimeException
{

}

0 comments on commit 0e7f963

Please sign in to comment.