Code Duplication    Length = 4-4 lines in 3 locations

src/Utils/DoctrineOrmModuleConfig.php 3 locations

@@ 162-165 (lines=4) @@
159
160
        $confName = $omConfig['configuration'];
161
162
        if (!array_key_exists($confName, $doctrineConfig['configuration']) || !is_array($doctrineConfig['configuration'][$confName])) {
163
            $this->namespacesByObjectManagerCache[$objectManagerServiceName] = false;
164
            return false;
165
        }
166
167
        $omConfiguration = $doctrineConfig['configuration'][$confName];
168
@@ 176-179 (lines=4) @@
173
174
        $driverName = $omConfiguration['driver'];
175
176
        if (!array_key_exists($driverName, $doctrineConfig['driver']) || !is_array($doctrineConfig['driver'][$driverName])) {
177
            $this->namespacesByObjectManagerCache[$objectManagerServiceName] = false;
178
            return false;
179
        }
180
181
        $driverConfig = $doctrineConfig['driver'][$driverName];
182
@@ 183-186 (lines=4) @@
180
181
        $driverConfig = $doctrineConfig['driver'][$driverName];
182
183
        if (!array_key_exists('drivers', $driverConfig) || !is_array($driverConfig['drivers'])) {
184
            $this->namespacesByObjectManagerCache[$objectManagerServiceName] = false;
185
            return false;
186
        }
187
188
        $this->namespacesByObjectManagerCache[$objectManagerServiceName] = $this->buildIndexNamespaces($driverConfig['drivers']);
189