WordPoints_BP_Entity_Activity_Comment   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 15
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A get_title() 0 3 1
1
<?php
2
3
/**
4
 * Activity comment entity class.
5
 *
6
 * @package WordPoints_BuddyPress
7
 * @since 1.0.0
8
 */
9
10
/**
11
 * Represents a BuddyPress activity item comment.
12
 *
13
 * @since 1.0.0
14
 */
15
class WordPoints_BP_Entity_Activity_Comment
0 ignored issues
show
Coding Style Compatibility introduced by
PSR1 recommends that each class must be in a namespace of at least one level to avoid collisions.

You can fix this by adding a namespace to your class:

namespace YourVendor;

class YourClass { }

When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.

Loading history...
16
	extends WordPoints_BP_Entity_Activity {
0 ignored issues
show
Coding Style introduced by
The extends keyword must be on the same line as the class name
Loading history...
17
18
	/**
19
	 * @since 1.2.1
20
	 */
21
	protected $bp_activity_type = 'activity_comment';
22
23
	/**
24
	 * @since 1.0.0
25
	 */
26
	public function get_title() {
27
		return __( 'Activity Comment', 'wordpoints-bp' );
28
	}
29
}
30
31
// EOF
32