original_string: public static function get()
      {
          if (SettingsServer::isTrackerApiRequest()) {
              return Tracker::getDatabase();
          }
  
          if (!self::hasDatabaseObject()) {
              self::createDatabaseObject();
          }
  
          return self::$connection;
      }
code: public static function get()
      {
          if (SettingsServer::isTrackerApiRequest()) {
              return Tracker::getDatabase();
          }
  
          if (!self::hasDatabaseObject()) {
              self::createDatabaseObject();
          }
  
          return self::$connection;
      }
code_tokens: public static function get ( ) { if ( SettingsServer :: isTrackerApiRequest ( ) ) { return Tracker :: getDatabase ( ) ; } if ( ! self :: hasDatabaseObject ( ) ) { self :: createDatabaseObject ( ) ; } return self :: $ connection ; }
docstring: Returns the database connection and creates it if it hasn't been already.
  
  @return \Piwik\Tracker\Db|\Piwik\Db\AdapterInterface|\Piwik\Db
docstring_tokens: Returns the database connection and creates it if it hasn t been already .