for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Bdf\Prime\Query;
use Bdf\Prime\Exception\PrimeException;
use Bdf\Prime\Query\Contract\ReadOperation;
/**
* Extension for compatibility purposes
*/
class QueryCompatExtension
{
* @param QueryInterface $query
* @param $flag
*
* @return QueryInterface
public function ignore(QueryInterface $query, $flag = true)
$flag
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
public function ignore(QueryInterface $query, /** @scrutinizer ignore-unused */ $flag = true)
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
return $query;
}
* @param null|array $attributes
* @return int
* @throws PrimeException
#[ReadOperation]
public function count(QueryInterface $query, $attributes = null)
return count($query->all($attributes));
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.