for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace kalanis\kw_cache\Format;
use kalanis\kw_cache\Interfaces;
/**
* Class Factory
* @package kalanis\kw_cache\Format
* Basic implementation of format factory - use just "not so stupid" check
*/
class Factory
{
public function getFormat(Interfaces\ICache $cache): Interfaces\IFormat
$cache
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
public function getFormat(/** @scrutinizer ignore-unused */ Interfaces\ICache $cache): Interfaces\IFormat
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
return new Format();
}
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.