Code Duplication    Length = 4-4 lines in 3 locations

lib/Doctrine/DBAL/Connections/MasterSlaveConnection.php 1 location

@@ 186-189 (lines=4) @@
183
            $this->connections['slave'] = $this->_conn = $this->connectTo($connectionName);
184
        }
185
186
        if ($this->_eventManager->hasListeners(Events::postConnect)) {
187
            $eventArgs = new ConnectionEventArgs($this);
188
            $this->_eventManager->dispatchEvent(Events::postConnect, $eventArgs);
189
        }
190
191
        return true;
192
    }

lib/Doctrine/DBAL/Sharding/PoolingShardConnection.php 1 location

@@ 220-223 (lines=4) @@
217
218
        $this->_conn = $this->activeConnections[$this->activeShardId] = $this->connectTo($this->activeShardId);
219
220
        if ($this->_eventManager->hasListeners(Events::postConnect)) {
221
            $eventArgs = new ConnectionEventArgs($this);
222
            $this->_eventManager->dispatchEvent(Events::postConnect, $eventArgs);
223
        }
224
225
        return true;
226
    }

lib/Doctrine/DBAL/Connection.php 1 location

@@ 379-382 (lines=4) @@
376
            $this->beginTransaction();
377
        }
378
379
        if ($this->_eventManager->hasListeners(Events::postConnect)) {
380
            $eventArgs = new Event\ConnectionEventArgs($this);
381
            $this->_eventManager->dispatchEvent(Events::postConnect, $eventArgs);
382
        }
383
384
        return true;
385
    }