GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Code Duplication    Length = 12-13 lines in 2 locations

src/Event/Traits/SharedManagerTrait.php 2 locations

@@ 54-66 (lines=13) @@
51
    /**
52
     * {@inheritDoc}
53
     */
54
    public static function onEvent(
55
        $scope,
56
        /*# string */ $eventName,
57
        callable $callable,
58
        /*# int */ $priority = 0
59
    )/*# : bool */ {
60
        foreach ((array) $scope as $sc) {
61
            /* @var $em EventManagerInterface */
62
            $em = static::getShareable($sc);
63
            $em->attach($eventName, $callable, $priority);
64
        }
65
        return true;
66
    }
67
68
    /**
69
     * {@inheritDoc}
@@ 71-82 (lines=12) @@
68
    /**
69
     * {@inheritDoc}
70
     */
71
    public static function offEvent(
72
        $scope,
73
        /*# string */ $eventName = '',
74
        callable $callable = null
75
    )/*# : bool */ {
76
        foreach ((array) $scope as $sc) {
77
            /* @var $em EventManagerInterface */
78
            $em = static::getShareable($sc);
79
            $em->detach($eventName, $callable);
80
        }
81
        return true;
82
    }
83
84
    /**
85
     * {@inheritDoc}