Apply coding standards.

This commit is contained in:
Ian Dunn 2019-10-24 07:55:45 -07:00
parent 33d8ed54b1
commit f888fd85c8
No known key found for this signature in database
GPG key ID: 99B971B50343CBCB
11 changed files with 57 additions and 42 deletions

View file

@ -6,10 +6,8 @@
namespace WordPressDotOrg\FiveForTheFuture\PledgeForm;
use WordPressDotOrg\FiveForTheFuture;
use WordPressDotOrg\FiveForTheFuture\Pledge;
use WordPressDotOrg\FiveForTheFuture\PledgeMeta;
use WordPressDotOrg\FiveForTheFuture\Contributor;
use WP_Error, WP_Post, WP_User;
use WordPressDotOrg\FiveForTheFuture\{ Pledge, PledgeMeta, Contributor };
use WP_Error, WP_User;
defined( 'WPINC' ) || die();
@ -23,11 +21,11 @@ add_shortcode( '5ftf_pledge_form_manage', __NAMESPACE__ . '\render_form_manage'
* @return false|string
*/
function render_form_new() {
$action = filter_input( INPUT_POST, 'action' );
$data = get_form_submission();
$messages = [];
$complete = false;
$directory_url = get_permalink( get_page_by_path( 'pledges') );
$action = filter_input( INPUT_POST, 'action' );
$data = get_form_submission();
$messages = [];
$complete = false;
$directory_url = get_permalink( get_page_by_path( 'pledges' ) );
if ( 'Submit Pledge' === $action ) {
$processed = process_form_new();