Code Duplication    Length = 3-3 lines in 2 locations

includes/rest-api/CMB2_REST_Controller.php 2 locations

@@ 306-308 (lines=3) @@
303
304
		} else {
305
306
			if ( isset( $this->request['object_id'] ) ) {
307
				$this->rest_box->cmb->object_id( sanitize_text_field( $this->request['object_id'] ) );
308
			}
309
310
			if ( isset( $this->request['object_type'] ) ) {
311
				$this->rest_box->cmb->object_type( sanitize_text_field( $this->request['object_type'] ) );
@@ 310-312 (lines=3) @@
307
				$this->rest_box->cmb->object_id( sanitize_text_field( $this->request['object_id'] ) );
308
			}
309
310
			if ( isset( $this->request['object_type'] ) ) {
311
				$this->rest_box->cmb->object_type( sanitize_text_field( $this->request['object_type'] ) );
312
			}
313
		}
314
	}
315