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;
use spec\BitBag\SyliusElasticsearchPlugin\PropertyBuilder\Mapper\ProductTaxonsMapperSpec;
final class QueryCreatedListener
{
public static function getSubscribedEvents(): array
return [
QueryCreatedEvent::NAME => 'onQueryCreated',
];
}
public function onQueryCreated(QueryCreatedEvent $event): void
$event
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 */ QueryCreatedEvent $event): void
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
//TODO change query behavior
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.