original_string: public static function get_options_array(\core_customfield\field_controller $field) : array {
          if ($field->get_configdata_property('options')) {
              $options = preg_split("/\s*\n\s*/", trim($field->get_configdata_property('options')));
          } else {
              $options = array();
          }
          return array_merge([''], $options);
      }
code: public static function get_options_array(\core_customfield\field_controller $field) : array {
          if ($field->get_configdata_property('options')) {
              $options = preg_split("/\s*\n\s*/", trim($field->get_configdata_property('options')));
          } else {
              $options = array();
          }
          return array_merge([''], $options);
      }
code_tokens: public static function get_options_array ( \ core_customfield \ field_controller $ field ) : array { if ( $ field -> get_configdata_property ( 'options' ) ) { $ options = preg_split ( "/\s*\n\s*/" , trim ( $ field -> get_configdata_property ( 'options' ) ) ) ; } else { $ options = array ( ) ; } return array_merge ( [ '' ] , $ options ) ; }
docstring: Returns the options available as an array.
  
  @param \core_customfield\field_controller $field
  @return array
docstring_tokens: Returns the options available as an array .