Code Duplication    Length = 13-13 lines in 2 locations

eZ/Publish/API/Repository/Tests/SearchServiceTest.php 1 location

@@ 4378-4390 (lines=13) @@
4375
            $closure($result);
4376
        }
4377
4378
        if ($ignoreScore) {
4379
            foreach ([$fixture, $result] as $set) {
4380
                $property = new \ReflectionProperty(get_class($set), 'maxScore');
4381
                $property->setAccessible(true);
4382
                $property->setValue($set, 0.0);
4383
4384
                foreach ($set->searchHits as $hit) {
4385
                    $property = new \ReflectionProperty(get_class($hit), 'score');
4386
                    $property->setAccessible(true);
4387
                    $property->setValue($hit, 0.0);
4388
                }
4389
            }
4390
        }
4391
4392
        foreach ([$fixture, $result] as $set) {
4393
            foreach ($set->searchHits as $hit) {

eZ/Publish/API/Repository/Tests/SearchServiceLocationTest.php 1 location

@@ 1175-1187 (lines=13) @@
1172
            $closure($result);
1173
        }
1174
1175
        if ($ignoreScore) {
1176
            foreach ([$fixture, $result] as $result) {
1177
                $property = new \ReflectionProperty(get_class($result), 'maxScore');
1178
                $property->setAccessible(true);
1179
                $property->setValue($result, 0.0);
1180
1181
                foreach ($result->searchHits as $hit) {
1182
                    $property = new \ReflectionProperty(get_class($hit), 'score');
1183
                    $property->setAccessible(true);
1184
                    $property->setValue($hit, 0.0);
1185
                }
1186
            }
1187
        }
1188
1189
        foreach ([$fixture, $result] as $set) {
1190
            foreach ($set->searchHits as $hit) {