Code Duplication    Length = 9-9 lines in 2 locations

src/Charcoal/Property/ImageProperty.php 2 locations

@@ 132-140 (lines=9) @@
129
            return $this;
130
        }
131
132
        if (!in_array($event, $this->acceptedEffectsEvents())) {
133
            if (!is_string($event)) {
134
                $event = (is_object($event) ? get_class($event) : gettype($event));
135
            }
136
            throw new OutOfBoundsException(sprintf(
137
                'Unsupported image property event "%s" provided',
138
                $event
139
            ));
140
        }
141
142
        $this->applyEffects = $event;
143
@@ 166-174 (lines=9) @@
163
     */
164
    public function canApplyEffects($event)
165
    {
166
        if (!in_array($event, $this->acceptedEffectsEvents())) {
167
            if (!is_string($event)) {
168
                $event = (is_object($event) ? get_class($event) : gettype($event));
169
            }
170
            throw new OutOfBoundsException(sprintf(
171
                'Unsupported image property event "%s" provided',
172
                $event
173
            ));
174
        }
175
176
        return $this->applyEffects === $event;
177
    }