Code Duplication    Length = 3-3 lines in 2 locations

includes/rest-api/CMB2_REST_Controller.php 2 locations

@@ 293-295 (lines=3) @@
290
291
		} else {
292
293
			if ( isset( $this->request['object_id'] ) ) {
294
				$this->rest_box->cmb->object_id( sanitize_text_field( $this->request['object_id'] ) );
295
			}
296
297
			if ( isset( $this->request['object_type'] ) ) {
298
				$this->rest_box->cmb->object_type( sanitize_text_field( $this->request['object_type'] ) );
@@ 297-299 (lines=3) @@
294
				$this->rest_box->cmb->object_id( sanitize_text_field( $this->request['object_id'] ) );
295
			}
296
297
			if ( isset( $this->request['object_type'] ) ) {
298
				$this->rest_box->cmb->object_type( sanitize_text_field( $this->request['object_type'] ) );
299
			}
300
		}
301
	}
302