Code Duplication    Length = 12-12 lines in 2 locations

Resolver/EventResolverFactory.php 2 locations

@@ 187-198 (lines=12) @@
184
     *
185
     * @throws \Exception|InvalidServiceException
186
     */
187
    public function addCustomResolver($id, $resolver)
188
    {
189
        if (!$resolver instanceof EventResolverInterface) {
190
            $this->handleException(
191
                new InvalidServiceException(
192
                    'Resolver Service must implement' . EventResolverInterface::class
193
                )
194
            );
195
196
            return;
197
        }
198
199
        $this->customResolvers[$id] = $resolver;
200
    }
201
@@ 207-218 (lines=12) @@
204
     *
205
     * @throws \Exception
206
     */
207
    public function setCommonResolver($resolver)
208
    {
209
        if (!$resolver instanceof EventResolverInterface) {
210
            $this->commonResolver = $this->handleException(
211
                new InvalidServiceException(
212
                    'Resolver Service must implement' . EventResolverInterface::class
213
                )
214
            );
215
216
            return;
217
        }
218
219
        $this->commonResolver = $resolver;
220
    }
221