Code Duplication    Length = 3-3 lines in 2 locations

lib/Dwoo/Compiler.php 2 locations

@@ 1730-1732 (lines=3) @@
1727
        $cmdstr = substr($in, $from, $to - $from);
1728
        preg_match('/^(\\\\?[a-z_](?:\\\\?[a-z0-9_]+)*(?:::[a-z_][a-z0-9_]*)?)(\s*' . $this->rdr . '|\s*;)?/i', $cmdstr, $match);
1729
1730
        if (empty($match[1])) {
1731
            throw new CompilationException($this, 'Parse error, invalid function name : ' . substr($cmdstr, 0, 15));
1732
        }
1733
1734
        $func = $match[1];
1735
@@ 3049-3051 (lines=3) @@
3046
            }
3047
            $cmdstr   = $cmdstrsrc;
3048
            $paramsep = ':';
3049
            if (!preg_match('/^(@{0,2}[a-z_][a-z0-9_]*)(:)?/i', $cmdstr, $match)) {
3050
                throw new CompilationException($this, 'Invalid modifier name, started with : ' . substr($cmdstr, 0, 10));
3051
            }
3052
            $paramspos = !empty($match[2]) ? strlen($match[1]) : false;
3053
            $func      = $match[1];
3054