Code Duplication    Length = 3-5 lines in 4 locations

lib/Dwoo/Compiler.php 4 locations

@@ 2097-2100 (lines=4) @@
2094
                } else {
2095
                    if (class_exists('Plugin' . Core::toCamelCase($func)) !== false) {
2096
                        $output = '$this->classCall(\'Plugin' . $func . '\', array(' . $params . '))';
2097
                    } elseif (class_exists(Core::NAMESPACE_PLUGINS_FUNCTIONS . 'Plugin' . Core::toCamelCase($func)) !== false) {
2098
                        $output = '$this->classCall(\'' . Core::NAMESPACE_PLUGINS_FUNCTIONS . 'Plugin' . $func . '\',
2099
                        array(' . $params . '))';
2100
                    } else {
2101
                        $output = '$this->classCall(\'' . $func . '\', array(' . $params . '))';
2102
                    }
2103
                }
@@ 2115-2118 (lines=4) @@
2112
                    if (function_exists('Plugin' . Core::toCamelCase($func) . 'Compile') !== false) {
2113
                        $funcCompiler = 'Plugin' . Core::toCamelCase($func) . 'Compile';
2114
                    } // Builtin helper plugin
2115
                    elseif (function_exists(Core::NAMESPACE_PLUGINS_HELPERS . 'Plugin' . Core::toCamelCase($func) . 'Compile') !== false) {
2116
                        $funcCompiler = Core::NAMESPACE_PLUGINS_HELPERS . 'Plugin' . Core::toCamelCase($func) .
2117
                            'Compile';
2118
                    } // Builtin function plugin
2119
                    else {
2120
                        $funcCompiler = Core::NAMESPACE_PLUGINS_FUNCTIONS . 'Plugin' . Core::toCamelCase($func) .
2121
                            'Compile';
@@ 2146-2150 (lines=5) @@
2143
                        $output = 'Plugin' . Core::toCamelCase($func) . '(' . $params .
2144
                            ')';
2145
                    } // Builtin helper plugin
2146
                    elseif(function_exists(Core::NAMESPACE_PLUGINS_HELPERS . 'Plugin' . Core::toCamelCase($func)) !==
2147
                        false) {
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 . ')';
@@ 3329-3331 (lines=3) @@
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) {
3330
                                $output = '$this->classCall(\'' . Core::NAMESPACE_PLUGINS_BLOCKS . 'Plugin' . $func . '\', array(' . $params . '))';
3331
                            } elseif (class_exists(Core::NAMESPACE_PLUGINS_FUNCTIONS . 'Plugin' . Core::toCamelCase($func)) !== false) {
3332
                                $output = '$this->classCall(\'' . Core::NAMESPACE_PLUGINS_FUNCTIONS . 'Plugin' . $func . '\', array(' . $params . '))';
3333
                            } else {
3334
                                $output = '$this->classCall(\'' . $func . '\', array(' . $params . '))';