public static function minify($js, $filename = '') { static $instance = null; // this is a singleton if ($instance === null) { $instance = new JSMinPlus(); } return $instance->min($js, $filename); }
public static function minify($js, $filename='') { static $instance; // this is a singleton if(!$instance) $instance = new JSMinPlus(); return $instance->min($js, $filename); }
public static function minify($js, $filename = '') { trigger_error(__CLASS__ . ' is deprecated. This will be removed in Minify 3.0', E_USER_DEPRECATED); static $instance; // this is a singleton if (!$instance) { $instance = new JSMinPlus(); } return $instance->min($js, $filename); }