Code Duplication    Length = 1-7 lines in 2 locations

lib/Dwoo/Compiler.php 2 locations

@@ 1853-1853 (lines=1) @@
1850
                            $params = $this->parse($paramstr, $ptr, strlen($paramstr), $params, 'function', $ptr);
1851
                        }
1852
1853
                        if ($this->debug) {
1854
                            echo 'PARAM PARSED, POINTER AT ' . $ptr . ' (' . substr($paramstr, $ptr - 1, 3) . ')' . "\n";
1855
                        }
1856
                    }
@@ 2403-2409 (lines=7) @@
2400
            // replace useless brackets by dot accessed vars and strip enclosing quotes if present
2401
            $key = preg_replace('#\[(["\']?)([^$%\[.>-]+)\1\]#', '.$2', $key);
2402
2403
            if ($this->debug) {
2404
                if ($hasMethodCall) {
2405
                    echo 'METHOD CALL FOUND : $' . $key . substr($methodCall, 0, 30) . "\n";
2406
                } else {
2407
                    echo 'VAR FOUND : $' . $key . "\n";
2408
                }
2409
            }
2410
2411
            $key = str_replace('"', '\\"', $key);
2412