Code Duplication    Length = 7-7 lines in 2 locations

src/PTS/DataTransformer/DataTransformer.php 2 locations

@@ 50-56 (lines=7) @@
47
     *
48
     * @throws ParseException
49
     */
50
    public function getData(ModelInterface $model, $mapType = 'dto')
51
    {
52
        $class = get_class($model);
53
        $fn = \Closure::bind($this->closuresFn->getToDataFn(), $model, $class);
54
        $map = $this->mapsManager->getMap($class, $mapType);
55
        return $fn($map, $this->typeConverter);
56
    }
57
58
    /**
59
     * @param array $data
@@ 65-71 (lines=7) @@
62
     *
63
     * @throws ParseException
64
     */
65
    public function fillModel(array $data, ModelInterface $model, $mapType = 'dto')
66
    {
67
        $class = get_class($model);
68
        $fn = \Closure::bind($this->closuresFn->getFillFn(), $model, $class);
69
        $map = $this->mapsManager->getMap($class, $mapType);
70
        $fn($data, $map, $this->typeConverter);
71
    }
72
73
    /**
74
     * @param string $class