for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
This file was created by developers working at BitBag
Do you need more information about us and what we do? Visit our website!
We are hiring developers from all over the world. Join us and start your new, exciting adventure and become part of us: https://bitbag.io/career
*/
declare(strict_types=1);
namespace BitBag\SyliusElasticsearchPlugin\EventListener;
use Elastica\Query;
final class QueryCreatedListener
{
public static function getSubscribedEvents()
return [
QueryCreatedEvent::NAME => 'onQueryCreated',
];
}
public function onQueryCreated(Query\BoolQuery $query)
$query
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
public function onQueryCreated(/** @scrutinizer ignore-unused */ Query\BoolQuery $query)
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.