Code Duplication    Length = 3-3 lines in 2 locations

src/SmartCNAB/Support/File/Remittance.php 1 location

@@ 147-149 (lines=3) @@
144
            $value = empty($data[$field]) ? '' : $data[$field];
145
            $method = 'mutate' . ucfirst($type) . ucfirst($field);
146
147
            if (method_exists($this, $method)) {
148
                $value = call_user_func([$this, $method], $value, $data, $meta);
149
            }
150
151
            return $this->picture->to($meta['pic'], $value, $meta);
152
        };

src/SmartCNAB/Support/Picture.php 1 location

@@ 241-243 (lines=3) @@
238
    {
239
        $method = 'toAuto' . ucfirst($meta['type']);
240
241
        if (method_exists($this, $method)) {
242
            $value = call_user_func([$this, $method], $value, $meta);
243
        }
244
245
        return $value;
246
    }