for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Digikraaft\Flutterwave;
use Digikraaft\Flutterwave\ApiOperations\Fetch;
class Chargeback extends ApiResource
{
const OBJECT_NAME = 'chargebacks';
use ApiOperations\All;
/**
* @param string $reference
* @param array $params
* @return array|object
* @link https://developer.flutterwave.com/reference#validate-otp-1
*/
public static function fetch(string $reference, array $params)
$reference
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
public static function fetch(/** @scrutinizer ignore-unused */ string $reference, array $params)
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
$url = static::buildQueryString("", $params);
return static::staticRequest('GET', $url);
}
* @param string $chargeBackId
* @link https://developer.flutterwave.com/reference#acceptdecline-a-chargeback
public static function accept(string $chargeBackId)
$params = [
'action' => 'accept',
];
$url = static::endPointUrl("{$chargeBackId}");
return static::staticRequest('GET', $url, $params);
public static function decline(string $chargeBackId)
'action' => 'decline',
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.