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

@@ 5651-5658 (lines=8) @@
5648
            if (strpos($line, '/**') !== false) {
5649
                $docblock_start_found = true;
5650
            }
5651
        } elseif (!$name_found) {
5652
            // find name
5653
            if (preg_match("/^\s+\*\s+(.+)/", $line, $ma)) {
5654
                $param = 'name';
5655
                $val = trim($ma[1]);
5656
                $name_found = !empty($val);
5657
            }
5658
        } elseif (!$description_found) {
5659
            // find description
5660
            if (preg_match("/^\s+\*\s+(.+)/", $line, $ma)) {
5661
                $param = 'description';