Code Duplication    Length = 10-10 lines in 2 locations

src/Transformers/DateValues.php 1 location

@@ 25-34 (lines=10) @@
22
     *
23
     * @return array
24
     */
25
    public function transform($data)
26
    {
27
        foreach ($this->config['properties'] as $property) {
28
            if (isset($data[$property])) {
29
                $data[$property] = $this->parseDate($data[$property]);
30
            }
31
        }
32
33
        return $data;
34
    }
35
36
    /**
37
     * @param $value

src/Transformers/MoneyValues.php 1 location

@@ 45-54 (lines=10) @@
42
     *
43
     * @return array
44
     */
45
    public function transform($data)
46
    {
47
        foreach ($this->config['properties'] as $property) {
48
            if (isset($data[$property])) {
49
                $data[$property] = $this->parseMoney($data[$property]);
50
            }
51
        }
52
53
        return $data;
54
    }
55
56
    /**
57
     * @param $value