for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Carpenstar\ByBitAPI\WebSockets\Channels\Spot\PublicChannels\Bookticker;
use Carpenstar\ByBitAPI\WebSockets\Channels\Spot\PublicChannels\Bookticker\Entities\BooktickerAbstract;
use Carpenstar\ByBitAPI\WebSockets\Objects\WebSockets\WebSocketsSpotPublicChannel;
/**
* https://bybit-exchange.github.io/docs/spot/ws-public/bookticker
*
* Topic: bookticker.{symbol}
* Best bid price and best ask price
* Push frequency: 100ms
*/
class BooktickerChannel extends WebSocketsSpotPublicChannel
{
public function getResponseClassname(): string
return BooktickerAbstract::class;
}
protected function init(array $data): void
$data
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
protected function init(/** @scrutinizer ignore-unused */ array $data): void
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
// TODO: Implement init() method.
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.