Code Duplication    Length = 8-8 lines in 2 locations

DoctrineBundle.php 2 locations

@@ 109-116 (lines=8) @@
106
        }
107
    }
108
109
    private function clearManagerIfRequired($id)
110
    {
111
        if ($this->container->getParameter($id . '.clear_on_shutdown') === true) {
112
            if (!$this->container instanceof IntrospectableContainerInterface || $this->container->initialized($id)) {
113
                $this->container->get($id)->clear();
114
            }
115
        }
116
    }
117
118
    private function closeConnectionIfRequired($id)
119
    {
@@ 118-125 (lines=8) @@
115
        }
116
    }
117
118
    private function closeConnectionIfRequired($id)
119
    {
120
        if ($this->container->getParameter($id . '.close_on_shutdown') === true) {
121
            if (!$this->container instanceof IntrospectableContainerInterface || $this->container->initialized($id)) {
122
                $this->container->get($id)->close();
123
            }
124
        }
125
    }
126
127
    /**
128
     * {@inheritDoc}