Code Duplication    Length = 3-3 lines in 2 locations

lib/Dwoo/Compiler.php 2 locations

@@ 1784-1786 (lines=3) @@
1781
            }
1782
            $whitespace = strlen(substr($cmdstr, strlen($func), $paramspos - strlen($func)));
1783
            $paramstr   = substr($cmdstr, $paramspos + 1);
1784
            if (substr($paramstr, - 1, 1) === $paramsep) {
1785
                $paramstr = substr($paramstr, 0, - 1);
1786
            }
1787
1788
            if (strlen($paramstr) === 0) {
1789
                $params   = array();
@@ 3064-3066 (lines=3) @@
3061
                }
3062
            } else {
3063
                $paramstr = substr($cmdstr, $paramspos + 1);
3064
                if (substr($paramstr, - 1, 1) === $paramsep) {
3065
                    $paramstr = substr($paramstr, 0, - 1);
3066
                }
3067
3068
                $ptr    = 0;
3069
                $params = array();