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...
12
{
13
/**
14
* @param ListUserRequest $value
15
* @return array
16
*/
17
public function transform($value)
18
{
19
return [
20
'page' => $value->getPage(),
21
'limit' => $value->getLimit(),
22
'user_phone' => $value->getPhone(),
23
'user_email' => $value->getEmail(),
24
'language_id' => $value->getLanguageId(),
25
'custom_fields' => $value->getCustomFields(),
26
'amount_of_cases' => $value->isAmountOfCases(),
27
];
28
}
29
30
/**
31
* @param array $value
32
* @return ListUserRequest
33
*/
34
public function reverseTransform($value)
35
{
36
throw new \LogicException('Method not implemented.');
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.