Code Duplication    Length = 11-11 lines in 2 locations

src/Event/Subscriber/CacheSubscriber.php 1 location

@@ 152-162 (lines=11) @@
149
    /**
150
     * {@inheritdoc}
151
     */
152
    public static function getSubscribedEvents()
153
    {
154
        return [
155
            Events::REQUEST_CREATED       => ['onRequestCreated', -100],
156
            Events::REQUEST_SENT          => ['onRequestSent', -100],
157
            Events::REQUEST_ERRORED       => ['onRequestErrored', -100],
158
            Events::MULTI_REQUEST_CREATED => ['onMultiRequestCreated', -100],
159
            Events::MULTI_REQUEST_SENT    => ['onMultiRequestSent', -100],
160
            Events::MULTI_REQUEST_ERRORED => ['onMultiRequestErrored', -100],
161
        ];
162
    }
163
}
164

src/Event/Subscriber/StopwatchSubscriber.php 1 location

@@ 137-147 (lines=11) @@
134
    /**
135
     * {@inheritdoc}
136
     */
137
    public static function getSubscribedEvents()
138
    {
139
        return [
140
            Events::REQUEST_CREATED       => ['onRequestCreated', 10000],
141
            Events::REQUEST_SENT          => ['onRequestSent', -10000],
142
            Events::REQUEST_ERRORED       => ['onRequestErrored', -10000],
143
            Events::MULTI_REQUEST_CREATED => ['onMultiRequestCreated', 10000],
144
            Events::MULTI_REQUEST_SENT    => ['onMultiRequestSent', -10000],
145
            Events::MULTI_REQUEST_ERRORED => ['onMultiResponseErrored', -10000],
146
        ];
147
    }
148
149
    /**
150
     * Gets the stopwatch name.