Code Duplication    Length = 14-14 lines in 2 locations

src/Registry/DoctrineDbalConnectionRegistry.php 1 location

@@ 63-76 (lines=14) @@
60
    /**
61
     * @return array<string, Connection>
62
     */
63
    public function getConnections(): array
64
    {
65
        $this->loadConnections();
66
67
        $connections = [];
68
        /** @var string $name */
69
        foreach ($this->connections->keys() as $name) {
70
            /** @var Connection $connection */
71
            $connection = $this->connections[$name];
72
            $connections[$name] = $connection;
73
        }
74
75
        return $connections;
76
    }
77
78
    /**
79
     * @return array<string>

src/Registry/DoctrineOrmManagerRegistry.php 1 location

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