Code Duplication    Length = 3-5 lines in 4 locations

lib/Dwoo/Compiler.php 4 locations

@@ 2091-2095 (lines=5) @@
2088
                } else {
2089
                    if (class_exists('Plugin' . Core::toCamelCase($func)) !== false) {
2090
                        $output = '$this->classCall(\'Plugin' . $func . '\', array(' . $params . '))';
2091
                    } elseif (class_exists(Core::NAMESPACE_PLUGINS_FUNCTIONS . 'Plugin' . Core::toCamelCase($func)) !== false) {
2092
                        $output = '$this->classCall(\'' . Core::NAMESPACE_PLUGINS_FUNCTIONS . 'Plugin' . $func . '\', 
2093
                        array(' . $params . '))';
2094
                    } else {
2095
                        $output = '$this->classCall(\'' . $func . '\', array(' . $params . '))';
2096
                    }
2097
                }
2098
            }
@@ 2109-2113 (lines=5) @@
2106
                    if (function_exists('Plugin' . Core::toCamelCase($func) . 'Compile') !== false) {
2107
                        $funcCompiler = 'Plugin' . Core::toCamelCase($func) . 'Compile';
2108
                    } // Builtin helper plugin
2109
                    elseif (function_exists(Core::NAMESPACE_PLUGINS_HELPERS . 'Plugin' . Core::toCamelCase($func) . 'Compile') !== false) {
2110
                        $funcCompiler = Core::NAMESPACE_PLUGINS_HELPERS . 'Plugin' . Core::toCamelCase($func) .
2111
                            'Compile';
2112
                    } // Builtin function plugin
2113
                    else {
2114
                        $funcCompiler = Core::NAMESPACE_PLUGINS_FUNCTIONS . 'Plugin' . Core::toCamelCase($func) .
2115
                            'Compile';
2116
                    }
@@ 2140-2144 (lines=5) @@
2137
                        $output = 'Plugin' . Core::toCamelCase($func) . '(' . $params .
2138
                            ')';
2139
                    } // Builtin helper plugin
2140
                    elseif(function_exists(Core::NAMESPACE_PLUGINS_HELPERS . 'Plugin' . Core::toCamelCase($func)) !==
2141
                        false) {
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 . ')';
@@ 3322-3324 (lines=3) @@
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) {
3323
                                $output = '$this->classCall(\'' . Core::NAMESPACE_PLUGINS_BLOCKS . 'Plugin' . $func . '\', array(' . $params . '))';
3324
                            } elseif (class_exists(Core::NAMESPACE_PLUGINS_FUNCTIONS . 'Plugin' . Core::toCamelCase($func)) !== false) {
3325
                                $output = '$this->classCall(\'' . Core::NAMESPACE_PLUGINS_FUNCTIONS . 'Plugin' . $func . '\', array(' . $params . '))';
3326
                            } else {
3327
                                $output = '$this->classCall(\'' . $func . '\', array(' . $params . '))';