extensions/felixfbecker.php-intellisense-0.0.12/vendor/squizlabs/php_codesniffer/src/Files/File.php
/**
     * Adds an warning to the warning stack.
     *
     * @param int    $stackPtr The stack position where the metric was recorded.
     * @param string $metric   The name of the metric being recorded.
     * @param string $value    The value of the metric being recorded.
     *
     * @return boolean
     */
Adds an warning to the warning stack.
@param int    $stackPtr The stack position where the metric was recorded.
@param string $metric   The name of the metric being recorded.
@param string $value    The value of the metric being recorded.

@return boolean
Adds an warning to the warning stack . @param int $stackPtr The stack position where the metric was recorded . @param string $metric The name of the metric being recorded . @param string $value The value of the metric being recorded . @return boolean
public function recordMetric($stackPtr, $metric, $value)
    {
        if (isset($this->metrics[$metric]) === false) {
            $this->metrics[$metric] = array('values' => array($value => 1));
        } else {
            if (isset($this->metrics[$metric]['values'][$value]) === false) {
                $this->metrics[$metric]['values'][$value] = 1;
            } else {
                $this->metrics[$metric]['values'][$value]++;
            }
        }
        return true;
    }
public function recordMetric ( $ stackPtr , $ metric , $ value ) { if ( isset ( $ this -> metrics [ $ metric ] ) === false ) { $ this -> metrics [ $ metric ] = array ( 'values' => array ( $ value => 1 ) ) ; } else { if ( isset ( $ this -> metrics [ $ metric ] [ 'values' ] [ $ value ] ) === false ) { $ this -> metrics [ $ metric ] [ 'values' ] [ $ value ] = 1 ; } else { $ this -> metrics [ $ metric ] [ 'values' ] [ $ value ] ++ ; } } return true ; }
Adds an warning to the warning stack.
Adds an warning to the warning stack .