Code Duplication    Length = 4-5 lines in 2 locations

lib/Dwoo/Compiler.php 2 locations

@@ 2145-2148 (lines=4) @@
2142
                        $output = Core::NAMESPACE_PLUGINS_HELPERS . 'Plugin' . Core::toCamelCase($func) . '(' .
2143
                            $params . ')';
2144
                    } // Builtin function plugin
2145
                    else {
2146
                        $output = Core::NAMESPACE_PLUGINS_FUNCTIONS . 'Plugin' . Core::toCamelCase($func) . '(' .
2147
                            $params . ')';
2148
                    }
2149
                }
2150
            }
2151
        } // Proxy plugin
@@ 3315-3319 (lines=5) @@
3312
                            } else {
3313
                                $output = ($mapped ? '$this->arrayMap' : 'call_user_func_array') . '(array(\'' . $callback[0] . '\', \'' . $callback[1] . '\'), array(' . $params . '))';
3314
                            }
3315
                        } elseif ($mapped) {
3316
                            $output = '$this->arrayMap(array($this->getObjectPlugin(\''.
3317
                                Core::NAMESPACE_PLUGINS_FUNCTIONS . 'Plugin' . Core::toCamelCase($func) . '\'), 
3318
                            \'process\'), array(' . $params . '))';
3319
                        } else {
3320
                            if (class_exists('Plugin' . Core::toCamelCase($func)) !== false) {
3321
                                $output = '$this->classCall(\'Plugin' . Core::toCamelCase($func) . '\', array(' . $params . '))';
3322
                            } elseif (class_exists(Core::NAMESPACE_PLUGINS_BLOCKS . 'Plugin' . Core::toCamelCase($func)) !== false) {