Code Duplication    Length = 9-9 lines in 2 locations

lib/midcom/helper/datamanager2/indexer/document.php 1 location

@@ 209-217 (lines=9) @@
206
                case 'unstored':
207
                case 'unindexed':
208
                case 'text':
209
                case 'keyword':
210
                    $data = $this->_datamanager->types[$name]->convert_to_html();
211
                    $function = 'add_' . $field['index_method'];
212
                    $this->$function($name, $data);
213
                    if ($field['index_merge_with_content'])
214
                    {
215
                        $this->content .= $data . "\n";
216
                    }
217
                    break;
218
219
                case 'noindex':
220
                    break;

src/midcom/datamanager/indexer/document.php 1 location

@@ 207-215 (lines=9) @@
204
                case 'unstored':
205
                case 'unindexed':
206
                case 'text':
207
                case 'keyword':
208
                    $data = $renderer->widget($field);
209
                    $function = 'add_' . $method;
210
                    $this->$function($name, $data);
211
                    if ($field->vars['index_merge_with_content'])
212
                    {
213
                        $this->content .= $data . "\n";
214
                    }
215
                    break;
216
217
                case 'noindex':
218
                    break;