Code Duplication    Length = 6-6 lines in 2 locations

src/Display/Display.php 2 locations

@@ 193-198 (lines=6) @@
190
            return $this->extensions->get($method);
191
        }
192
193
        if (starts_with($name, 'set') && $this->extensions->has($method)) {
194
            $extension = $this->extensions->get($method);
195
            call_user_func_array([$extension, 'set'], $parameters);
196
197
            return $this;
198
        }
199
200
        if (starts_with($name, 'add') && $this->extensions->has(str_plural($method))) {
201
            $extension = $this->extensions->get(str_plural($method));
@@ 200-205 (lines=6) @@
197
            return $this;
198
        }
199
200
        if (starts_with($name, 'add') && $this->extensions->has(str_plural($method))) {
201
            $extension = $this->extensions->get(str_plural($method));
202
            call_user_func_array([$extension, 'add'], $parameters);
203
204
            return $this;
205
        }
206
207
        throw new \BadMethodCallException("Call to undefined method [{$name}]");
208
    }