Code Duplication    Length = 12-12 lines in 2 locations

src/RequestLocation/FormParamLocation.php 1 location

@@ 38-49 (lines=12) @@
35
     *
36
     * @return RequestInterface
37
     */
38
    public function visit(
39
        CommandInterface $command,
40
        RequestInterface $request,
41
        Parameter $param
42
    ) {
43
        $this->formParamsData['form_params'][$param->getWireName()] = $this->prepareValue(
44
            $command[$param->getName()],
45
            $param
46
        );
47
48
        return $request;
49
    }
50
51
    /**
52
     * @param CommandInterface $command

src/RequestLocation/MultiPartLocation.php 1 location

@@ 37-48 (lines=12) @@
34
     * @param Parameter $param
35
     * @return RequestInterface
36
     */
37
    public function visit(
38
        CommandInterface $command,
39
        RequestInterface $request,
40
        Parameter $param
41
    ) {
42
        $this->multipartData[] = [
43
            'name' => $param->getWireName(),
44
            'contents' => $this->prepareValue($command[$param->getName()], $param)
45
        ];
46
47
        return $request;
48
    }
49
50
51
    /**