for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Carpenstar\ByBitAPI\Derivatives\MarketData\OrderBook\Request;
use Carpenstar\ByBitAPI\Core\Objects\AbstractParameters;
class OrderBookRequest extends AbstractParameters
{
/**
* @var string $category
*/
protected string $category = "linear";
* @var string $symbol
protected string $symbol;
* @var int $limit
protected int $limit = 25;
public function __construct()
$this->setRequiredField("symbol");
}
* @param string $category
* @return OrderBookRequest
public function setCategory(string $category): self
$category
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
public function setCategory(/** @scrutinizer ignore-unused */ string $category): self
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
$this->category = "linear"; // only linear support, now
return $this;
* @return string
public function getCategory(): string
return $this->category;
* @param string $symbol
public function setSymbol(string $symbol): self
$this->symbol = $symbol;
public function getSymbol(): string
return $this->symbol;
* @param int $limit
public function setLimit(int $limit): self
$this->limit = $limit;
* @return int
public function getLimit(): int
return $this->limit;
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.