Code Duplication    Length = 7-7 lines in 2 locations

lib/Dwoo/Compiler.php 2 locations

@@ 2632-2638 (lines=7) @@
2629
                    } else {
2630
                        $output = '(($tmp = ' . $output . ') ? $this->getSecurityPolicy()->callMethod($this, $tmp, ' . var_export($method, true) . ', array' . $args . ') : null)';
2631
                    }
2632
                } else {
2633
                    if ($curBlock === 'root') {
2634
                        $output .= '->' . $parsedCall;
2635
                    } else {
2636
                        $output = '(($tmp = ' . $output . ') ? $tmp->' . $parsedCall . ' : null)';
2637
                    }
2638
                }
2639
            }
2640
        }
2641
@@ 2690-2696 (lines=7) @@
2687
                    $output = '$this->readParentVar(1)';
2688
                } elseif ($key === '_key') {
2689
                    $output = '$tmp_key';
2690
                } else {
2691
                    if ($curBlock === 'root') {
2692
                        $output = '$this->scope["' . $key . '"]';
2693
                    } else {
2694
                        $output = '(isset($this->scope["' . $key . '"]) ? $this->scope["' . $key . '"] : null)';
2695
                    }
2696
                }
2697
            } else {
2698
                preg_match_all('#(\[|->|\.)?((?:[a-z0-9_]|-(?!>))+|(\\\?[\'"])[^\3]*?\3)\]?#i', $key, $m);
2699