AnonymizeTransformPayloadFunctionProvider   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getTransformFunctionCode() 0 8 1
1
<?php
2
3
namespace Ftrrtf\RollbarBundle\Provider;
4
5
class AnonymizeTransformPayloadFunctionProvider implements TransformPayloadFunctionProviderInterface
6
{
7
    /**
8
     * {@inheritdoc}
9
     */
10
    public function getTransformFunctionCode()
11
    {
12
        return 'function (payload) {
13
  payload.data.person = {};
14
  payload.data.request.user_ip = \'\';
15
  return payload;
16
}';
17
    }
18
}
19