Code Duplication    Length = 10-10 lines in 3 locations

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}

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

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