Code Duplication    Length = 5-5 lines in 2 locations

lib/Doctrine/ORM/Query/SqlWalker.php 2 locations

@@ 2220-2224 (lines=5) @@
2217
     */
2218
    public function walkArithmeticTerm($term)
2219
    {
2220
        if (is_string($term)) {
2221
            return (isset($this->queryComponents[$term]))
2222
                ? $this->walkResultVariable($this->queryComponents[$term]['token']['value'])
2223
                : $term;
2224
        }
2225
2226
        // Phase 2 AST optimization: Skip processing of ArithmeticTerm
2227
        // if only one ArithmeticFactor is defined
@@ 2240-2244 (lines=5) @@
2237
     */
2238
    public function walkArithmeticFactor($factor)
2239
    {
2240
        if (is_string($factor)) {
2241
            return (isset($this->queryComponents[$factor]))
2242
                ? $this->walkResultVariable($this->queryComponents[$factor]['token']['value'])
2243
                : $factor;
2244
        }
2245
2246
        // Phase 2 AST optimization: Skip processing of ArithmeticFactor
2247
        // if only one ArithmeticPrimary is defined