Code Duplication    Length = 10-10 lines in 3 locations

lib/Doctrine/ORM/Query/SqlWalker.php 1 location

@@ 246-255 (lines=10) @@
243
    /**
244
     * {@inheritdoc}
245
     */
246
    public function setQueryComponent($dqlAlias, array $queryComponent)
247
    {
248
        $requiredKeys = ['metadata', 'parent', 'relation', 'map', 'nestingLevel', 'token'];
249
250
        if (array_diff($requiredKeys, array_keys($queryComponent))) {
251
            throw QueryException::invalidQueryComponent($dqlAlias);
252
        }
253
254
        $this->queryComponents[$dqlAlias] = $queryComponent;
255
    }
256
257
    /**
258
     * {@inheritdoc}

lib/Doctrine/ORM/Query/TreeWalkerAdapter.php 1 location

@@ 73-82 (lines=10) @@
70
    /**
71
     * {@inheritdoc}
72
     */
73
    public function setQueryComponent($dqlAlias, array $queryComponent)
74
    {
75
        $requiredKeys = ['metadata', 'parent', 'relation', 'map', 'nestingLevel', 'token'];
76
77
        if (array_diff($requiredKeys, array_keys($queryComponent))) {
78
            throw QueryException::invalidQueryComponent($dqlAlias);
79
        }
80
81
        $this->_queryComponents[$dqlAlias] = $queryComponent;
82
    }
83
84
    /**
85
     * @return array

lib/Doctrine/ORM/Query/TreeWalkerChain.php 1 location

@@ 73-82 (lines=10) @@
70
    /**
71
     * {@inheritdoc}
72
     */
73
    public function setQueryComponent($dqlAlias, array $queryComponent)
74
    {
75
        $requiredKeys = ['metadata', 'parent', 'relation', 'map', 'nestingLevel', 'token'];
76
77
        if (array_diff($requiredKeys, array_keys($queryComponent))) {
78
            throw QueryException::invalidQueryComponent($dqlAlias);
79
        }
80
81
        $this->_queryComponents[$dqlAlias] = $queryComponent;
82
    }
83
84
    /**
85
     * {@inheritdoc}