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 LockUnspent implements Command
{
private const METHOD = 'lockunspent';
private $unlock;
private $transactions;
/**
* @param bool $unlock
* @param Transaction[] $transactions
*/
public function __construct(bool $unlock, array $transactions)
call_user_func_array(function (Transaction ...$t) {}, $transactions);
$t
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 */ Transaction ...$t) {}, $transactions);
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
$this->unlock = $unlock;
$this->transactions = $transactions;
}
public function jsonSerialize(): object
return (object) [
'jsonrpc' => Command::JSON_RPC_VERSION,
'id' => Command::ID,
'method' => self::METHOD,
'params' => [ $this->unlock, $this->transactions ]
];
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.