Code Duplication    Length = 7-7 lines in 2 locations

src/Registry/DoctrineDbalConnectionRegistry.php 1 location

@@ 88-94 (lines=7) @@
85
        return $this->connections->keys();
86
    }
87
88
    private function loadConnections(): void
89
    {
90
        if (null === $this->connections) {
91
            $this->connections = $this->container['doctrine.dbal.dbs'];
92
            $this->defaultConnectionName = $this->container['doctrine.dbal.dbs.default'];
93
        }
94
    }
95
}
96

src/Registry/DoctrineOrmManagerRegistry.php 1 location

@@ 259-265 (lines=7) @@
256
        }
257
    }
258
259
    private function loadConnections(): void
260
    {
261
        if (null === $this->connections) {
262
            $this->connections = $this->container['doctrine.dbal.dbs'];
263
            $this->defaultConnectionName = $this->container['doctrine.dbal.dbs.default'];
264
        }
265
    }
266
267
    private function loadManagers(): void
268
    {