Code Duplication    Length = 3-3 lines in 2 locations

src/lib/Zikula/Bundle/HookBundle/Controller/HookController.php 2 locations

@@ 285-287 (lines=3) @@
282
        if (empty($subscriber)) {
283
            throw new \InvalidArgumentException($this->get('translator.default')->__f('Module "%s" is not a valid subscriber.', ['%s' => $subscriber]));
284
        }
285
        if (!$this->get('kernel')->isBundle($subscriber)) {
286
            throw new \RuntimeException($this->get('translator.default')->__f('Subscriber module "%s" is not available.', $subscriber));
287
        }
288
        if (!$this->get('zikula_permissions_module.api.permission')->hasPermission($subscriber.'::', '::', ACCESS_ADMIN)) {
289
            throw new AccessDeniedException();
290
        }
@@ 366-368 (lines=3) @@
363
        if (empty($subscriber)) {
364
            throw new \InvalidArgumentException($this->get('translator.default')->__f('Module "%s" is not a valid subscriber.', ['%s' => $subscriber]));
365
        }
366
        if (!$this->get('kernel')->isBundle($subscriber)) {
367
            throw new \RuntimeException($this->get('translator.default')->__f('Subscriber module "%s" is not available.', $subscriber));
368
        }
369
        if (!$this->get('zikula_permissions_module.api.permission')->hasPermission($subscriber.'::', '::', ACCESS_ADMIN)) {
370
            throw new AccessDeniedException();
371
        }