public function runMinificationRules($contents)
    {
        do {
            $originalContents = $contents;
            $contents = preg_replace(array_keys($this->minifyRules), array_values($this->minifyRules), $contents);
        } while ($originalContents != $contents);

        return $contents;
    }
public function runMinificationRules($contents)
    {
        do {
            $originalContents = $contents;
            $contents = preg_replace(array_keys($this->minifyRules), array_values($this->minifyRules), $contents);
        } while ($originalContents != $contents);

        return $contents;
    }
public function runMinificationRules ( $ contents ) { do { $ originalContents = $ contents ; $ contents = preg_replace ( array_keys ( $ this -> minifyRules ) , array_values ( $ this -> minifyRules ) , $ contents ) ; } while ( $ originalContents != $ contents ) ; return $ contents ; }
Loop over the minification rules as long as changes in output occur.

@param string $contents

@return string
Loop over the minification rules as long as changes in output occur .