Code Duplication    Length = 4-5 lines in 2 locations

lib/Dwoo/Compiler.php 2 locations

@@ 2053-2056 (lines=4) @@
2050
                        $output = Core::NAMESPACE_PLUGINS_HELPERS . 'Plugin' . Core::toCamelCase($func) . '(' .
2051
                            $params . ')';
2052
                    } // Builtin function plugin
2053
                    else {
2054
                        $output = Core::NAMESPACE_PLUGINS_FUNCTIONS . 'Plugin' . Core::toCamelCase($func) . '(' .
2055
                            $params . ')';
2056
                    }
2057
                }
2058
            }
2059
        } elseif ($pluginType & Core::CLASS_PLUGIN) {
@@ 3271-3275 (lines=5) @@
3268
                            } else {
3269
                                $output = ($mapped ? '$this->arrayMap' : 'call_user_func_array') . '(array(\'' . $callback[0] . '\', \'' . $callback[1] . '\'), array(' . $params . '))';
3270
                            }
3271
                        } elseif ($mapped) {
3272
                            $output = '$this->arrayMap(array($this->getObjectPlugin(\''.
3273
                                Core::NAMESPACE_PLUGINS_FUNCTIONS . 'Plugin' . Core::toCamelCase($func) . '\'), 
3274
                            \'process\'), array(' . $params . '))';
3275
                        } else {
3276
                            if (class_exists('Plugin' . Core::toCamelCase($func)) !== false) {
3277
                                $output = '$this->classCall(\'Plugin' . Core::toCamelCase($func) . '\', array(' . $params . '))';
3278
                            } else {