This class seems to be duplicated in your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate
the same code in three or more different places, we strongly encourage you to
look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.
Loading history...
20
{
21
/**
22
* @var RequestBodyConverter
23
*/
24
private $converter;
25
26
/**
27
* @var string
28
*/
29
private $name;
30
31
/**
32
* @var string
33
*/
34
private $encoding;
35
36
/**
37
* Constructor
38
*
39
* @param RequestBodyConverter $converter
40
* @param string $name
41
* @param string $encoding
42
*/
43
6
public function __construct(RequestBodyConverter $converter, string $name, string $encoding)
44
{
45
6
$this->converter = $converter;
46
6
$this->name = $name;
47
6
$this->encoding = $encoding;
48
6
}
49
50
/**
51
* Set a value to the [@see RequestBuilder] for parameter type
52
*
53
* @param RequestBuilder $requestBuilder
54
* @param mixed $value
55
* @return void
56
*/
57
4
public function apply(RequestBuilder $requestBuilder, $value): void
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.