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

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