original_string: public function chmod($mode, $file) {
  		$this->connectIfNeeded();
  		$this->handle->chmod($mode, $file);
  		$this->onFileModeChanged(
  			new Event(['sender' => $this, 'data' => [
  				'mode' => $mode, 'file' => $file
  			]])
  		);
  	}
code: public function chmod($mode, $file) {
  		$this->connectIfNeeded();
  		$this->handle->chmod($mode, $file);
  		$this->onFileModeChanged(
  			new Event(['sender' => $this, 'data' => [
  				'mode' => $mode, 'file' => $file
  			]])
  		);
  	}
code_tokens: public function chmod ( $ mode , $ file ) { $ this -> connectIfNeeded ( ) ; $ this -> handle -> chmod ( $ mode , $ file ) ; $ this -> onFileModeChanged ( new Event ( [ 'sender' => $ this , 'data' => [ 'mode' => $ mode , 'file' => $ file ] ] ) ) ; }
docstring: Set permissions on a file via FTP.
  
  @param string    $mode          The new permissions, given as an <strong>octal</strong> value.
  @param string    $file          The remote file.
  
  @throws FtpException If couldn't set file permission.
docstring_tokens: Set permissions on a file via FTP .