Code Duplication    Length = 11-11 lines in 2 locations

src/Event/Subscriber/CacheSubscriber.php 1 location

@@ 134-144 (lines=11) @@
131
    /**
132
     * {@inheritdoc}
133
     */
134
    public static function getSubscribedEvents()
135
    {
136
        return [
137
            Events::REQUEST_CREATED       => ['onRequestCreated', -100],
138
            Events::REQUEST_SENT          => ['onRequestSent', -100],
139
            Events::REQUEST_ERRORED       => ['onRequestErrored', -100],
140
            Events::MULTI_REQUEST_CREATED => ['onMultiRequestCreated', -100],
141
            Events::MULTI_REQUEST_SENT    => ['onMultiRequestSent', -100],
142
            Events::MULTI_REQUEST_ERRORED => ['onMultiRequestErrored', -100],
143
        ];
144
    }
145
}
146

src/Event/Subscriber/StopwatchSubscriber.php 1 location

@@ 121-131 (lines=11) @@
118
    /**
119
     * {@inheritdoc}
120
     */
121
    public static function getSubscribedEvents()
122
    {
123
        return [
124
            Events::REQUEST_CREATED       => ['onRequestCreated', 10000],
125
            Events::REQUEST_SENT          => ['onRequestSent', -10000],
126
            Events::REQUEST_ERRORED       => ['onRequestErrored', -10000],
127
            Events::MULTI_REQUEST_CREATED => ['onMultiRequestCreated', 10000],
128
            Events::MULTI_REQUEST_SENT    => ['onMultiRequestSent', -10000],
129
            Events::MULTI_REQUEST_ERRORED => ['onMultiResponseErrored', -10000],
130
        ];
131
    }
132
133
    /**
134
     * @param HttpAdapterInterface     $httpAdapter