Code Duplication    Length = 3-3 lines in 2 locations

includes/CMB2_REST_Controller.php 2 locations

@@ 300-302 (lines=3) @@
297
298
		} else {
299
300
			if ( isset( $this->request['object_id'] ) ) {
301
				$this->rest_box->cmb->object_id( sanitize_text_field( $this->request['object_id'] ) );
302
			}
303
304
			if ( isset( $this->request['object_type'] ) ) {
305
				$this->rest_box->cmb->object_type( sanitize_text_field( $this->request['object_type'] ) );
@@ 304-306 (lines=3) @@
301
				$this->rest_box->cmb->object_id( sanitize_text_field( $this->request['object_id'] ) );
302
			}
303
304
			if ( isset( $this->request['object_type'] ) ) {
305
				$this->rest_box->cmb->object_type( sanitize_text_field( $this->request['object_type'] ) );
306
			}
307
		}
308
	}
309