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 StringConverter
23
*/
24
private $converter;
25
26
/**
27
* @var string
28
*/
29
private $name;
30
31
/**
32
* Constructor
33
*
34
* @param StringConverter $converter
35
* @param string $name
36
*/
37
public function __construct(StringConverter $converter, string $name)
38
{
39
$this->converter = $converter;
40
$this->name = $name;
41
}
42
43
/**
44
* Set a value to the [@see RequestBuilder] for parameter type
45
*
46
* @param RequestBuilder $requestBuilder
47
* @param mixed $value
48
* @return void
49
* @throws \RuntimeException
50
*/
51
public function apply(RequestBuilder $requestBuilder, $value): void
52
{
53
foreach ($this->getListValues($value) as $element) {
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.