Test Failed
Push — main ( 6435b1...db043e )
by Paul
16:23 queued 07:02
created

Controller   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 4
dl 0
loc 11
rs 10
c 1
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A filterProfileId() 0 6 2
1
<?php
2
3
namespace GeminiLabs\SiteReviews\Integrations\BuddyBoss;
4
5
use GeminiLabs\SiteReviews\Controllers\AbstractController;
6
use GeminiLabs\SiteReviews\Review;
7
8
class Controller extends AbstractController
9
{
10
    /**
11
     * @filter site-reviews/assigned_users/profile_id
12
     */
13
    public function filterProfileId(int $profileId): int
14
    {
15
        if (empty($profileId)) {
16
            return (int) bp_displayed_user_id();
17
        }
18
        return $profileId;
19
    }
20
}
21