Code Duplication    Length = 3-3 lines in 2 locations

src/Deserializer.php 2 locations

@@ 198-200 (lines=3) @@
195
            if ($location) {
196
                $visitProperties[] = [$location, $schema];
197
                // Trigger the before method on each unique visitor location
198
                if (!isset($context['visitors'][$location])) {
199
                    $result = $this->triggerBeforeVisitor($location, $model, $result, $response, $context);
200
                }
201
            }
202
        }
203
@@ 233-235 (lines=3) @@
230
        }
231
232
        // Trigger the before method on each unique visitor location
233
        if (!isset($context['visitors'][$location])) {
234
            $result = $this->triggerBeforeVisitor($location, $model, $result, $response, $context);
235
        }
236
237
        // Visit each item in the response
238
        $result = $this->responseLocations[$location]->visit($result, $response, $model);