Code Duplication    Length = 6-6 lines in 2 locations

lib/Dwoo/Compiler.php 1 location

@@ 1188-1193 (lines=6) @@
1185
            while ($top = array_pop($this->stack)) {
1186
                if ($top['custom']) {
1187
                    $class = $top['class'];
1188
                } else {
1189
                    $class = current(array_filter([
1190
                        'Plugin' . Core::toCamelCase($top['type']),
1191
                        Core::NAMESPACE_PLUGINS_BLOCKS . 'Plugin' . Core::toCamelCase($top['type'])
1192
                    ], 'class_exists'));
1193
                }
1194
                if (count($this->stack)) {
1195
                    $this->curBlock = &$this->stack[count($this->stack) - 1];
1196
                    $this->push(call_user_func(array(

lib/Dwoo/Core.php 1 location

@@ 1175-1180 (lines=6) @@
1172
    {
1173
        if (isset($this->plugins[$blockName])) {
1174
            $class = $this->plugins[$blockName]['class'];
1175
        } else {
1176
            $class = current(array_filter([
1177
                'Plugin' . self::toCamelCase($blockName),
1178
                self::NAMESPACE_PLUGINS_BLOCKS . 'Plugin' . self::toCamelCase($blockName)
1179
            ], 'class_exists'));
1180
        }
1181
1182
        if ($this->curBlock !== null) {
1183
            $this->curBlock->buffer(ob_get_contents());