AnonymizeIp   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 13
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A handle() 0 10 1
1
<?php
2
3
namespace Facade\FlareClient\Middleware;
4
5
use Facade\FlareClient\Report;
6
7
class AnonymizeIp
8
{
9
    public function handle(Report $report, $next)
10
    {
11
        $context = $report->allContext();
12
13
        $context['request']['ip'] = null;
14
15
        $report->userProvidedContext($context);
16
17
        return $next($report);
18
    }
19
}
20