Code Duplication    Length = 17-17 lines in 2 locations

acp/portal_module.php 2 locations

@@ 616-632 (lines=17) @@
613
							* this only applies to modules in the center column as the side modules
614
							* will automatically skip the center column when moving if they need to
615
							*/
616
							if ($row['module_classname'] != '\board3\portal\modules\custom')
617
							{
618
								$column_string = $this->portal_columns->number_to_string($row['module_column'] + 1); // move 1 right
619
620
								if ($column_string == 'right' && !$this->modules_constraints->can_move_module(array('left', 'right'), $row['module_classname']))
621
								{
622
									$move_right = false;
623
								}
624
								else
625
								{
626
									$move_right = true;
627
								}
628
							}
629
							else
630
							{
631
								$move_right = true;
632
							}
633
						}
634
						else
635
						{
@@ 646-662 (lines=17) @@
643
							* this only applies to modules in the center column as the side modules
644
							* will automatically skip the center column when moving if they need to
645
							*/
646
							if ($row['module_classname'] != '\board3\portal\modules\custom')
647
							{
648
								$column_string = $this->portal_columns->number_to_string($row['module_column'] - 1); // move 1 left
649
650
								if ($column_string == 'left' && !$this->modules_constraints->can_move_module(array('left', 'right'), $row['module_classname']))
651
								{
652
									$move_left = false;
653
								}
654
								else
655
								{
656
									$move_left = true;
657
								}
658
							}
659
							else
660
							{
661
								$move_left = true;
662
							}
663
						}
664
						else
665
						{