src/Standards/BestIt/Sniffs/SuppressingTrait.php
private function getSniffName(?string $sniffName = null): string
    {
        $sniffClassName = preg_replace(
            '/Sniff$/',
            '',
            str_replace(['\\', '.Sniffs'], ['.', ''], static::class)
        );

        if ($sniffName) {
            $sniffClassName .= '.' . $sniffName;
        }

        return $sniffClassName;
    }
private function getSniffName(?string $sniffName = null): string
    {
        $sniffClassName = preg_replace(
            '/Sniff$/',
            '',
            str_replace(['\\', '.Sniffs'], ['.', ''], static::class)
        );

        if ($sniffName) {
            $sniffClassName .= '.' . $sniffName;
        }

        return $sniffClassName;
    }
private function getSniffName ( ? string $ sniffName = null ) : string { $ sniffClassName = preg_replace ( '/Sniff$/' , '' , str_replace ( [ '\\' , '.Sniffs' ] , [ '.' , '' ] , static :: class ) ) ; if ( $ sniffName ) { $ sniffClassName .= '.' . $ sniffName ; } return $ sniffClassName ; }
Get the sniff name.

@param string|null $sniffName If there is an optional sniff name.

@return string Returns the special sniff name in the code sniffer context.
Get the sniff name .