Code Duplication    Length = 5-5 lines in 2 locations

lib/Dwoo/Compiler.php 2 locations

@@ 2298-2302 (lines=5) @@
2295
            return 'null';
2296
        }
2297
2298
        if ($curBlock !== 'root') {
2299
            $output = '(defined("' . $key . '") ? ' . $key . ' : null)';
2300
        } else {
2301
            $output = $key;
2302
        }
2303
2304
        return $output;
2305
    }
@@ 2635-2639 (lines=5) @@
2632
            foreach (explode('.', ltrim($m[2], '.')) as $part) {
2633
                $key .= '[' . var_export($part, true) . ']';
2634
            }
2635
            if ($curBlock === 'root') {
2636
                $output = $key;
2637
            } else {
2638
                $output = '(isset(' . $key . ')?' . $key . ':null)';
2639
            }
2640
        } elseif (preg_match('#dwoo\.const\.([a-z0-9_:]+)#i', $key, $m)) {
2641
            return $this->parseConstKey($m[1], $curBlock);
2642
        } elseif ($this->scope !== null) {