TrustProxies
last analyzed

Complexity

Total Complexity 0

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 16
c 0
b 0
f 0
wmc 0
lcom 0
cbo 1
1
<?php
2
3
namespace App\Http\Middleware;
4
5
use Fideloper\Proxy\TrustProxies as Middleware;
6
use Illuminate\Http\Request;
7
8
class TrustProxies extends Middleware
9
{
10
    /**
11
     * The trusted proxies for this application.
12
     *
13
     * @var array|string
14
     */
15
    protected $proxies;
16
17
    /**
18
     * The headers that should be used to detect proxies.
19
     *
20
     * @var int
21
     */
22
    protected $headers = Request::HEADER_X_FORWARDED_ALL;
0 ignored issues
show
Deprecated Code introduced by
The constant Symfony\Component\HttpFo...:HEADER_X_FORWARDED_ALL has been deprecated with message: since Symfony 5.2, use either "HEADER_X_FORWARDED_FOR | HEADER_X_FORWARDED_HOST | HEADER_X_FORWARDED_PORT | HEADER_X_FORWARDED_PROTO" or "HEADER_X_FORWARDED_AWS_ELB" or "HEADER_X_FORWARDED_TRAEFIK" constants instead.

This class constant has been deprecated. The supplier of the class has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the constant will be removed from the class and what other constant to use instead.

Loading history...
23
}
24