for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace ProyectoTAU\TAU\Module\Administration\User\Application\readAll;
use ProyectoTAU\TAU\Module\Administration\User\Domain\UserRepository;
final class ReadAllUsersCommandHandler
{
private $userRepository;
//private $dataTransformer; // TODO QueryBus pending
public function __construct(UserRepository $userRepository /*, DataTransformer $dataTransformer*/)
$this->userRepository = $userRepository;
//$this->dataTransformer = $dataTransformer;
}
public function handle(ReadAllUsersCommand $command): array //| mixed
$command
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
public function handle(/** @scrutinizer ignore-unused */ ReadAllUsersCommand $command): array //| mixed
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
return //$this->dataTransformer->write(
$this->userRepository->readAll()
//)->read()
;
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.