for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
*
* This file is part of phpFastCache.
* @license MIT License (MIT)
* For full copyright and license information, please see the docs/CREDITS.txt file.
* @author Georges.L (Geolim4) <[email protected]>
*/
declare(strict_types=1);
namespace Phpfastcache\Cluster;
use Psr\Cache\CacheItemInterface;
trait ClusterPoolTrait
{
* @return bool
protected function driverCheck(): bool
return true;
}
protected function driverConnect(): bool
* @param CacheItemInterface $item
* @return null
protected function driverRead(CacheItemInterface $item)
$item
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
protected function driverRead(/** @scrutinizer ignore-unused */ CacheItemInterface $item)
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
return null;
protected function driverWrite(CacheItemInterface $item): bool
protected function driverWrite(/** @scrutinizer ignore-unused */ CacheItemInterface $item): bool
protected function driverDelete(CacheItemInterface $item): bool
protected function driverDelete(/** @scrutinizer ignore-unused */ CacheItemInterface $item): bool
protected function driverClear(): bool
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.