Code Duplication    Length = 14-15 lines in 2 locations

classes/PodsAdmin.php 2 locations

@@ 2545-2559 (lines=15) @@
2542
	 *
2543
	 * @return bool
2544
	 */
2545
	public function admin_setup_duplicate_restrict( $restricted, $restrict, $action, $row, $obj ) {
2546
2547
		if ( in_array(
2548
			$row['real_type'], array(
2549
				'user',
2550
				'media',
2551
				'comment',
2552
			), true
2553
		) ) {
2554
			$restricted = true;
2555
		}
2556
2557
		return $restricted;
2558
2559
	}
2560
2561
	/**
2562
	 * Reset a pod
@@ 2595-2608 (lines=14) @@
2592
	 *
2593
	 * @since 2.3.10
2594
	 */
2595
	public function admin_setup_reset_restrict( $restricted, $restrict, $action, $row, $obj ) {
2596
2597
		if ( in_array(
2598
			$row['real_type'], array(
2599
				'user',
2600
				'media',
2601
			), true
2602
		) ) {
2603
			$restricted = true;
2604
		}
2605
2606
		return $restricted;
2607
2608
	}
2609
2610
	/**
2611
	 * Delete a pod