diff --git src/bp-core/admin/bp-core-admin-schema.php src/bp-core/admin/bp-core-admin-schema.php
index 928948797..bda0edaf0 100644
--- src/bp-core/admin/bp-core-admin-schema.php
+++ src/bp-core/admin/bp-core-admin-schema.php
@@ -579,7 +579,9 @@ function bp_core_install_invitations() {
 		) {$charset_collate};";
 	dbDelta( $sql );
 
-	// @TODO: Migrate invitations here
+	/**
+	 * @TODO: Migrate invitations here
+	 */
 
 	/**
 	 * Fires after BuddyPress adds the invitations table.
diff --git src/bp-core/bp-core-update.php src/bp-core/bp-core-update.php
index 27e3819bc..db6d0289e 100644
--- src/bp-core/bp-core-update.php
+++ src/bp-core/bp-core-update.php
@@ -585,7 +585,9 @@ function bp_update_to_5_0() {
 
 	bp_core_install_invitations();
 
-	bp_groups_migrate_invitations();
+	if ( bp_is_active( 'groups' ) ) {
+		bp_groups_migrate_invitations();
+	}
 }
 
 /**
diff --git src/bp-core/classes/class-bp-invitation-manager.php src/bp-core/classes/class-bp-invitation-manager.php
index 397258511..30158447a 100644
--- src/bp-core/classes/class-bp-invitation-manager.php
+++ src/bp-core/classes/class-bp-invitation-manager.php
@@ -69,7 +69,7 @@ abstract class BP_Invitation_Manager {
 	 * 	   @type int    $item_id ID associated with the invitation and class.
 	 * 	   @type int    $secondary_item_id secondary ID associated with the
 	 *			        invitation and class.
-	 * 	   @type string $type @TODO.
+	 * 	   @type string $type @TODO. < missing description.
 	 * 	   @type string $content Extra information provided by the requester
 	 *			        or inviter.
 	 * 	   @type string $date_modified Date the invitation was last modified.
@@ -83,12 +83,12 @@ abstract class BP_Invitation_Manager {
 
 		$r = bp_parse_args( $args, array(
 			'user_id'           => 0,
-			'invitee_email'		=> '',
-			'inviter_id'		=> 0,
+			'invitee_email'     => '',
+			'inviter_id'        => 0,
 			'item_id'           => 0,
 			'secondary_item_id' => 0,
-			'type'				=> 'invite',
-			'content'			=> '',
+			'type'              => 'invite',
+			'content'           => '',
 			'date_modified'     => bp_core_current_time(),
 			'send_invite'       => 0,
 			'accepted'          => 0
@@ -215,7 +215,7 @@ abstract class BP_Invitation_Manager {
 	 * 	   @type int    $item_id ID associated with the invitation and class.
 	 * 	   @type int    $secondary_item_id secondary ID associated with the
 	 *			        invitation and class.
-	 * 	   @type string $type @TODO.
+	 * 	   @type string $type @TODO. < missing description.
 	 * 	   @type string $content Extra information provided by the requester
 	 *			        or inviter.
 	 * 	   @type string $date_modified Date the invitation was last modified.
diff --git src/bp-core/classes/class-bp-invitation.php src/bp-core/classes/class-bp-invitation.php
index 18ec7b27c..bc75bd634 100644
--- src/bp-core/classes/class-bp-invitation.php
+++ src/bp-core/classes/class-bp-invitation.php
@@ -269,18 +269,18 @@ class BP_Invitation {
 	 *
 	 * @param array $data {
 	 *     Array of invitation data, passed to {@link wpdb::insert()}.
-	 *	   @type int $user_id ID of the invited user.
-	 *	   @type int $inviter_id ID of the user who created the invitation.
-	 *	   @type string $invitee_email Email address of the invited user.
-	 * 	   @type string $class Name of the related class.
-	 * 	   @type int item_id ID associated with the invitation and component.
-	 * 	   @type int secondary_item_id secondary ID associated with the
-	 *			 invitation and component.
-	 * 	   @type string content Extra information provided by the requester
-	 *			 or inviter.
-	 * 	   @type string date_modified Date the invitation was last modified.
-	 * 	   @type int invite_sent Has the invitation been sent, or is it a
-	 *			 draft invite?
+	 *	   @type int    $user_id           ID of the invited user.
+	 *	   @type int    $inviter_id        ID of the user who created the invitation.
+	 *	   @type string $invitee_email     Email address of the invited user.
+	 * 	   @type string $class             Name of the related class.
+	 * 	   @type int    $item_id           ID associated with the invitation and component.
+	 * 	   @type int    $secondary_item_id Secondary ID associated with the invitation and
+	 *                                     component.
+	 * 	   @type string $content           Extra information provided by the requester
+	 *			                           or inviter.
+	 * 	   @type string $date_modified     Date the invitation was last modified.
+	 * 	   @type int    $invite_sent       Has the invitation been sent, or is it a draft
+	 *                                     invite?
 	 * }
 	 * @param array $data_format See {@link wpdb::insert()}.
 	 * @return int|false The number of rows inserted, or false on error.
@@ -297,13 +297,13 @@ class BP_Invitation {
 	 *
 	 * @see wpdb::update() for further description of paramater formats.
 	 *
-	 * @param array $data Array of invitation data to update, passed to
-	 *        {@link wpdb::update()}. Accepts any property of a
-	 *        BP_Invitation object.
-	 * @param array $where The WHERE params as passed to wpdb::update().
-	 *        Typically consists of array( 'ID' => $id ) to specify the ID
-	 *        of the item being updated. See {@link wpdb::update()}.
-	 * @param array $data_format See {@link wpdb::insert()}.
+	 * @param array $data         Array of invitation data to update, passed to
+	 *                            {@link wpdb::update()}. Accepts any property of a
+	 *                            BP_Invitation object.
+	 * @param array $where        The WHERE params as passed to wpdb::update().
+	 *                            Typically consists of array( 'ID' => $id ) to specify the ID
+	 *                            of the item being updated. See {@link wpdb::update()}.
+	 * @param array $data_format  See {@link wpdb::insert()}.
 	 * @param array $where_format See {@link wpdb::insert()}.
 	 * @return int|false The number of rows updated, or false on error.
 	 */
@@ -319,9 +319,9 @@ class BP_Invitation {
 	 *
 	 * @see wpdb::update() for further description of paramater formats.
 	 *
-	 * @param array $where Array of WHERE clauses to filter by, passed to
-	 *        {@link wpdb::delete()}. Accepts any property of a
-	 *        BP_Invitation object.
+	 * @param array $where        Array of WHERE clauses to filter by, passed to
+	 *                            {@link wpdb::delete()}. Accepts any property of a
+	 *                            BP_Invitation object.
 	 * @param array $where_format See {@link wpdb::insert()}.
 	 * @return int|false The number of rows updated, or false on error.
 	 */
@@ -338,8 +338,7 @@ class BP_Invitation {
 	 *
 	 * @since 5.0.0
 	 *
-	 * @param array $args See {@link BP_Invitation::get()}
-	 *        for more details.
+	 * @param array $args See {@link BP_Invitation::get()} for more details.
 	 * @return string WHERE clause.
 	 */
 	protected static function get_where_sql( $args = array() ) {
@@ -462,8 +461,7 @@ class BP_Invitation {
 	 *
 	 * @since 5.0.0
 	 *
-	 * @param array $args See {@link BP_Invitation::get()}
-	 *        for more details.
+	 * @param array $args See {@link BP_Invitation::get()} for more details.
 	 * @return string ORDER BY clause.
 	 */
 	protected static function get_order_by_sql( $args = array() ) {
@@ -499,8 +497,7 @@ class BP_Invitation {
 	 *
 	 * @since 5.0.0
 	 *
-	 * @param array $args See {@link BP_Invitation::get()}
-	 *        for more details.
+	 * @param array $args See {@link BP_Invitation::get()} for more details.
 	 * @return string LIMIT clause.
 	 */
 	protected static function get_paged_sql( $args = array() ) {
@@ -556,8 +553,8 @@ class BP_Invitation {
 	 *
 	 * @since 5.0.0
 	 *
-	 * @param $args Associative array of filter arguments.
-	 *        See {@BP_Invitation::get()} for a breakdown.
+	 * @param array $args Associative array of filter arguments.
+	 *                    See {@BP_Invitation::get()} for a breakdown.
 	 * @return array Associative array of 'data' and 'format' args.
 	 */
 	protected static function get_query_clauses( $args = array() ) {
@@ -847,11 +844,11 @@ class BP_Invitation {
 	 *      accepted update/where arguments.
 	 *
 	 * @param array $update_args Associative array of fields to update,
-	 *        and the values to update them to. Of the format
-	 *            array( 'user_id' => 4, 'class' => 'BP_Groups_Invitation_Manager', )
-	 * @param array $where_args Associative array of columns/values, to
-	 *        determine which rows should be updated. Of the format
-	 *            array( 'item_id' => 7, 'class' => 'BP_Groups_Invitation_Manager', )
+	 *                           and the values to update them to. Of the format
+	 *                           array( 'user_id' => 4, 'class' => 'BP_Groups_Invitation_Manager', ).
+	 * @param array $where_args  Associative array of columns/values, to
+	 *                           determine which rows should be updated. Of the format
+	 *                           array( 'item_id' => 7, 'class' => 'BP_Groups_Invitation_Manager', ).
 	 * @return int|bool Number of rows updated on success, false on failure.
 	 */
 	public static function update( $update_args = array(), $where_args = array() ) {
@@ -883,8 +880,8 @@ class BP_Invitation {
 	 *      accepted where arguments.
 	 *
 	 * @param array $args Associative array of columns/values, to determine
-	 *        which rows should be deleted.  Of the format
-	 *            array( 'item_id' => 7, 'class' => 'BP_Groups_Invitation_Manager', )
+	 *                    which rows should be deleted.  Of the format
+	 *                    array( 'item_id' => 7, 'class' => 'BP_Groups_Invitation_Manager', ).
 	 * @return int|bool Number of rows deleted on success, false on failure.
 	 */
 	public static function delete( $args = array() ) {
diff --git src/bp-groups/bp-groups-functions.php src/bp-groups/bp-groups-functions.php
index b1865ddb6..7bcad1a0a 100644
--- src/bp-groups/bp-groups-functions.php
+++ src/bp-groups/bp-groups-functions.php
@@ -1491,7 +1491,7 @@ function groups_uninvite_user( $user_id, $group_id, $inviter_id = false ) {
 		'inviter_id' => $inviter_id,
 	) );
 
- 	if ( $success ) {
+	if ( $success ) {
 		/**
 		 * Fires after uninviting a user from a group.
 		 *
@@ -1560,8 +1560,8 @@ function groups_reject_invite( $user_id, $group_id, $inviter_id = false ) {
 	 * @since 1.0.0
 	 * @since 5.0.0 The $inviter_id arg was added.
 	 *
-	 * @param int $user_id  ID of the user rejecting the invite.
-	 * @param int $group_id ID of the group being rejected.
+	 * @param int $user_id    ID of the user rejecting the invite.
+	 * @param int $group_id   ID of the group being rejected.
 	 * @param int $inviter_id ID of the inviter.
 	 */
 	do_action( 'groups_reject_invite', $user_id, $group_id, $inviter_id );
@@ -2188,16 +2188,18 @@ function groups_check_for_membership_request( $user_id, $group_id ) {
   * @return array Array of group IDs.
   */
  function groups_get_membership_requested_user_ids( $group_id = 0 ) {
- 	if ( ! $group_id ) {
- 		$group_id = bp_get_current_group_id();
- 	}
+	if ( ! $group_id ) {
+		$group_id = bp_get_current_group_id();
+	}
 
-	$requests      = groups_get_requests( array(
+	$requests = groups_get_requests( array(
 		'item_id' => $group_id,
 		'fields'  => 'user_ids'
 	) );
 
-	//@TODO-6210: What about those who make a request by email only (not yet site members)?
+	/**
+	 * @TODO-6210: What about those who make a request by email only (not yet site members)?
+	 */
 	return $requests;
 }
 
diff --git src/bp-groups/classes/class-bp-groups-group.php src/bp-groups/classes/class-bp-groups-group.php
index 8469129a5..dca139318 100644
--- src/bp-groups/classes/class-bp-groups-group.php
+++ src/bp-groups/classes/class-bp-groups-group.php
@@ -970,7 +970,7 @@ class BP_Groups_Group {
 		}
 		if ( $page ) {
 			$args['page'] = $page;
- 		}
+		}
 
 		$requests = groups_get_requests( $args );
 		$total    = count( groups_get_membership_requested_user_ids( $group_id ) );
diff --git src/bp-groups/classes/class-bp-groups-invitation-manager.php src/bp-groups/classes/class-bp-groups-invitation-manager.php
index 9abf2b854..d22cd0977 100644
--- src/bp-groups/classes/class-bp-groups-invitation-manager.php
+++ src/bp-groups/classes/class-bp-groups-invitation-manager.php
@@ -22,11 +22,9 @@ class BP_Groups_Invitation_Manager extends BP_Invitation_Manager {
 	/**
 	 * Construct parameters.
 	 *
-	 * @since 3.1.0
+	 * @since 5.0.0
 	 *
-	 * @param array|string $args {
-
-	 * }
+	 * @param array|string $args.
 	 */
 	public function __construct( $args = '' ) {
 		parent::__construct();
@@ -36,7 +34,7 @@ class BP_Groups_Invitation_Manager extends BP_Invitation_Manager {
 	 * This is where custom actions are added to run when notifications of an
 	 * invitation or request need to be generated & sent.
 	 *
-	 * @since 2.7.0
+	 * @since 5.0.0
 	 *
 	 * @param int $id The ID of the invitation to mark as sent.
 	 * @return bool True on success, false on failure.
@@ -63,7 +61,7 @@ class BP_Groups_Invitation_Manager extends BP_Invitation_Manager {
 	 * This is where custom actions are added to run when an invitation
 	 * or request is accepted.
 	 *
-	 * @since 2.7.0
+	 * @since 5.0.0
 	 *
 	 * @param string $type Are we accepting an invitation or request?
 	 * @param array  $r    Parameters that describe the invitation being accepted.
@@ -131,10 +129,12 @@ class BP_Groups_Invitation_Manager extends BP_Invitation_Manager {
 	 * With group invitations, we don't need to keep the old record, so we delete rather than
 	 * mark invitations as "accepted."
 	 *
-	 * @since 2.7.0
+	 * @since 5.0.0
 	 *
 	 * @see BP_Invitation::mark_accepted_by_data()
 	 *      for a description of arguments.
+	 *
+	 * @param array $args.
 	 */
 	public function mark_accepted( $args ) {
 		// Delete all existing invitations/requests to this group for this user.
@@ -149,6 +149,9 @@ class BP_Groups_Invitation_Manager extends BP_Invitation_Manager {
 	 * Should this invitation be created?
 	 *
 	 * @since 5.0.0
+	 *
+	 * @param array $args.
+	 * @return bool
 	 */
 	public function allow_invitation( $args ) {
 		// Does the inviter have this capability?
@@ -173,6 +176,9 @@ class BP_Groups_Invitation_Manager extends BP_Invitation_Manager {
 	 * Should this request be created?
 	 *
 	 * @since 5.0.0
+	 *
+	 * @param array $args.
+	 * @return bool.
 	 */
 	public function allow_request( $args ) {
 		// Does the requester have this capability? (Also checks for duplicates.)
diff --git src/bp-groups/classes/class-bp-groups-member.php src/bp-groups/classes/class-bp-groups-member.php
index dc54b9466..8a6fe86f5 100644
--- src/bp-groups/classes/class-bp-groups-member.php
+++ src/bp-groups/classes/class-bp-groups-member.php
@@ -833,7 +833,9 @@ class BP_Groups_Member {
 			'where'  => '',
 			'limits' => '',
 		);
-//@TODO 6210.
+        /**
+		 * @TODO 6210. < What has to be done? :)
+		 */
 		switch ( $r['type'] ) {
 			case 'membership' :
 			default :
@@ -884,8 +886,8 @@ class BP_Groups_Member {
 	 *
 	 * @global WPDB $wpdb
 	 *
-	 * @param  int $user_id  ID of the user.
-	 * @param  int $group_id ID of the group.
+	 * @param  int $user_id    ID of the user.
+	 * @param  int $group_id   ID of the group.
 	 * @param  int $inviter_id ID of the inviter. Specify if you want to delete
 	 *                         a specific invite. Leave false if you want to
 	 *                         delete all invites to this group.
diff --git src/class-buddypress.php src/class-buddypress.php
index ea807f44b..0d195abc5 100644
--- src/class-buddypress.php
+++ src/class-buddypress.php
@@ -467,26 +467,26 @@ class BuddyPress {
 		require( $this->plugin_dir . 'bp-core/bp-core-theme-compatibility.php' );
 
 		// Require all of the BuddyPress core libraries
-		require( $this->plugin_dir . 'bp-core/bp-core-dependency.php'       );
-		require( $this->plugin_dir . 'bp-core/bp-core-actions.php'          );
-		require( $this->plugin_dir . 'bp-core/bp-core-caps.php'             );
-		require( $this->plugin_dir . 'bp-core/bp-core-cache.php'            );
-		require( $this->plugin_dir . 'bp-core/bp-core-cssjs.php'            );
-		require( $this->plugin_dir . 'bp-core/bp-core-update.php'           );
-		require( $this->plugin_dir . 'bp-core/bp-core-options.php'          );
-		require( $this->plugin_dir . 'bp-core/bp-core-taxonomy.php'         );
-		require( $this->plugin_dir . 'bp-core/bp-core-filters.php'          );
-		require( $this->plugin_dir . 'bp-core/bp-core-attachments.php'      );
-		require( $this->plugin_dir . 'bp-core/bp-core-avatars.php'          );
-		require( $this->plugin_dir . 'bp-core/bp-core-widgets.php'          );
-		require( $this->plugin_dir . 'bp-core/bp-core-template.php'         );
-		require( $this->plugin_dir . 'bp-core/bp-core-adminbar.php'         );
-		require( $this->plugin_dir . 'bp-core/bp-core-buddybar.php'         );
-		require( $this->plugin_dir . 'bp-core/bp-core-catchuri.php'         );
-		require( $this->plugin_dir . 'bp-core/bp-core-functions.php'        );
-		require( $this->plugin_dir . 'bp-core/bp-core-moderation.php'       );
-		require( $this->plugin_dir . 'bp-core/bp-core-loader.php'           );
-		require( $this->plugin_dir . 'bp-core/bp-core-customizer-email.php' );
+		require( $this->plugin_dir . 'bp-core/bp-core-dependency.php'        );
+		require( $this->plugin_dir . 'bp-core/bp-core-actions.php'           );
+		require( $this->plugin_dir . 'bp-core/bp-core-caps.php'              );
+		require( $this->plugin_dir . 'bp-core/bp-core-cache.php'             );
+		require( $this->plugin_dir . 'bp-core/bp-core-cssjs.php'             );
+		require( $this->plugin_dir . 'bp-core/bp-core-update.php'            );
+		require( $this->plugin_dir . 'bp-core/bp-core-options.php'           );
+		require( $this->plugin_dir . 'bp-core/bp-core-taxonomy.php'          );
+		require( $this->plugin_dir . 'bp-core/bp-core-filters.php'           );
+		require( $this->plugin_dir . 'bp-core/bp-core-attachments.php'       );
+		require( $this->plugin_dir . 'bp-core/bp-core-avatars.php'           );
+		require( $this->plugin_dir . 'bp-core/bp-core-widgets.php'           );
+		require( $this->plugin_dir . 'bp-core/bp-core-template.php'          );
+		require( $this->plugin_dir . 'bp-core/bp-core-adminbar.php'          );
+		require( $this->plugin_dir . 'bp-core/bp-core-buddybar.php'          );
+		require( $this->plugin_dir . 'bp-core/bp-core-catchuri.php'          );
+		require( $this->plugin_dir . 'bp-core/bp-core-functions.php'         );
+		require( $this->plugin_dir . 'bp-core/bp-core-moderation.php'        );
+		require( $this->plugin_dir . 'bp-core/bp-core-loader.php'            );
+		require( $this->plugin_dir . 'bp-core/bp-core-customizer-email.php'  );
 		require( $this->plugin_dir . 'bp-core/bp-core-invitations-cache.php' );
 
 		// Maybe load deprecated functionality (this double negative is proof positive!)
