Code Duplication    Length = 11-11 lines in 2 locations

classes/PodsUI.php 2 locations

@@ 987-997 (lines=11) @@
984
        $options->validate( 'actions_custom', $this->actions_custom, 'array_merge' );
985
986
		if ( !empty( $options->actions_disabled ) ) {
987
			if ( !empty( $options->actions_bulk ) ) {
988
				$actions_bulk = $options->actions_bulk;
989
990
				foreach ( $actions_bulk as $action => $action_opt ) {
991
					if ( in_array( $action, $options->actions_disabled ) ) {
992
						unset( $actions_bulk[ $action ] );
993
					}
994
				}
995
996
				$options->actions_bulk = $actions_bulk;
997
			}
998
999
			if ( !empty( $options->actions_custom ) ) {
1000
				$actions_custom = $options->actions_custom;
@@ 999-1009 (lines=11) @@
996
				$options->actions_bulk = $actions_bulk;
997
			}
998
999
			if ( !empty( $options->actions_custom ) ) {
1000
				$actions_custom = $options->actions_custom;
1001
1002
				foreach ( $actions_custom as $action => $action_opt ) {
1003
					if ( in_array( $action, $options->actions_disabled ) ) {
1004
						unset( $actions_custom[ $action ] );
1005
					}
1006
				}
1007
1008
				$options->actions_custom = $actions_custom;
1009
			}
1010
		}
1011
1012
        $options->validate( 'extra', $this->extra, 'array_merge' );