src/Standards/BestIt/Sniffs/SuppressingTrait.php
protected function isSniffSuppressed(?string $rule = null, ?int $stackPos = null): bool
    {
        return $this->getSuppressHelper()->isSniffSuppressed(
            $this->getFile(),
            $stackPos ?? $this->getStackPos(),
            $this->getSniffName($rule)
        );
    }
protected function isSniffSuppressed(?string $rule = null, ?int $stackPos = null): bool
    {
        return $this->getSuppressHelper()->isSniffSuppressed(
            $this->getFile(),
            $stackPos ?? $this->getStackPos(),
            $this->getSniffName($rule)
        );
    }
protected function isSniffSuppressed ( ? string $ rule = null , ? int $ stackPos = null ) : bool { return $ this -> getSuppressHelper ( ) -> isSniffSuppressed ( $ this -> getFile ( ) , $ stackPos ?? $ this -> getStackPos ( ) , $ this -> getSniffName ( $ rule ) ) ; }
Returns true if this sniff or a rule of this sniff is suppressed with the slevomat suppress annotation.

@param null|string $rule The optional rule.
@param int|null $stackPos Do you want ot overload the position for the which position the sniff is suppressed.

@return bool Returns true if the sniff is suppressed.
Returns true if this sniff or a rule of this sniff is suppressed with the slevomat suppress annotation .