Code Duplication    Length = 3-3 lines in 2 locations

includes/CMB2_REST_Controller.php 2 locations

@@ 331-333 (lines=3) @@
328
329
		} else {
330
331
			if ( isset( $this->request['object_id'] ) ) {
332
				$this->rest_box->cmb->object_id( sanitize_text_field( $this->request['object_id'] ) );
333
			}
334
335
			if ( isset( $this->request['object_type'] ) ) {
336
				$this->rest_box->cmb->object_type( sanitize_text_field( $this->request['object_type'] ) );
@@ 335-337 (lines=3) @@
332
				$this->rest_box->cmb->object_id( sanitize_text_field( $this->request['object_id'] ) );
333
			}
334
335
			if ( isset( $this->request['object_type'] ) ) {
336
				$this->rest_box->cmb->object_type( sanitize_text_field( $this->request['object_type'] ) );
337
			}
338
		}
339
	}
340