Code Duplication    Length = 13-13 lines in 2 locations

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

@@ 1079-1091 (lines=13) @@
1076
            $closure($result);
1077
        }
1078
1079
        if ($ignoreScore) {
1080
            foreach (array($fixture, $result) as $result) {
1081
                $property = new \ReflectionProperty(get_class($result), 'maxScore');
1082
                $property->setAccessible(true);
1083
                $property->setValue($result, 0.0);
1084
1085
                foreach ($result->searchHits as $hit) {
1086
                    $property = new \ReflectionProperty(get_class($hit), 'score');
1087
                    $property->setAccessible(true);
1088
                    $property->setValue($hit, 0.0);
1089
                }
1090
            }
1091
        }
1092
1093
        foreach (array($fixture, $result) as $set) {
1094
            foreach ($set->searchHits as $hit) {

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

@@ 4378-4390 (lines=13) @@
4375
            $closure($result);
4376
        }
4377
4378
        if ($ignoreScore) {
4379
            foreach (array($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 (array($fixture, $result) as $set) {
4393
            foreach ($set->searchHits as $hit) {