Code Duplication    Length = 4-6 lines in 2 locations

lib/Dwoo/Compiler.php 2 locations

@@ 1948-1953 (lines=6) @@
1945
                        Core::NAMESPACE_PLUGINS_HELPERS . 'Plugin' . Core::toCamelCase($func),
1946
                        ($pluginType & Core::COMPILABLE_PLUGIN) ? 'compile' : 'process'
1947
                    ), $state);
1948
                } else {
1949
                    $params = $this->mapParams($params, array(
1950
                        Core::NAMESPACE_PLUGINS_FUNCTIONS . 'Plugin' . Core::toCamelCase($func),
1951
                        ($pluginType & Core::COMPILABLE_PLUGIN) ? 'compile' : 'process'
1952
                    ), $state);
1953
                }
1954
            }
1955
        } // PHP function plugin
1956
        elseif ($pluginType & Core::FUNC_PLUGIN) {
@@ 1971-1974 (lines=4) @@
1968
                    $params = $this->mapParams($params, Core::NAMESPACE_PLUGINS_HELPERS . 'Plugin' . Core::toCamelCase
1969
                        ($func) . (($pluginType & Core::COMPILABLE_PLUGIN) ? 'Compile' : ''), $state);
1970
                } // Builtin function plugin
1971
                else {
1972
                    $params = $this->mapParams($params, Core::NAMESPACE_PLUGINS_FUNCTIONS . 'Plugin' . Core::toCamelCase
1973
                        ($func) . (($pluginType & Core::COMPILABLE_PLUGIN) ? 'Compile' : ''), $state);
1974
                }
1975
            }
1976
        } // Smarty modifier
1977
        elseif ($pluginType & Core::SMARTY_MODIFIER) {