original_string: protected function getDatabaseConnections()
      {
          $configFile = $this->findDatabaseFile();
          
          if (!$configFile) {
              return false;
          }
          
          switch (substr($configFile, -3)) {
              case 'php':
                  $connections = require $configFile;
                  break;
              
              case 'yml':
                  $connections = Yaml::readFile($configFile);
                  break;
          }
          
          return $connections;
      }
code: protected function getDatabaseConnections()
      {
          $configFile = $this->findDatabaseFile();
          
          if (!$configFile) {
              return false;
          }
          
          switch (substr($configFile, -3)) {
              case 'php':
                  $connections = require $configFile;
                  break;
              
              case 'yml':
                  $connections = Yaml::readFile($configFile);
                  break;
          }
          
          return $connections;
      }
code_tokens: protected function getDatabaseConnections ( ) { $ configFile = $ this -> findDatabaseFile ( ) ; if ( ! $ configFile ) { return false ; } switch ( substr ( $ configFile , - 3 ) ) { case 'php' : $ connections = require $ configFile ; break ; case 'yml' : $ connections = Yaml :: readFile ( $ configFile ) ; break ; } return $ connections ; }
docstring: Get database connections
  Gets the configuration from the database file.
  
  @return array|bool
docstring_tokens: Get database connections Gets the configuration from the database file .