for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Bavix\Wallet\Services;
use Bavix\Wallet\Interfaces\Wallet;
class CurrencyService
{
/**
* @param Wallet $from
* @param Wallet $to
* @return float
*/
public function rate(Wallet $from, Wallet $to): float
$from
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
public function rate(/** @scrutinizer ignore-unused */ Wallet $from, Wallet $to): float
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
$to
public function rate(Wallet $from, /** @scrutinizer ignore-unused */ Wallet $to): float
return 1.0;
}
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.