Completed
Push — master ( 711eb2...fc7440 )
by
unknown
09:57
created
src/bp-templates/bp-nouveau/includes/activity/template-tags.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -300,7 +300,7 @@  discard block
 block discarded – undo
300 300
 		 * no matter the previous activity had less.
301 301
 		 */
302 302
 		} else {
303
-			$buttons['activity_conversation'] =  array(
303
+			$buttons['activity_conversation'] = array(
304 304
 				'id'                => 'activity_conversation',
305 305
 				'position'          => 5,
306 306
 				'component'         => 'activity',
@@ -365,7 +365,7 @@  discard block
 block discarded – undo
365 365
 				);
366 366
 			}
367 367
 
368
-			$buttons['activity_favorite'] =  array(
368
+			$buttons['activity_favorite'] = array(
369 369
 				'id'                => 'activity_favorite',
370 370
 				'position'          => 15,
371 371
 				'component'         => 'activity',
@@ -403,7 +403,7 @@  discard block
 block discarded – undo
403 403
 
404 404
 			if ( ! empty( $attrs[1] ) && ! empty( $attrs[2] ) ) {
405 405
 				foreach ( $attrs[1] as $key_attr => $key_value ) {
406
-					$delete_args[ 'link_'. $key_value ] = trim( $attrs[2][$key_attr], '"' );
406
+					$delete_args['link_' . $key_value] = trim( $attrs[2][$key_attr], '"' );
407 407
 				}
408 408
 			}
409 409
 
@@ -453,7 +453,7 @@  discard block
 block discarded – undo
453 453
 				'href'            => $delete_args['link_href'],
454 454
 				'class'           => $delete_args['link_class'],
455 455
 				'data-bp-tooltip' => $delete_args['data_bp_tooltip'],
456
-				'data-bp-nonce'   => $delete_args['data-attr'] ,
456
+				'data-bp-nonce'   => $delete_args['data-attr'],
457 457
 			),
458 458
 			'link_text'  => sprintf( '<span class="bp-screen-reader-text">%s</span>', esc_html( $delete_args['data_bp_tooltip'] ) ),
459 459
 		);
@@ -487,7 +487,7 @@  discard block
 block discarded – undo
487 487
 				$data_element = 'href';
488 488
 			}
489 489
 
490
-			$buttons['activity_spam']['button_attr'][ $data_element ] = wp_nonce_url(
490
+			$buttons['activity_spam']['button_attr'][$data_element] = wp_nonce_url(
491 491
 				bp_get_root_domain() . '/' . bp_get_activity_slug() . '/spam/' . $activity_id . '/',
492 492
 				'bp_activity_akismet_spam_' . $activity_id
493 493
 			);
@@ -716,7 +716,7 @@  discard block
 block discarded – undo
716 716
 	 *
717 717
 	 * @return array
718 718
 	 */
719
-	function bp_nouveau_get_activity_comment_buttons($args) {
719
+	function bp_nouveau_get_activity_comment_buttons( $args ) {
720 720
 		$buttons = array();
721 721
 
722 722
 		if ( ! isset( $GLOBALS['activities_template'] ) ) {
@@ -736,7 +736,7 @@  discard block
 block discarded – undo
736 736
 		 * otherwise simply pass any value found in args
737 737
 		 * or set var false.
738 738
 		 */
739
-		if ( 'ul' === $args['container']  ) {
739
+		if ( 'ul' === $args['container'] ) {
740 740
 			$parent_element = 'li';
741 741
 		} elseif ( ! empty( $args['parent_element'] ) ) {
742 742
 			$parent_element = $args['parent_element'];
@@ -752,7 +752,7 @@  discard block
 block discarded – undo
752 752
 		 * otherwise default to 'a' (anchor).
753 753
 		 */
754 754
 		if ( ! empty( $args['button_element'] ) ) {
755
-			$button_element = $args['button_element'] ;
755
+			$button_element = $args['button_element'];
756 756
 		} else {
757 757
 			$button_element = 'a';
758 758
 		}
@@ -822,7 +822,7 @@  discard block
 block discarded – undo
822 822
 				$data_element = 'href';
823 823
 			}
824 824
 
825
-			$buttons['activity_comment_spam']['button_attr'][ $data_element ] = wp_nonce_url(
825
+			$buttons['activity_comment_spam']['button_attr'][$data_element] = wp_nonce_url(
826 826
 				bp_get_root_domain() . '/' . bp_get_activity_slug() . '/spam/' . $activity_comment_id . '/?cid=' . $activity_comment_id,
827 827
 				'bp_activity_akismet_spam_' . $activity_comment_id
828 828
 			);
Please login to merge, or discard this patch.