Code Duplication    Length = 9-9 lines in 2 locations

classes/PodsAdmin.php 2 locations

@@ 1767-1775 (lines=9) @@
1764
     *
1765
     * @return bool
1766
	 */
1767
	public function admin_setup_duplicate_restrict( $restricted, $restrict, $action, $row, $obj ) {
1768
1769
		if ( in_array( $row[ 'real_type' ], array( 'user', 'media', 'comment' ) ) ) {
1770
			$restricted = true;
1771
		}
1772
1773
		return $restricted;
1774
1775
	}
1776
1777
    /**
1778
     * Reset a pod
@@ 1808-1816 (lines=9) @@
1805
	 *
1806
	 * @since 2.3.10
1807
	 */
1808
	public function admin_setup_reset_restrict( $restricted, $restrict, $action, $row, $obj ) {
1809
1810
		if ( in_array( $row[ 'real_type' ], array( 'user', 'media' ) ) ) {
1811
			$restricted = true;
1812
		}
1813
1814
		return $restricted;
1815
1816
	}
1817
1818
    /**
1819
     * Delete a pod