Code Duplication    Length = 9-9 lines in 2 locations

tests/Snapshotter/AggregationHandler/Database/IncidentRecordTest.php 1 location

@@ 33-41 (lines=9) @@
30
     * @param IncidentSource $source
31
     * @return IncidentRecord
32
     */
33
    private function createIncident(IncidentSource $source): IncidentRecord
34
    {
35
        $snapshot = $this->makeSnapshot('custom error', 123);
36
        $incident = $source->createFromSnapshot($snapshot);
37
38
        $incident->save();
39
40
        return $incident;
41
    }
42
}

tests/Snapshotter/AggregationHandler/Sources/IncidentSourceTest.php 1 location

@@ 168-176 (lines=9) @@
165
     * @param IncidentSource $source
166
     * @return IncidentRecord
167
     */
168
    private function createIncident(IncidentSource $source): IncidentRecord
169
    {
170
        $snapshot = $this->makeSnapshot('custom error', 123);
171
        $incident = $source->createFromSnapshot($snapshot);
172
173
        $incident->save();
174
175
        return $incident;
176
    }
177
}