ObfuscateRequest   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 23
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getObfuscatedPatterns() 0 4 1
1
<?php
2
3
namespace Rezzza\SecurityBundle\Controller\Annotations;
4
5
/**
6
 * @Annotation()
7
 *
8
 * ObfuscateRequest
9
 *
10
 * @author Stephane PY <[email protected]>
11
 */
12
class ObfuscateRequest
13
{
14
    /**
15
     * @var array<string>
16
     */
17
    private $obfuscatedPatterns;
18
19
    /**
20
     * @param array $data data
0 ignored issues
show
Bug introduced by
There is no parameter named $data. Was it maybe removed?

This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.

Consider the following example. The parameter $italy is not defined by the method finale(...).

/**
 * @param array $germany
 * @param array $island
 * @param array $italy
 */
function finale($germany, $island) {
    return "2:1";
}

The most likely cause is that the parameter was removed, but the annotation was not.

Loading history...
21
     */
22
    public function __construct(array $obfuscatedPatterns)
23
    {
24
        $this->obfuscatedPatterns = $obfuscatedPatterns;
25
    }
26
27
    /**
28
     * @return array<string>
29
     */
30
    public function getObfuscatedPatterns()
31
    {
32
        return $this->obfuscatedPatterns;
33
    }
34
}
35