Code Duplication    Length = 1-7 lines in 2 locations

lib/Dwoo/Compiler.php 2 locations

@@ 1845-1845 (lines=1) @@
1842
                            $params = $this->parse($paramstr, $ptr, strlen($paramstr), $params, 'function', $ptr);
1843
                        }
1844
1845
                        if ($this->debug) {
1846
                            echo 'PARAM PARSED, POINTER AT ' . $ptr . ' (' . substr($paramstr, $ptr - 1, 3) . ')' . "\n";
1847
                        }
1848
                    }
@@ 2363-2369 (lines=7) @@
2360
            // replace useless brackets by dot accessed vars and strip enclosing quotes if present
2361
            $key = preg_replace('#\[(["\']?)([^$%\[.>-]+)\1\]#', '.$2', $key);
2362
2363
            if ($this->debug) {
2364
                if ($hasMethodCall) {
2365
                    echo 'METHOD CALL FOUND : $' . $key . substr($methodCall, 0, 30) . "\n";
2366
                } else {
2367
                    echo 'VAR FOUND : $' . $key . "\n";
2368
                }
2369
            }
2370
2371
            $key = str_replace('"', '\\"', $key);
2372