original_string: public function can_setup_server() {
  
          $status = $this->engine->is_server_configured();
          if ($status !== true) {
              return $status;
          }
  
          // At this stage we know that the server is properly configured with a valid host:port and indexname.
          // We're not too concerned about repeating the SolrClient::system() call (already called in
          // is_server_configured) because this is just a setup script.
          if ($this->engine->get_solr_major_version() < 5) {
              // Schema setup script only available for 5.0 onwards.
              return get_string('schemasetupfromsolr5', 'search_solr');
          }
  
          return true;
      }
code: public function can_setup_server() {
  
          $status = $this->engine->is_server_configured();
          if ($status !== true) {
              return $status;
          }
  
          // At this stage we know that the server is properly configured with a valid host:port and indexname.
          // We're not too concerned about repeating the SolrClient::system() call (already called in
          // is_server_configured) because this is just a setup script.
          if ($this->engine->get_solr_major_version() < 5) {
              // Schema setup script only available for 5.0 onwards.
              return get_string('schemasetupfromsolr5', 'search_solr');
          }
  
          return true;
      }
code_tokens: public function can_setup_server ( ) { $ status = $ this -> engine -> is_server_configured ( ) ; if ( $ status !== true ) { return $ status ; } // At this stage we know that the server is properly configured with a valid host:port and indexname. // We're not too concerned about repeating the SolrClient::system() call (already called in // is_server_configured) because this is just a setup script. if ( $ this -> engine -> get_solr_major_version ( ) < 5 ) { // Schema setup script only available for 5.0 onwards. return get_string ( 'schemasetupfromsolr5' , 'search_solr' ) ; } return true ; }
docstring: Can setup be executed against the configured server.
  
  @return true|string True or error message.
docstring_tokens: Can setup be executed against the configured server .