Completed
Push — develop ( da3211...921ac0 )
by J.D.
02:14
created
src/classes/entity/group/status.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
 	 * @since 1.0.0
34 34
 	 */
35 35
 	public function get_title() {
36
-		return _x( 'Status', 'group entity', 'wordpoints-bp' );
36
+		return _x('Status', 'group entity', 'wordpoints-bp');
37 37
 	}
38 38
 }
39 39
 
Please login to merge, or discard this patch.
src/classes/entity/group/description.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
 	 * @since 1.0.0
34 34
 	 */
35 35
 	public function get_title() {
36
-		return _x( 'Description', 'group entity', 'wordpoints-bp' );
36
+		return _x('Description', 'group entity', 'wordpoints-bp');
37 37
 	}
38 38
 }
39 39
 
Please login to merge, or discard this patch.
src/classes/entity/group/date/created.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
 	 * @since 1.0.0
35 35
 	 */
36 36
 	public function get_title() {
37
-		return _x( 'Date Created', 'group entity', 'wordpoints-bp' );
37
+		return _x('Date Created', 'group entity', 'wordpoints-bp');
38 38
 	}
39 39
 }
40 40
 
Please login to merge, or discard this patch.
src/classes/entity/group/parent.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
 	 * @since 1.0.0
40 40
 	 */
41 41
 	public function get_title() {
42
-		return _x( 'Parent Group', 'group entity', 'wordpoints-bp' );
42
+		return _x('Parent Group', 'group entity', 'wordpoints-bp');
43 43
 	}
44 44
 }
45 45
 
Please login to merge, or discard this patch.
src/classes/entity/friendship/date/created.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
 	 * @since 1.0.0
42 42
 	 */
43 43
 	public function get_title() {
44
-		return _x( 'Date Created', 'friendship entity', 'wordpoints-bp' );
44
+		return _x('Date Created', 'friendship entity', 'wordpoints-bp');
45 45
 	}
46 46
 }
47 47
 
Please login to merge, or discard this patch.
src/classes/entity/friendship/initiator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
 	 * @since 1.0.0
40 40
 	 */
41 41
 	public function get_title() {
42
-		return _x( 'Initiator', 'friendship entity', 'wordpoints-bp' );
42
+		return _x('Initiator', 'friendship entity', 'wordpoints-bp');
43 43
 	}
44 44
 }
45 45
 
Please login to merge, or discard this patch.
src/classes/entity/friendship/friend.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
 	 * @since 1.0.0
40 40
 	 */
41 41
 	public function get_title() {
42
-		return _x( 'Friend', 'friendship entity', 'wordpoints-bp' );
42
+		return _x('Friend', 'friendship entity', 'wordpoints-bp');
43 43
 	}
44 44
 }
45 45
 
Please login to merge, or discard this patch.
src/classes/entity/friendship.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -27,11 +27,11 @@  discard block
 block discarded – undo
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_Friends_Friendship( $id );
32
+		$entity = new BP_Friends_Friendship($id);
33 33
 
34
-		if ( ! $entity->id ) {
34
+		if ( ! $entity->id) {
35 35
 			return false;
36 36
 		}
37 37
 
@@ -41,13 +41,13 @@  discard block
 block discarded – undo
41 41
 	/**
42 42
 	 * @since 1.0.0
43 43
 	 */
44
-	protected function get_entity_human_id( $entity ) {
44
+	protected function get_entity_human_id($entity) {
45 45
 
46 46
 		return sprintf(
47 47
 			// translators: 1: initiator's display name, 2: friend's display name.
48
-			_x( '%1$s + %2$s', 'friendship', 'wordpoints-bp' )
49
-			, bp_core_get_user_displayname( $entity->initiator_user_id )
50
-			, bp_core_get_user_displayname( $entity->friend_user_id )
48
+			_x('%1$s + %2$s', 'friendship', 'wordpoints-bp')
49
+			, bp_core_get_user_displayname($entity->initiator_user_id)
50
+			, bp_core_get_user_displayname($entity->friend_user_id)
51 51
 		);
52 52
 	}
53 53
 
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 	 * @since 1.0.0
56 56
 	 */
57 57
 	public function get_title() {
58
-		return _x( 'Friendship', 'friendship entity', 'wordpoints-bp' );
58
+		return _x('Friendship', 'friendship entity', 'wordpoints-bp');
59 59
 	}
60 60
 }
61 61
 
Please login to merge, or discard this patch.
src/classes/entity/restriction/activity/hidden.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -44,13 +44,13 @@  discard block
 block discarded – undo
44 44
 	/**
45 45
 	 * @since 1.0.0
46 46
 	 */
47
-	public function __construct( $entity_id, array $hierarchy ) {
47
+	public function __construct($entity_id, array $hierarchy) {
48 48
 
49
-		$this->activity = new BP_Activity_Activity( $entity_id );
49
+		$this->activity = new BP_Activity_Activity($entity_id);
50 50
 
51 51
 		// We use component to check if the activity exists, because the ID is set
52 52
 		// even if invalid. See https://buddypress.trac.wordpress.org/ticket/7394.
53
-		if ( $this->activity->component ) {
53
+		if ($this->activity->component) {
54 54
 			$this->is_hidden = (bool) $this->activity->hide_sitewide;
55 55
 		}
56 56
 	}
@@ -58,19 +58,19 @@  discard block
 block discarded – undo
58 58
 	/**
59 59
 	 * @since 1.0.0
60 60
 	 */
61
-	public function user_can( $user_id ) {
61
+	public function user_can($user_id) {
62 62
 
63
-		if ( ! $this->is_hidden ) {
63
+		if ( ! $this->is_hidden) {
64 64
 			return true;
65 65
 		}
66 66
 
67 67
 		// Moderators can view hidden activity.
68
-		if ( bp_user_can( $user_id, 'bp_moderate' ) ) {
68
+		if (bp_user_can($user_id, 'bp_moderate')) {
69 69
 			return true;
70 70
 		}
71 71
 
72 72
 		// The user can view their own activity, even if it is hidden.
73
-		if ( $this->activity->user_id === $user_id ) {
73
+		if ($this->activity->user_id === $user_id) {
74 74
 			return true;
75 75
 		}
76 76
 
Please login to merge, or discard this patch.