original_string: public function compress($type, $files, $file) 
  	{
  		// files have been updated so update the minified file
  		if($this->isUpdated($files))
  		{
  			$content = $this->getFileContents($files);
  			switch($type){
  				case 'css':
  					$content = $this->minifyCSS($content);
  				break;
  				case 'js':
  					$content = $this->minifyJS($content);
  				break;
  			}
  			$this->saveFile($file, $content);
  		}
  		return str_replace($this->scriptPath,$this->coreUrl,$file);	
  	}
code: public function compress($type, $files, $file) 
  	{
  		// files have been updated so update the minified file
  		if($this->isUpdated($files))
  		{
  			$content = $this->getFileContents($files);
  			switch($type){
  				case 'css':
  					$content = $this->minifyCSS($content);
  				break;
  				case 'js':
  					$content = $this->minifyJS($content);
  				break;
  			}
  			$this->saveFile($file, $content);
  		}
  		return str_replace($this->scriptPath,$this->coreUrl,$file);	
  	}
code_tokens: public function compress ( $ type , $ files , $ file ) { // files have been updated so update the minified file if ( $ this -> isUpdated ( $ files ) ) { $ content = $ this -> getFileContents ( $ files ) ; switch ( $ type ) { case 'css' : $ content = $ this -> minifyCSS ( $ content ) ; break ; case 'js' : $ content = $ this -> minifyJS ( $ content ) ; break ; } $ this -> saveFile ( $ file , $ content ) ; } return str_replace ( $ this -> scriptPath , $ this -> coreUrl , $ file ) ; }
docstring: get all contents and process the whole contents
  @param string $type compress by type
  @param array $files files that will be compressed
  @param string $file
  @return string return cache url of
docstring_tokens: get all contents and process the whole contents