original_string: public static function getDatabaseConfig($dbConfig = null)
      {
          $config = Config::getInstance();
  
          if (is_null($dbConfig)) {
              $dbConfig = $config->database;
          }
  
          /**
           * Triggered before a database connection is established.
           *
           * This event can be used to change the settings used to establish a connection.
           *
           * @param array *$dbInfos Reference to an array containing database connection info,
           *                        including:
           *
           *                        - **host**: The host name or IP address to the MySQL database.
           *                        - **username**: The username to use when connecting to the
           *                                        database.
           *                        - **password**: The password to use when connecting to the
           *                                       database.
           *                        - **dbname**: The name of the Piwik MySQL database.
           *                        - **port**: The MySQL database port to use.
           *                        - **adapter**: either `'PDO\MYSQL'` or `'MYSQLI'`
           *                        - **type**: The MySQL engine to use, for instance 'InnoDB'
           */
          Piwik::postEvent('Db.getDatabaseConfig', array(&$dbConfig));
  
          $dbConfig['profiler'] = @$config->Debug['enable_sql_profiler'];
  
          return $dbConfig;
      }
code: public static function getDatabaseConfig($dbConfig = null)
      {
          $config = Config::getInstance();
  
          if (is_null($dbConfig)) {
              $dbConfig = $config->database;
          }
  
          /**
           * Triggered before a database connection is established.
           *
           * This event can be used to change the settings used to establish a connection.
           *
           * @param array *$dbInfos Reference to an array containing database connection info,
           *                        including:
           *
           *                        - **host**: The host name or IP address to the MySQL database.
           *                        - **username**: The username to use when connecting to the
           *                                        database.
           *                        - **password**: The password to use when connecting to the
           *                                       database.
           *                        - **dbname**: The name of the Piwik MySQL database.
           *                        - **port**: The MySQL database port to use.
           *                        - **adapter**: either `'PDO\MYSQL'` or `'MYSQLI'`
           *                        - **type**: The MySQL engine to use, for instance 'InnoDB'
           */
          Piwik::postEvent('Db.getDatabaseConfig', array(&$dbConfig));
  
          $dbConfig['profiler'] = @$config->Debug['enable_sql_profiler'];
  
          return $dbConfig;
      }
code_tokens: public static function getDatabaseConfig ( $ dbConfig = null ) { $ config = Config :: getInstance ( ) ; if ( is_null ( $ dbConfig ) ) { $ dbConfig = $ config -> database ; } /**
           * Triggered before a database connection is established.
           *
           * This event can be used to change the settings used to establish a connection.
           *
           * @param array *$dbInfos Reference to an array containing database connection info,
           *                        including:
           *
           *                        - **host**: The host name or IP address to the MySQL database.
           *                        - **username**: The username to use when connecting to the
           *                                        database.
           *                        - **password**: The password to use when connecting to the
           *                                       database.
           *                        - **dbname**: The name of the Piwik MySQL database.
           *                        - **port**: The MySQL database port to use.
           *                        - **adapter**: either `'PDO\MYSQL'` or `'MYSQLI'`
           *                        - **type**: The MySQL engine to use, for instance 'InnoDB'
           */ Piwik :: postEvent ( 'Db.getDatabaseConfig' , array ( & $ dbConfig ) ) ; $ dbConfig [ 'profiler' ] = @ $ config -> Debug [ 'enable_sql_profiler' ] ; return $ dbConfig ; }
docstring: Returns an array with the Database connection information.
  
  @param array|null $dbConfig
  @return array
docstring_tokens: Returns an array with the Database connection information .