Code Duplication    Length = 7-7 lines in 2 locations

src/Registry/DoctrineDbalConnectionRegistry.php 1 location

@@ 106-112 (lines=7) @@
103
        return $this->connections->keys();
104
    }
105
106
    private function loadConnections()
107
    {
108
        if (null === $this->connections) {
109
            $this->connections = $this->container['doctrine.dbal.dbs'];
110
            $this->defaultConnectionName = $this->container['doctrine.dbal.dbs.default'];
111
        }
112
    }
113
}
114

src/Registry/DoctrineOrmManagerRegistry.php 1 location

@@ 251-257 (lines=7) @@
248
        }
249
    }
250
251
    private function loadConnections()
252
    {
253
        if (null === $this->connections) {
254
            $this->connections = $this->container['doctrine.dbal.dbs'];
255
            $this->defaultConnectionName = $this->container['doctrine.dbal.dbs.default'];
256
        }
257
    }
258
259
    private function loadManagers()
260
    {