Completed
Push — develop ( 7e41dd...83f716 )
by Zack
17:52
created
includes/class-admin-approve-entries.php 1 patch
Indentation   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -250,14 +250,14 @@  discard block
 block discarded – undo
250 250
 	/**
251 251
 	 * update_approved function.
252 252
 	 *
253
-     * @since 1.18 Moved to GravityView_Entry_Approval::update_approved
253
+	 * @since 1.18 Moved to GravityView_Entry_Approval::update_approved
254 254
 	 * @see GravityView_Entry_Approval::update_approved
255
-     *
255
+	 *
256 256
 	 * @param int $entry_id (default: 0)
257 257
 	 * @param int $approved (default: 0)
258 258
 	 * @param int $form_id (default: 0)
259 259
 	 * @param int $approvedcolumn (default: 0)
260
-     *
260
+	 *
261 261
 	 * @return boolean True: It worked; False: it failed
262 262
 	 */
263 263
 	public static function update_approved( $entry_id = 0, $approved = 0, $form_id = 0, $approvedcolumn = 0) {
@@ -267,9 +267,9 @@  discard block
 block discarded – undo
267 267
 	/**
268 268
 	 * Calculate the approve field.input id
269 269
 	 *
270
-     * @since 1.18 Moved to GravityView_Entry_Approval::get_approved_column
271
-     * @see GravityView_Entry_Approval::get_approved_column
272
-     *
270
+	 * @since 1.18 Moved to GravityView_Entry_Approval::get_approved_column
271
+	 * @see GravityView_Entry_Approval::get_approved_column
272
+	 *
273 273
 	 * @param mixed $form GF Form or Form ID
274 274
 	 * @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.
275 275
 	 */
@@ -394,37 +394,37 @@  discard block
 block discarded – undo
394 394
 			'bulk_actions' => GravityView_Bulk_Actions::get_bulk_actions( $form_id ),
395 395
 			'bulk_message' => $this->bulk_update_message,
396 396
 			'unapprove_title' => GravityView_Entry_Approval_Status::get_title_attr('unapproved'),
397
-            'approve_title' => GravityView_Entry_Approval_Status::get_title_attr('disapproved'),
397
+			'approve_title' => GravityView_Entry_Approval_Status::get_title_attr('disapproved'),
398 398
 			'disapprove_title' => GravityView_Entry_Approval_Status::get_title_attr('approved'),
399 399
 			'column_title' => __( 'Show entry in directory view?', 'gravityview'),
400 400
 			'column_link' => esc_url( $this->get_sort_link() ),
401
-            'status_popover_template' => GravityView_Entry_Approval::get_popover_template(),
401
+			'status_popover_template' => GravityView_Entry_Approval::get_popover_template(),
402 402
 			'status_popover_placement' => GravityView_Entry_Approval::get_popover_placement(),
403 403
 		) );
404 404
 
405 405
 	}
406 406
 
407 407
 	/**
408
-     * Generate a link to sort by approval status
409
-     *
410
-     * Note: Sorting by approval will never be great because it's not possible currently to declare the sorting as
411
-     * numeric, but it does group the approved entries together.
412
-     *
413
-     * @since 2.0.14 Remove need for approval field for sorting by approval status
414
-     *
408
+	 * Generate a link to sort by approval status
409
+	 *
410
+	 * Note: Sorting by approval will never be great because it's not possible currently to declare the sorting as
411
+	 * numeric, but it does group the approved entries together.
412
+	 *
413
+	 * @since 2.0.14 Remove need for approval field for sorting by approval status
414
+	 *
415 415
 	 * @param int $form_id [NO LONGER USED]
416 416
 	 *
417 417
 	 * @return string Sorting link
418 418
 	 */
419 419
 	private function get_sort_link( $form_id = 0 ) {
420 420
 
421
-	    $args = array(
422
-		    'orderby' => 'is_approved',
423
-            'order' => ( 'desc' === \GV\Utils::_GET( 'order' ) ) ? 'asc' : 'desc',
424
-        );
421
+		$args = array(
422
+			'orderby' => 'is_approved',
423
+			'order' => ( 'desc' === \GV\Utils::_GET( 'order' ) ) ? 'asc' : 'desc',
424
+		);
425 425
 
426 426
 		return add_query_arg( $args );
427
-    }
427
+	}
428 428
 
429 429
 	/**
430 430
 	 * Should the Approve/Reject Entry column be shown in the GF Entries page?
Please login to merge, or discard this patch.