for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Group entity class.
*
* @package WordPoints_BuddyPress
* @since 1.0.0
*/
* Represents a BuddyPress group.
class WordPoints_BP_Entity_Group extends WordPoints_BP_Entity {
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.
protected $bp_component = 'groups';
protected $id_field = 'id';
* @since 1.2.1
protected $id_is_int = true;
protected $human_id_field = 'name';
protected function get_entity( $id ) {
$entity = groups_get_group( $id );
if ( ! $entity->id ) {
return false;
}
return $entity;
public function get_title() {
return _x( 'Group', 'group entity', 'wordpoints-bp' );
// EOF
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.