GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Issues (91)

app/Traits/CaptureIpTrait.php (1 issue)

Severity
1
<?php
2
3
namespace App\Traits;
4
5
class CaptureIpTrait
6
{
7
    private $ipAddress = null;
0 ignored issues
show
The private property $ipAddress is not used, and could be removed.
Loading history...
8
9
    public function getClientIp()
10
    {
11
        if (getenv('HTTP_CLIENT_IP')) {
12
            $ipAddress = getenv('HTTP_CLIENT_IP');
13
        } elseif (getenv('HTTP_X_FORWARDED_FOR')) {
14
            $ipAddress = getenv('HTTP_X_FORWARDED_FOR');
15
        } elseif (getenv('HTTP_X_FORWARDED')) {
16
            $ipAddress = getenv('HTTP_X_FORWARDED');
17
        } elseif (getenv('HTTP_FORWARDED_FOR')) {
18
            $ipAddress = getenv('HTTP_FORWARDED_FOR');
19
        } elseif (getenv('HTTP_FORWARDED')) {
20
            $ipAddress = getenv('HTTP_FORWARDED');
21
        } elseif (getenv('REMOTE_ADDR')) {
22
            $ipAddress = getenv('REMOTE_ADDR');
23
        } else {
24
            $ipAddress = config('settings.nullIpAddress');
25
        }
26
27
        return $ipAddress;
28
    }
29
}
30