Code Duplication    Length = 3-3 lines in 2 locations

lib/Dwoo/Compiler.php 2 locations

@@ 1792-1794 (lines=3) @@
1789
            }
1790
            $whitespace = strlen(substr($cmdstr, strlen($func), $paramspos - strlen($func)));
1791
            $paramstr   = substr($cmdstr, $paramspos + 1);
1792
            if (substr($paramstr, - 1, 1) === $paramsep) {
1793
                $paramstr = substr($paramstr, 0, - 1);
1794
            }
1795
1796
            if (strlen($paramstr) === 0) {
1797
                $params   = array();
@@ 3103-3105 (lines=3) @@
3100
                }
3101
            } else {
3102
                $paramstr = substr($cmdstr, $paramspos + 1);
3103
                if (substr($paramstr, - 1, 1) === $paramsep) {
3104
                    $paramstr = substr($paramstr, 0, - 1);
3105
                }
3106
3107
                $ptr    = 0;
3108
                $params = array();