Code Duplication    Length = 1-7 lines in 2 locations

lib/Dwoo/Compiler.php 2 locations

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