original_string: public function get_fields(string $table = ''): ?array
    {
      if ( !empty($this->class_cfg) ){
        if ( $table ){
          return $this->class_cfg['arch'][$table] ?? null;
        }
        return $this->class_cfg['arch'];
      }
      return null;
    }
code: public function get_fields(string $table = ''): ?array
    {
      if ( !empty($this->class_cfg) ){
        if ( $table ){
          return $this->class_cfg['arch'][$table] ?? null;
        }
        return $this->class_cfg['arch'];
      }
      return null;
    }
code_tokens: public function get_fields ( string $ table = '' ) : ? array { if ( ! empty ( $ this -> class_cfg ) ) { if ( $ table ) { return $ this -> class_cfg [ 'arch' ] [ $ table ] ?? null ; } return $ this -> class_cfg [ 'arch' ] ; } return null ; }
docstring: Returns the list of fields of the given table, and if empty the list of fields for each table.
  @param string $table
  @return array|null
docstring_tokens: Returns the list of fields of the given table and if empty the list of fields for each table .