This method 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.
This method 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...
34
switch (get_class($parameter->getType())) {
35
case LongType::class:
36
case IntegerType::class:
37
return (int)$serialized;
38
case DoubleType::class:
39
return (double)$serialized;
40
case FloatType::class:
41
return (float)$serialized;
42
default:
43
return (string)$serialized;
44
}
45
}
46
47
/**
48
* @param Parameter $parameter
49
* @return string
50
*/
51
public function getDescription(Parameter $parameter) {
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.