original_string: protected function getFormatOptionsFromPost()
      {
          $presetMode = post('format_preset');
  
          $options = [
              'delimiter' => null,
              'enclosure' => null,
              'escape' => null,
              'encoding' => null
          ];
  
          if ($presetMode == 'custom') {
              $options['delimiter'] = post('format_delimiter');
              $options['enclosure'] = post('format_enclosure');
              $options['escape'] = post('format_escape');
              $options['encoding'] = post('format_encoding');
          }
  
          return $options;
      }
code: protected function getFormatOptionsFromPost()
      {
          $presetMode = post('format_preset');
  
          $options = [
              'delimiter' => null,
              'enclosure' => null,
              'escape' => null,
              'encoding' => null
          ];
  
          if ($presetMode == 'custom') {
              $options['delimiter'] = post('format_delimiter');
              $options['enclosure'] = post('format_enclosure');
              $options['escape'] = post('format_escape');
              $options['encoding'] = post('format_encoding');
          }
  
          return $options;
      }
code_tokens: protected function getFormatOptionsFromPost ( ) { $ presetMode = post ( 'format_preset' ) ; $ options = [ 'delimiter' => null , 'enclosure' => null , 'escape' => null , 'encoding' => null ] ; if ( $ presetMode == 'custom' ) { $ options [ 'delimiter' ] = post ( 'format_delimiter' ) ; $ options [ 'enclosure' ] = post ( 'format_enclosure' ) ; $ options [ 'escape' ] = post ( 'format_escape' ) ; $ options [ 'encoding' ] = post ( 'format_encoding' ) ; } return $ options ; }
docstring: Returns the file format options from postback. This method
  can be used to define presets.
  @return array
docstring_tokens: Returns the file format options from postback . This method can be used to define presets .