GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Code Duplication    Length = 18-18 lines in 2 locations

modules/document/document.model.php 2 locations

@@ 1522-1539 (lines=18) @@
1519
				}
1520
1521
				// If you do not value the best division top
1522
				if(!$division)
1523
				{
1524
					$division_args = new stdClass();
1525
					$division_args->module_srl = $args->module_srl;
1526
					$division_args->exclude_module_srl = $args->exclude_module_srl;
1527
					$division_args->list_count = 1;
1528
					$division_args->sort_index = $args->sort_index;
1529
					$division_args->order_type = $args->order_type;
1530
					$division_args->statusList = $args->statusList;
1531
1532
					$output = executeQuery($divisionSqlID, $division_args, array('list_order'));
1533
					if($output->data)
1534
					{
1535
						$item = array_pop($output->data);
1536
						$division = $item->list_order;
1537
					}
1538
					$division_args = null;
1539
				}
1540
1541
				// The last division
1542
				$last_division = (int)Context::get('last_division');
@@ 1545-1562 (lines=18) @@
1542
				$last_division = (int)Context::get('last_division');
1543
1544
				// Division after division from the 5000 value of the specified Wanted
1545
				if(!$last_division)
1546
				{
1547
					$last_division_args = new stdClass();
1548
					$last_division_args->module_srl = $args->module_srl;
1549
					$last_division_args->exclude_module_srl = $args->exclude_module_srl;
1550
					$last_division_args->list_count = 1;
1551
					$last_division_args->sort_index = $args->sort_index;
1552
					$last_division_args->order_type = $args->order_type;
1553
					$last_division_args->list_order = $division;
1554
					$last_division_args->page = 5001;
1555
1556
					$output = executeQuery($divisionSqlID, $last_division_args, array('list_order'));
1557
					if($output->data)
1558
					{
1559
						$item = array_pop($output->data);
1560
						$last_division = $item->list_order;
1561
					}
1562
				}
1563
1564
				// Make sure that after last_division article
1565
				if($last_division)