Get difference between the old and new code in bytes and prints the code if necessary. @access public

@version 1.1

Return value

string

Fichier

advagg_css_compress/csstidy/class.csstidy_print.inc, line 379

Classe

csstidy_print
CSS Printing class

Code

function get_diff() {
    if (!$this->output_css_plain) {
        $this->formatted();
    }
    $diff = strlen($this->output_css_plain) - strlen($this->input_css);
    if ($diff > 0) {
        return '+' . $diff;
    }
    elseif ($diff == 0) {
        return '+-' . $diff;
    }
    return $diff;
}