for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace VideoGamesRecords\CoreBundle\EventSubscriber\Ranking;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Symfony\Contracts\EventDispatcher\Event;
use VideoGamesRecords\CoreBundle\Contracts\Ranking\RankUpdateInterface;
use VideoGamesRecords\CoreBundle\VideoGamesRecordsCoreEvents;
final class UpdatePlayerRankSubscriber implements EventSubscriberInterface
{
private RankUpdateInterface $rankUpdateHandler;
public function __construct(RankUpdateInterface $rankUpdateHandler)
$this->rankUpdateHandler = $rankUpdateHandler;
}
public static function getSubscribedEvents(): array
return [
VideoGamesRecordsCoreEvents::SCORES_PLAYER_MAJ_COMPLETED => 'process',
];
/**
* @param Event $event
*/
public function process(Event $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 process(/** @scrutinizer ignore-unused */ Event $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.
$this->rankUpdateHandler->majRankPointChart();
$this->rankUpdateHandler->majRankPointGame();
$this->rankUpdateHandler->majRankCup();
$this->rankUpdateHandler->majRankMedal();
$this->rankUpdateHandler->majRankBadge();
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.