public function save($scan = true)
	{
		if (!isset($this->contents))
		{
			return false;
		}

		// We can save a stream or string...so see which it is
		$method = (is_resource($this->contents) && get_resource_type($this->contents) == 'stream') ? 'putStream' : 'put';

		if (!$this->$method($this->contents))
		{
			return false;
		}

		if ($scan && !$this->isSafe())
		{
			$this->delete();
			return false;
		}

		return true;
	}
public function save($scan = true)
	{
		if (!isset($this->contents))
		{
			return false;
		}

		// We can save a stream or string...so see which it is
		$method = (is_resource($this->contents) && get_resource_type($this->contents) == 'stream') ? 'putStream' : 'put';

		if (!$this->$method($this->contents))
		{
			return false;
		}

		if ($scan && !$this->isSafe())
		{
			$this->delete();
			return false;
		}

		return true;
	}
public function save ( $ scan = true ) { if ( ! isset ( $ this -> contents ) ) { return false ; } // We can save a stream or string...so see which it is $ method = ( is_resource ( $ this -> contents ) && get_resource_type ( $ this -> contents ) == 'stream' ) ? 'putStream' : 'put' ; if ( ! $ this -> $ method ( $ this -> contents ) ) { return false ; } if ( $ scan && ! $ this -> isSafe ( ) ) { $ this -> delete ( ) ; return false ; } return true ; }
Saves the file contents that are already set on the object

@param   bool  $scan  Whether or not to scan for viruses
@return  bool
Saves the file contents that are already set on the object