vendor/squizlabs/php_codesniffer/src/Files/File.php
/**
     * Records a warning against a specific token in the file.
     *
     * @param string $warning  The error message.
     * @param int    $line     The line on which the warning occurred.
     * @param string $code     A violation code unique to the sniff message.
     * @param array  $data     Replacements for the warning message.
     * @param int    $severity The severity level for this warning. A value of 0 will
     *                         will be converted into the default severity level.
     *
     * @return boolean
     */
Records a warning against a specific token in the file.
@param string $warning  The error message.
@param int    $line     The line on which the warning occurred.
@param string $code     A violation code unique to the sniff message.
@param array  $data     Replacements for the warning message.
@param int    $severity The severity level for this warning. A value of 0 will
will be converted into the default severity level.

@return boolean
Records a warning against a specific token in the file . @param string $warning The error message . @param int $line The line on which the warning occurred . @param string $code A violation code unique to the sniff message . @param array $data Replacements for the warning message . @param int $severity The severity level for this warning . A value of 0 will will be converted into the default severity level . @return boolean
public function addWarningOnLine(
        $warning,
        $line,
        $code,
        $data=[],
        $severity=0
    ) {
        return $this->addMessage(false, $warning, $line, 1, $code, $data, $severity, false);
    }
public function addWarningOnLine ( $ warning , $ line , $ code , $ data = [ ] , $ severity = 0 ) { return $ this -> addMessage ( false , $ warning , $ line , 1 , $ code , $ data , $ severity , false ) ; }
Records a warning against a specific token in the file.
Records a warning against a specific token in the file .