Code Duplication    Length = 11-11 lines in 2 locations

src/Registry/DoctrineDbalConnectionRegistry.php 1 location

@@ 84-94 (lines=11) @@
81
    /**
82
     * @return Connection[]
83
     */
84
    public function getConnections(): array
85
    {
86
        $this->loadConnections();
87
88
        $connections = array();
89
        foreach ($this->connections->keys() as $name) {
90
            $connections[$name] = $this->connections[$name];
91
        }
92
93
        return $connections;
94
    }
95
96
    /**
97
     * @return string[]

src/Registry/DoctrineOrmManagerRegistry.php 1 location

@@ 90-100 (lines=11) @@
87
    /**
88
     * @return Connection[]
89
     */
90
    public function getConnections(): array
91
    {
92
        $this->loadConnections();
93
94
        $connections = array();
95
        foreach ($this->connections->keys() as $name) {
96
            $connections[$name] = $this->connections[$name];
97
        }
98
99
        return $connections;
100
    }
101
102
    /**
103
     * @return string[]