Skip to content

Commit

Permalink
PHPCS fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
boonebgorges committed Aug 21, 2023
1 parent 16e9a82 commit 7f7b98d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions classes/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ public static function get( $args = [] ) {
$connection_ids = $wpdb->get_col( $sql_statement );

$connections = array_map(
function( $connection_id ) {
function ( $connection_id ) {
return self::get_instance( $connection_id );
},
$connection_ids
Expand All @@ -332,7 +332,7 @@ function( $connection_id ) {

usort(
$connections,
function( $connection_a, $connection_b ) use ( $group_id ) {
function ( $connection_a, $connection_b ) use ( $group_id ) {
$connection_a_group_ids = $connection_a->get_group_ids();
$connection_b_group_ids = $connection_b->get_group_ids();

Expand Down
4 changes: 2 additions & 2 deletions classes/Frontend.php
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ public function process_group_search_ajax() {
$term = sanitize_text_field( wp_unslash( $_GET['term'] ) );
// phpcs:enable WordPress.Security.NonceVerification.Recommended

$group_format_callback = function( $group ) {
$group_format_callback = function ( $group ) {
return [
'groupName' => $group->name,
'groupUrl' => bp_get_group_permalink( $group ),
Expand Down Expand Up @@ -502,7 +502,7 @@ public function add_activity_scope_support( $args ) {
$connections = \OpenLab\Connections\Connection::get( [ 'group_id' => $group_id ] );

$connected_group_clauses = array_map(
function( $connection ) use ( $allow_new_blog_post, $allow_new_blog_comment, $group_id ) {
function ( $connection ) use ( $allow_new_blog_post, $allow_new_blog_comment, $group_id ) {
$c_group_ids = $connection->get_group_ids();
$connected_group_id = null;
foreach ( $c_group_ids as $c_group_id ) {
Expand Down
2 changes: 1 addition & 1 deletion classes/Invitation.php
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ public static function get( $args = [] ) {
$invitation_ids = $wpdb->get_col( $sql_statement );

$invitations = array_map(
function( $invitation_id ) {
function ( $invitation_id ) {
return self::get_instance( $invitation_id );
},
$invitation_ids
Expand Down

0 comments on commit 7f7b98d

Please sign in to comment.