Code Duplication    Length = 3-3 lines in 2 locations

includes/class-wc-form-handler.php 2 locations

@@ 872-874 (lines=3) @@
869
					throw new Exception( '<strong>' . __( 'Error', 'woocommerce' ) . ':</strong> ' . $validation_error->get_error_message() );
870
				}
871
872
				if ( empty( $username ) ) {
873
					throw new Exception( '<strong>' . __( 'Error', 'woocommerce' ) . ':</strong> ' . __( 'Username is required.', 'woocommerce' ) );
874
				}
875
876
				if ( empty( $_POST['password'] ) ) {
877
					throw new Exception( '<strong>' . __( 'Error', 'woocommerce' ) . ':</strong> ' . __( 'Password is required.', 'woocommerce' ) );
@@ 876-878 (lines=3) @@
873
					throw new Exception( '<strong>' . __( 'Error', 'woocommerce' ) . ':</strong> ' . __( 'Username is required.', 'woocommerce' ) );
874
				}
875
876
				if ( empty( $_POST['password'] ) ) {
877
					throw new Exception( '<strong>' . __( 'Error', 'woocommerce' ) . ':</strong> ' . __( 'Password is required.', 'woocommerce' ) );
878
				}
879
880
				if ( is_email( $username ) && apply_filters( 'woocommerce_get_username_from_email', true ) ) {
881
					$user = get_user_by( 'email', $username );