Code Duplication    Length = 11-11 lines in 2 locations

classes/PodsUI.php 2 locations

@@ 1113-1123 (lines=11) @@
1110
		$options->validate( 'actions_custom', $this->actions_custom, 'array_merge' );
1111
1112
		if ( ! empty( $options->actions_disabled ) ) {
1113
			if ( ! empty( $options->actions_bulk ) ) {
1114
				$actions_bulk = $options->actions_bulk;
1115
1116
				foreach ( $actions_bulk as $action => $action_opt ) {
1117
					if ( in_array( $action, $options->actions_disabled ) ) {
1118
						unset( $actions_bulk[ $action ] );
1119
					}
1120
				}
1121
1122
				$options->actions_bulk = $actions_bulk;
1123
			}
1124
1125
			if ( ! empty( $options->actions_custom ) ) {
1126
				$actions_custom = $options->actions_custom;
@@ 1125-1135 (lines=11) @@
1122
				$options->actions_bulk = $actions_bulk;
1123
			}
1124
1125
			if ( ! empty( $options->actions_custom ) ) {
1126
				$actions_custom = $options->actions_custom;
1127
1128
				foreach ( $actions_custom as $action => $action_opt ) {
1129
					if ( in_array( $action, $options->actions_disabled ) ) {
1130
						unset( $actions_custom[ $action ] );
1131
					}
1132
				}
1133
1134
				$options->actions_custom = $actions_custom;
1135
			}
1136
		}//end if
1137
1138
		$options->validate( 'extra', $this->extra, 'array_merge' );