Completed
Pull Request — develop (#1291)
by
unknown
18:58
created
includes/class-admin-approve-entries.php 1 patch
Indentation   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -361,14 +361,14 @@  discard block
 block discarded – undo
361 361
 	/**
362 362
 	 * update_approved function.
363 363
 	 *
364
-     * @since 1.18 Moved to GravityView_Entry_Approval::update_approved
364
+	 * @since 1.18 Moved to GravityView_Entry_Approval::update_approved
365 365
 	 * @see GravityView_Entry_Approval::update_approved
366
-     *
366
+	 *
367 367
 	 * @param int $entry_id (default: 0)
368 368
 	 * @param int $approved (default: 0)
369 369
 	 * @param int $form_id (default: 0)
370 370
 	 * @param int $approvedcolumn (default: 0)
371
-     *
371
+	 *
372 372
 	 * @return boolean True: It worked; False: it failed
373 373
 	 */
374 374
 	public static function update_approved( $entry_id = 0, $approved = 0, $form_id = 0, $approvedcolumn = 0) {
@@ -378,9 +378,9 @@  discard block
 block discarded – undo
378 378
 	/**
379 379
 	 * Calculate the approve field.input id
380 380
 	 *
381
-     * @since 1.18 Moved to GravityView_Entry_Approval::get_approved_column
382
-     * @see GravityView_Entry_Approval::get_approved_column
383
-     *
381
+	 * @since 1.18 Moved to GravityView_Entry_Approval::get_approved_column
382
+	 * @see GravityView_Entry_Approval::get_approved_column
383
+	 *
384 384
 	 * @param mixed $form GF Form or Form ID
385 385
 	 * @return false|null|string Returns the input ID of the approved field. Returns NULL if no approved fields were found. Returns false if $form_id wasn't set.
386 386
 	 */
@@ -505,36 +505,36 @@  discard block
 block discarded – undo
505 505
 			'bulk_actions' => $this->get_bulk_actions( $form_id ),
506 506
 			'bulk_message' => $this->bulk_update_message,
507 507
 			'unapprove_title' => GravityView_Entry_Approval_Status::get_title_attr('unapproved'),
508
-            'approve_title' => GravityView_Entry_Approval_Status::get_title_attr('disapproved'),
508
+			'approve_title' => GravityView_Entry_Approval_Status::get_title_attr('disapproved'),
509 509
 			'disapprove_title' => GravityView_Entry_Approval_Status::get_title_attr('approved'),
510 510
 			'column_title' => __( 'Show entry in directory view?', 'gravityview'),
511 511
 			'column_link' => esc_url( $this->get_sort_link() ),
512
-            'status_popover_template' => GravityView_Entry_Approval_Status::get_status_popover_template(),
512
+			'status_popover_template' => GravityView_Entry_Approval_Status::get_status_popover_template(),
513 513
 		) );
514 514
 
515 515
 	}
516 516
 
517 517
 	/**
518
-     * Generate a link to sort by approval status
519
-     *
520
-     * Note: Sorting by approval will never be great because it's not possible currently to declare the sorting as
521
-     * numeric, but it does group the approved entries together.
522
-     *
523
-     * @since 2.0.14 Remove need for approval field for sorting by approval status
524
-     *
518
+	 * Generate a link to sort by approval status
519
+	 *
520
+	 * Note: Sorting by approval will never be great because it's not possible currently to declare the sorting as
521
+	 * numeric, but it does group the approved entries together.
522
+	 *
523
+	 * @since 2.0.14 Remove need for approval field for sorting by approval status
524
+	 *
525 525
 	 * @param int $form_id [NO LONGER USED]
526 526
 	 *
527 527
 	 * @return string Sorting link
528 528
 	 */
529 529
 	private function get_sort_link( $form_id = 0 ) {
530 530
 
531
-	    $args = array(
532
-		    'orderby' => 'is_approved',
533
-            'order' => ( 'desc' === \GV\Utils::_GET( 'order' ) ) ? 'asc' : 'desc',
534
-        );
531
+		$args = array(
532
+			'orderby' => 'is_approved',
533
+			'order' => ( 'desc' === \GV\Utils::_GET( 'order' ) ) ? 'asc' : 'desc',
534
+		);
535 535
 
536 536
 		return add_query_arg( $args );
537
-    }
537
+	}
538 538
 
539 539
 	/**
540 540
 	 * Get an array of options to be added to the Gravity Forms "Bulk action" dropdown in a "GravityView" option group
@@ -576,9 +576,9 @@  discard block
 block discarded – undo
576 576
 		// Sanitize the values, just to be sure.
577 577
 		foreach ( $bulk_actions as $key => $group ) {
578 578
 
579
-		    if( empty( $group ) ) {
580
-		        continue;
581
-		    }
579
+			if( empty( $group ) ) {
580
+				continue;
581
+			}
582 582
 
583 583
 			foreach ( $group as $i => $action ) {
584 584
 				$bulk_actions[ $key ][ $i ]['label'] = esc_html( $bulk_actions[ $key ][ $i ]['label'] );
Please login to merge, or discard this patch.