Code Duplication    Length = 3-3 lines in 2 locations

lib/Dwoo/Compiler.php 2 locations

@@ 1738-1740 (lines=3) @@
1735
        $cmdstr = substr($in, $from, $to - $from);
1736
        preg_match('/^(\\\\?[a-z_](?:\\\\?[a-z0-9_]+)*(?:::[a-z_][a-z0-9_]*)?)(\s*' . $this->rdr . '|\s*;)?/i', $cmdstr, $match);
1737
1738
        if (empty($match[1])) {
1739
            throw new CompilationException($this, 'Parse error, invalid function name : ' . substr($cmdstr, 0, 15));
1740
        }
1741
1742
        $func = $match[1];
1743
@@ 3089-3091 (lines=3) @@
3086
            }
3087
            $cmdstr   = $cmdstrsrc;
3088
            $paramsep = ':';
3089
            if (!preg_match('/^(@{0,2}[a-z_][a-z0-9_]*)(:)?/i', $cmdstr, $match)) {
3090
                throw new CompilationException($this, 'Invalid modifier name, started with : ' . substr($cmdstr, 0, 10));
3091
            }
3092
            $paramspos = !empty($match[2]) ? strlen($match[1]) : false;
3093
            $func      = $match[1];
3094