Code Duplication    Length = 4-6 lines in 2 locations

lib/Dwoo/Compiler.php 2 locations

@@ 1928-1933 (lines=6) @@
1925
                        'Plugin' . Core::toCamelCase($func),
1926
                        ($pluginType & Core::COMPILABLE_PLUGIN) ? 'compile' : 'process'
1927
                    ), $state);
1928
                } else {
1929
                    $params = $this->mapParams($params, array(
1930
                        Core::NAMESPACE_PLUGINS_FUNCTIONS . 'Plugin' . Core::toCamelCase($func),
1931
                        ($pluginType & Core::COMPILABLE_PLUGIN) ? 'compile' : 'process'
1932
                    ), $state);
1933
                }
1934
            }
1935
        } elseif ($pluginType & Core::FUNC_PLUGIN) {
1936
            if ($pluginType & Core::CUSTOM_PLUGIN) {
@@ 1950-1953 (lines=4) @@
1947
                    $params = $this->mapParams($params, Core::NAMESPACE_PLUGINS_HELPERS . 'Plugin' . Core::toCamelCase
1948
                        ($func) . (($pluginType & Core::COMPILABLE_PLUGIN) ? 'Compile' : ''), $state);
1949
                } // Builtin function plugin
1950
                else {
1951
                    $params = $this->mapParams($params, Core::NAMESPACE_PLUGINS_FUNCTIONS . 'Plugin' . Core::toCamelCase
1952
                        ($func) . (($pluginType & Core::COMPILABLE_PLUGIN) ? 'Compile' : ''), $state);
1953
                }
1954
            }
1955
        } elseif ($pluginType & Core::SMARTY_MODIFIER) {
1956
            $output = 'smarty_modifier_' . $func . '(' . implode(', ', $params) . ')';