Code Duplication    Length = 9-9 lines in 2 locations

src/Event/Subscriber/HistorySubscriber.php 1 location

@@ 84-92 (lines=9) @@
81
    /**
82
     * @param MultiRequestSentEvent $event
83
     */
84
    public function onMultiRequestSent(MultiRequestSentEvent $event)
85
    {
86
        foreach ($event->getResponses() as $response) {
87
            $request = $this->record($response->getParameter('request'), $response);
88
89
            $event->removeResponse($response);
90
            $event->addResponse($response->withParameter('request', $request));
91
        }
92
    }
93
94
    /**
95
     * {@inheritdoc}

src/Event/Subscriber/LoggerSubscriber.php 1 location

@@ 100-108 (lines=9) @@
97
    /**
98
     * @param MultiRequestSentEvent $event
99
     */
100
    public function onMultiRequestSent(MultiRequestSentEvent $event)
101
    {
102
        foreach ($event->getResponses() as $response) {
103
            $request = $this->debug($event->getHttpAdapter(), $response->getParameter('request'), $response);
104
105
            $event->removeResponse($response);
106
            $event->addResponse($response->withParameter('request', $request));
107
        }
108
    }
109
110
    /**
111
     * @param MultiRequestErroredEvent $event