Code Duplication    Length = 4-5 lines in 2 locations

lib/Dwoo/Compiler.php 2 locations

@@ 2151-2154 (lines=4) @@
2148
                        $output = Core::NAMESPACE_PLUGINS_HELPERS . 'Plugin' . Core::toCamelCase($func) . '(' .
2149
                            $params . ')';
2150
                    } // Builtin function plugin
2151
                    else {
2152
                        $output = Core::NAMESPACE_PLUGINS_FUNCTIONS . 'Plugin' . Core::toCamelCase($func) . '(' .
2153
                            $params . ')';
2154
                    }
2155
                }
2156
            }
2157
        } // Proxy plugin
@@ 3322-3326 (lines=5) @@
3319
                            } else {
3320
                                $output = ($mapped ? '$this->arrayMap' : 'call_user_func_array') . '(array(\'' . $callback[0] . '\', \'' . $callback[1] . '\'), array(' . $params . '))';
3321
                            }
3322
                        } elseif ($mapped) {
3323
                            $output = '$this->arrayMap(array($this->getObjectPlugin(\''.
3324
                                Core::NAMESPACE_PLUGINS_FUNCTIONS . 'Plugin' . Core::toCamelCase($func) . '\'),
3325
                            \'process\'), array(' . $params . '))';
3326
                        } else {
3327
                            if (class_exists('Plugin' . Core::toCamelCase($func)) !== false) {
3328
                                $output = '$this->classCall(\'Plugin' . Core::toCamelCase($func) . '\', array(' . $params . '))';
3329
                            } elseif (class_exists(Core::NAMESPACE_PLUGINS_BLOCKS . 'Plugin' . Core::toCamelCase($func)) !== false) {