for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace ZenCash\Rpc\Command\Wallet;
use ZenCash\Rpc\Command;
final class ZGetOperationStatus implements Command
{
private const METHOD = 'z_getoperationstatus';
private $ids;
/**
* @param string[] $ids
*/
public function __construct(array $ids)
call_user_func_array(function(string ...$ids) {}, $ids);
$ids
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
call_user_func_array(function(/** @scrutinizer ignore-unused */ string ...$ids) {}, $ids);
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
$this->ids = $ids;
}
public function jsonSerialize(): object
return (object) [
'jsonrpc' => Command::JSON_RPC_VERSION,
'id' => Command::ID,
'method' => self::METHOD,
'params' => [ $this->ids ]
];
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.