Code Duplication    Length = 10-10 lines in 2 locations

src/Transformer/Crop.php 1 location

@@ 56-65 (lines=10) @@
53
    /**
54
     * {@inheritdoc}
55
     */
56
    protected function parseOptions($options)
57
    {
58
        $options = parent::parseOptions($options);
59
60
        if (empty($options['width']) || empty($options['height'])) {
61
            throw new InvalidArgumentException; //todo
62
        }
63
64
        return $options;
65
    }
66
67
    /**
68
     * {@inheritdoc}

src/Transformer/Fit.php 1 location

@@ 72-81 (lines=10) @@
69
    /**
70
     * {@inheritdoc}
71
     */
72
    protected function parseOptions($options)
73
    {
74
        $options = parent::parseOptions($options);
75
76
        if (empty($options['width']) && empty($options['height'])) {
77
            throw new InvalidArgumentException; //todo
78
        }
79
80
        return $options;
81
    }
82
83
    /**
84
     * {@inheritdoc}