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

@@ 5897-5904 (lines=8) @@
5894
            if (strpos($line, '/**') !== false) {
5895
                $docblock_start_found = true;
5896
            }
5897
        } elseif (!$name_found) {
5898
            // find name
5899
            if (preg_match("/^\s+\*\s+(.+)/", $line, $ma)) {
5900
                $param = 'name';
5901
                $val = trim($ma[1]);
5902
                $name_found = !empty($val);
5903
            }
5904
        } elseif (!$description_found) {
5905
            // find description
5906
            if (preg_match("/^\s+\*\s+(.+)/", $line, $ma)) {
5907
                $param = 'description';