for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Carpenstar\ByBitAPI\Derivatives\Contract\Account\WalletBalance;
use Carpenstar\ByBitAPI\Core\Endpoints\PrivateEndpoint;
use Carpenstar\ByBitAPI\Core\Interfaces\IGetEndpointInterface;
use Carpenstar\ByBitAPI\Core\Objects\StubQueryBag;
use Carpenstar\ByBitAPI\Derivatives\Contract\Account\WalletBalance\Response\WalletBalanceResponse;
use Carpenstar\ByBitAPI\Derivatives\Contract\Account\WalletBalance\Request\WalletBalanceRequest;
class WalletBalance extends PrivateEndpoint implements IGetEndpointInterface
{
protected function getEndpointUrl(): string
return "/contract/v3/private/account/wallet/balance";
}
protected function getRequestClassname(): string
return WalletBalanceRequest::class;
protected function getResponseClassnameByCondition(array &$apiData = null): string
$apiData
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
protected function getResponseClassnameByCondition(/** @scrutinizer ignore-unused */ array &$apiData = null): string
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
return WalletBalanceResponse::class;
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.