original_string: public function getFormData($field = null)
      {
          $filters = session('bzarzuela.filters');
  
          if (isset($filters[$this->key]['form_data'])) {
  
              if (! is_null($field)) {
  
                  if (! isset($filters[$this->key]['form_data'][$field])) {
                      return null;
                  }
  
                  return $filters[$this->key]['form_data'][$field];
              }
  
              return $filters[$this->key]['form_data'];
          }
  
          if (! is_null($field)) {
              return null;
          }
  
          return [];
      }
code: public function getFormData($field = null)
      {
          $filters = session('bzarzuela.filters');
  
          if (isset($filters[$this->key]['form_data'])) {
  
              if (! is_null($field)) {
  
                  if (! isset($filters[$this->key]['form_data'][$field])) {
                      return null;
                  }
  
                  return $filters[$this->key]['form_data'][$field];
              }
  
              return $filters[$this->key]['form_data'];
          }
  
          if (! is_null($field)) {
              return null;
          }
  
          return [];
      }
code_tokens: public function getFormData ( $ field = null ) { $ filters = session ( 'bzarzuela.filters' ) ; if ( isset ( $ filters [ $ this -> key ] [ 'form_data' ] ) ) { if ( ! is_null ( $ field ) ) { if ( ! isset ( $ filters [ $ this -> key ] [ 'form_data' ] [ $ field ] ) ) { return null ; } return $ filters [ $ this -> key ] [ 'form_data' ] [ $ field ] ; } return $ filters [ $ this -> key ] [ 'form_data' ] ; } if ( ! is_null ( $ field ) ) { return null ; } return [ ] ; }
docstring: Gets either the whole form data or just a field inside.
  
  @param null $field
  @return array|null
docstring_tokens: Gets either the whole form data or just a field inside .