src/League/Monga/Connection.php
public function listDatabases($detailed = false)
    {
        $result = $this->connection->listDBs();

        if ($detailed) {
            return $result;
        }

        return array_map(
            function ($database) {
                return $database['name'];
            },
            $result['databases']
        );
    }
public function listDatabases($detailed = false)
    {
        $result = $this->connection->listDBs();

        if ($detailed) {
            return $result;
        }

        return array_map(
            function ($database) {
                return $database['name'];
            },
            $result['databases']
        );
    }
public function listDatabases ( $ detailed = false ) { $ result = $ this -> connection -> listDBs ( ) ; if ( $ detailed ) { return $ result ; } return array_map ( function ( $ database ) { return $ database [ 'name' ] ; } , $ result [ 'databases' ] ) ; }
Returns a list of databases.

@param boolean $detailed return detailed information

@return array array containing database name or info arrays
Returns a list of databases .