Code Duplication    Length = 8-9 lines in 2 locations

install/setup.info.php 1 location

@@ 305-313 (lines=9) @@
302
                        $docblock_start_found = true;
303
                    }
304
                    continue;
305
                } elseif(!$name_found) {
306
                    // find name
307
                    $ma = null;
308
                    if(preg_match("/^\s+\*\s+(.+)/", $line, $ma)) {
309
                        $params['name'] = trim($ma[1]);
310
                        $name_found = !empty($params['name']);
311
                    }
312
                    continue;
313
                } elseif(!$description_found) {
314
                    // find description
315
                    $ma = null;
316
                    if(preg_match("/^\s+\*\s+(.+)/", $line, $ma)) {

manager/includes/document.parser.class.inc.php 1 location

@@ 5672-5679 (lines=8) @@
5669
            if (strpos($line, '/**') !== false) {
5670
                $docblock_start_found = true;
5671
            }
5672
        } elseif (!$name_found) {
5673
            // find name
5674
            if (preg_match("/^\s+\*\s+(.+)/", $line, $ma)) {
5675
                $param = 'name';
5676
                $val = trim($ma[1]);
5677
                $name_found = !empty($val);
5678
            }
5679
        } elseif (!$description_found) {
5680
            // find description
5681
            if (preg_match("/^\s+\*\s+(.+)/", $line, $ma)) {
5682
                $param = 'description';