@@ -20,21 +20,21 @@ |
||
20 | 20 | * @since 1.0.0 |
21 | 21 | */ |
22 | 22 | public function get_title() { |
23 | - return __( 'Set Group Cover Image', 'wordpoints-bp' ); |
|
23 | + return __('Set Group Cover Image', 'wordpoints-bp'); |
|
24 | 24 | } |
25 | 25 | |
26 | 26 | /** |
27 | 27 | * @since 1.0.0 |
28 | 28 | */ |
29 | 29 | public function get_description() { |
30 | - return __( 'Setting the cover image for a group on the BuddyPress social network.', 'wordpoints-bp' ); |
|
30 | + return __('Setting the cover image for a group on the BuddyPress social network.', 'wordpoints-bp'); |
|
31 | 31 | } |
32 | 32 | |
33 | 33 | /** |
34 | 34 | * @since 1.0.0 |
35 | 35 | */ |
36 | 36 | public function get_reversal_text() { |
37 | - return __( 'Image deleted.', 'wordpoints-bp' ); |
|
37 | + return __('Image deleted.', 'wordpoints-bp'); |
|
38 | 38 | } |
39 | 39 | } |
40 | 40 |
@@ -20,21 +20,21 @@ |
||
20 | 20 | * @since 1.0.0 |
21 | 21 | */ |
22 | 22 | public function get_title() { |
23 | - return __( 'Send Group Invitation', 'wordpoints-bp' ); |
|
23 | + return __('Send Group Invitation', 'wordpoints-bp'); |
|
24 | 24 | } |
25 | 25 | |
26 | 26 | /** |
27 | 27 | * @since 1.0.0 |
28 | 28 | */ |
29 | 29 | public function get_description() { |
30 | - return __( 'Inviting a user to join a group on the BuddyPress social network.', 'wordpoints-bp' ); |
|
30 | + return __('Inviting a user to join a group on the BuddyPress social network.', 'wordpoints-bp'); |
|
31 | 31 | } |
32 | 32 | |
33 | 33 | /** |
34 | 34 | * @since 1.0.0 |
35 | 35 | */ |
36 | 36 | public function get_reversal_text() { |
37 | - return __( 'Invitation deleted.', 'wordpoints-bp' ); |
|
37 | + return __('Invitation deleted.', 'wordpoints-bp'); |
|
38 | 38 | } |
39 | 39 | } |
40 | 40 |
@@ -20,21 +20,21 @@ |
||
20 | 20 | * @since 1.0.0 |
21 | 21 | */ |
22 | 22 | public function get_title() { |
23 | - return __( 'Accept Group Invitation', 'wordpoints-bp' ); |
|
23 | + return __('Accept Group Invitation', 'wordpoints-bp'); |
|
24 | 24 | } |
25 | 25 | |
26 | 26 | /** |
27 | 27 | * @since 1.0.0 |
28 | 28 | */ |
29 | 29 | public function get_description() { |
30 | - return __( 'Accepting an invitation to join a group on the BuddyPress social network.', 'wordpoints-bp' ); |
|
30 | + return __('Accepting an invitation to join a group on the BuddyPress social network.', 'wordpoints-bp'); |
|
31 | 31 | } |
32 | 32 | |
33 | 33 | /** |
34 | 34 | * @since 1.0.0 |
35 | 35 | */ |
36 | 36 | public function get_reversal_text() { |
37 | - return __( 'Member removed from group.', 'wordpoints-bp' ); |
|
37 | + return __('Member removed from group.', 'wordpoints-bp'); |
|
38 | 38 | } |
39 | 39 | } |
40 | 40 |
@@ -20,21 +20,21 @@ |
||
20 | 20 | * @since 1.0.0 |
21 | 21 | */ |
22 | 22 | public function get_title() { |
23 | - return __( 'Set Profile Photo', 'wordpoints-bp' ); |
|
23 | + return __('Set Profile Photo', 'wordpoints-bp'); |
|
24 | 24 | } |
25 | 25 | |
26 | 26 | /** |
27 | 27 | * @since 1.0.0 |
28 | 28 | */ |
29 | 29 | public function get_description() { |
30 | - return __( 'Setting your profile photo on the BuddyPress social network.', 'wordpoints-bp' ); |
|
30 | + return __('Setting your profile photo on the BuddyPress social network.', 'wordpoints-bp'); |
|
31 | 31 | } |
32 | 32 | |
33 | 33 | /** |
34 | 34 | * @since 1.0.0 |
35 | 35 | */ |
36 | 36 | public function get_reversal_text() { |
37 | - return __( 'Image deleted.', 'wordpoints-bp' ); |
|
37 | + return __('Image deleted.', 'wordpoints-bp'); |
|
38 | 38 | } |
39 | 39 | } |
40 | 40 |
@@ -20,21 +20,21 @@ |
||
20 | 20 | * @since 1.0.0 |
21 | 21 | */ |
22 | 22 | public function get_title() { |
23 | - return __( 'Set Profile Cover Image', 'wordpoints-bp' ); |
|
23 | + return __('Set Profile Cover Image', 'wordpoints-bp'); |
|
24 | 24 | } |
25 | 25 | |
26 | 26 | /** |
27 | 27 | * @since 1.0.0 |
28 | 28 | */ |
29 | 29 | public function get_description() { |
30 | - return __( 'Setting your profile cover image on the BuddyPress social network.', 'wordpoints-bp' ); |
|
30 | + return __('Setting your profile cover image on the BuddyPress social network.', 'wordpoints-bp'); |
|
31 | 31 | } |
32 | 32 | |
33 | 33 | /** |
34 | 34 | * @since 1.0.0 |
35 | 35 | */ |
36 | 36 | public function get_reversal_text() { |
37 | - return __( 'Image deleted.', 'wordpoints-bp' ); |
|
37 | + return __('Image deleted.', 'wordpoints-bp'); |
|
38 | 38 | } |
39 | 39 | } |
40 | 40 |
@@ -20,21 +20,21 @@ |
||
20 | 20 | * @since 1.0.0 |
21 | 21 | */ |
22 | 22 | public function get_title() { |
23 | - return __( 'Request Friendship', 'wordpoints-bp' ); |
|
23 | + return __('Request Friendship', 'wordpoints-bp'); |
|
24 | 24 | } |
25 | 25 | |
26 | 26 | /** |
27 | 27 | * @since 1.0.0 |
28 | 28 | */ |
29 | 29 | public function get_description() { |
30 | - return __( 'Sending a friendship request to another user on the BuddyPress social network.', 'wordpoints-bp' ); |
|
30 | + return __('Sending a friendship request to another user on the BuddyPress social network.', 'wordpoints-bp'); |
|
31 | 31 | } |
32 | 32 | |
33 | 33 | /** |
34 | 34 | * @since 1.0.0 |
35 | 35 | */ |
36 | 36 | public function get_reversal_text() { |
37 | - return __( 'Request withdrawn.', 'wordpoints-bp' ); |
|
37 | + return __('Request withdrawn.', 'wordpoints-bp'); |
|
38 | 38 | } |
39 | 39 | } |
40 | 40 |
@@ -20,21 +20,21 @@ |
||
20 | 20 | * @since 1.0.0 |
21 | 21 | */ |
22 | 22 | public function get_title() { |
23 | - return __( 'Accept Friendship', 'wordpoints-bp' ); |
|
23 | + return __('Accept Friendship', 'wordpoints-bp'); |
|
24 | 24 | } |
25 | 25 | |
26 | 26 | /** |
27 | 27 | * @since 1.0.0 |
28 | 28 | */ |
29 | 29 | public function get_description() { |
30 | - return __( 'Accepting a friendship request from another user on the BuddyPress social network.', 'wordpoints-bp' ); |
|
30 | + return __('Accepting a friendship request from another user on the BuddyPress social network.', 'wordpoints-bp'); |
|
31 | 31 | } |
32 | 32 | |
33 | 33 | /** |
34 | 34 | * @since 1.0.0 |
35 | 35 | */ |
36 | 36 | public function get_reversal_text() { |
37 | - return __( 'Friendship deleted.', 'wordpoints-bp' ); |
|
37 | + return __('Friendship deleted.', 'wordpoints-bp'); |
|
38 | 38 | } |
39 | 39 | } |
40 | 40 |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | |
50 | 50 | // However, when BP Multi Network is installed, each network has its own |
51 | 51 | // separate social network. |
52 | - if ( $this->is_bp_multi_network() ) { |
|
52 | + if ($this->is_bp_multi_network()) { |
|
53 | 53 | $context = 'network'; |
54 | 54 | } |
55 | 55 | |
@@ -70,9 +70,9 @@ discard block |
||
70 | 70 | protected function is_bp_multi_network() { |
71 | 71 | return ( |
72 | 72 | // Version 0.1: https://wordpress.org/plugins/bp-multi-network/ |
73 | - function_exists( 'ra_bp_multinetwork_filter' ) |
|
73 | + function_exists('ra_bp_multinetwork_filter') |
|
74 | 74 | // Version 0.2: https://github.com/johnjamesjacoby/bp-multi-network |
75 | - || class_exists( 'BP_Multi_Network' ) |
|
75 | + || class_exists('BP_Multi_Network') |
|
76 | 76 | ); |
77 | 77 | } |
78 | 78 | |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | |
84 | 84 | $table_name = 'table_name'; |
85 | 85 | |
86 | - if ( isset( $this->bp_component_table_name ) ) { |
|
86 | + if (isset($this->bp_component_table_name)) { |
|
87 | 87 | $table_name = "table_name_{$this->bp_component_table_name}"; |
88 | 88 | } |
89 | 89 |
@@ -27,13 +27,13 @@ discard block |
||
27 | 27 | /** |
28 | 28 | * @since 1.0.0 |
29 | 29 | */ |
30 | - protected function get_entity( $id ) { |
|
30 | + protected function get_entity($id) { |
|
31 | 31 | |
32 | - $entity = new BP_Activity_Activity( $id ); |
|
32 | + $entity = new BP_Activity_Activity($id); |
|
33 | 33 | |
34 | 34 | // We check this instead of the ID because the ID is always set. |
35 | 35 | // See https://buddypress.trac.wordpress.org/ticket/7394 |
36 | - if ( ! $entity->component ) { |
|
36 | + if ( ! $entity->component) { |
|
37 | 37 | return false; |
38 | 38 | } |
39 | 39 | |
@@ -44,20 +44,20 @@ discard block |
||
44 | 44 | * @since 1.0.0 |
45 | 45 | */ |
46 | 46 | public function get_title() { |
47 | - return __( 'Activity', 'wordpoints-bp' ); |
|
47 | + return __('Activity', 'wordpoints-bp'); |
|
48 | 48 | } |
49 | 49 | |
50 | 50 | /** |
51 | 51 | * @since 1.0.0 |
52 | 52 | */ |
53 | - protected function get_entity_human_id( $entity ) { |
|
53 | + protected function get_entity_human_id($entity) { |
|
54 | 54 | |
55 | - if ( empty( $entity->content ) ) { |
|
55 | + if (empty($entity->content)) { |
|
56 | 56 | return $entity->action; |
57 | 57 | } |
58 | 58 | |
59 | 59 | // Back-compat for BuddyPress <2.8. |
60 | - if ( function_exists( 'bp_activity_get_excerpt_length' ) ) { |
|
60 | + if (function_exists('bp_activity_get_excerpt_length')) { |
|
61 | 61 | |
62 | 62 | $excerpt_length = bp_activity_get_excerpt_length(); |
63 | 63 | |
@@ -68,12 +68,12 @@ discard block |
||
68 | 68 | * |
69 | 69 | * @param int $length Character length for activity excerpts. |
70 | 70 | */ |
71 | - $excerpt_length = (int) apply_filters( 'bp_activity_excerpt_length', 358 ); |
|
71 | + $excerpt_length = (int) apply_filters('bp_activity_excerpt_length', 358); |
|
72 | 72 | } |
73 | 73 | |
74 | 74 | // Based on bp_get_activity_latest_update(). |
75 | 75 | return trim( |
76 | - strip_tags( bp_create_excerpt( $entity->content, $excerpt_length ) ) |
|
76 | + strip_tags(bp_create_excerpt($entity->content, $excerpt_length)) |
|
77 | 77 | ); |
78 | 78 | } |
79 | 79 | |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | // See https://github.com/WordPoints/wordpoints/issues/556. |
86 | 86 | $the_id = parent::get_the_id(); |
87 | 87 | |
88 | - if ( ! $the_id ) { |
|
88 | + if ( ! $the_id) { |
|
89 | 89 | return $the_id; |
90 | 90 | } |
91 | 91 |