min() приватный Метод

private min ( $js, $filename )
Пример #1
0
 public static function minify($js, $filename = '')
 {
     static $instance = null;
     // this is a singleton
     if ($instance === null) {
         $instance = new JSMinPlus();
     }
     return $instance->min($js, $filename);
 }
Пример #2
0
	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);
 }