Code Duplication    Length = 5-5 lines in 3 locations

lib/Dwoo/Compiler.php 3 locations

@@ 2017-2021 (lines=5) @@
2014
                    if (function_exists('Plugin' . Core::toCamelCase($func) . 'Compile') !== false) {
2015
                        $funcCompiler = 'Plugin' . Core::toCamelCase($func) . 'Compile';
2016
                    } // Builtin helper plugin
2017
                    elseif(function_exists(Core::NAMESPACE_PLUGINS_HELPERS . 'Plugin' . Core::toCamelCase($func) .
2018
                            'Compile') !== false) {
2019
                        $funcCompiler = Core::NAMESPACE_PLUGINS_HELPERS . 'Plugin' . Core::toCamelCase($func) .
2020
                            'Compile';
2021
                    } // Builtin function plugin
2022
                    else {
2023
                        $funcCompiler = Core::NAMESPACE_PLUGINS_FUNCTIONS . 'Plugin' . Core::toCamelCase($func) .
2024
                            'Compile';
@@ 2048-2052 (lines=5) @@
2045
                        $output = 'Plugin' . Core::toCamelCase($func) . '(' . $params .
2046
                            ')';
2047
                    } // Builtin helper plugin
2048
                    elseif(function_exists(Core::NAMESPACE_PLUGINS_HELPERS . 'Plugin' . Core::toCamelCase($func)) !==
2049
                        false) {
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 . ')';
@@ 2113-2117 (lines=5) @@
2110
                } else {
2111
                    if (class_exists('Plugin' . Core::toCamelCase($func)) !== false) {
2112
                        $output = '$this->classCall(\'Plugin' . $func . '\', array(' . $params . '))';
2113
                    } elseif (class_exists(Core::NAMESPACE_PLUGINS_FUNCTIONS . 'Plugin' . Core::toCamelCase($func)) !==
2114
                    false) {
2115
                        $output = '$this->classCall(\'' . Core::NAMESPACE_PLUGINS_FUNCTIONS . 'Plugin' . $func . '\', 
2116
                        array(' . $params . '))';
2117
                    } else{
2118
                        $output = '$this->classCall(\'' . $func . '\', array(' . $params . '))';
2119
                    }
2120
                }