Code Duplication    Length = 13-13 lines in 2 locations

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

@@ 1064-1076 (lines=13) @@
1061
            $closure($result);
1062
        }
1063
1064
        if ($ignoreScore) {
1065
            foreach (array($fixture, $result) as $result) {
1066
                $property = new \ReflectionProperty(get_class($result), 'maxScore');
1067
                $property->setAccessible(true);
1068
                $property->setValue($result, 0.0);
1069
1070
                foreach ($result->searchHits as $hit) {
1071
                    $property = new \ReflectionProperty(get_class($hit), 'score');
1072
                    $property->setAccessible(true);
1073
                    $property->setValue($hit, 0.0);
1074
                }
1075
            }
1076
        }
1077
1078
        foreach ($result->searchHits as $hit) {
1079
            $property = new \ReflectionProperty(get_class($hit), 'index');

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

@@ 4491-4503 (lines=13) @@
4488
            $closure($result);
4489
        }
4490
4491
        if ($ignoreScore) {
4492
            foreach (array($fixture, $result) as $set) {
4493
                $property = new \ReflectionProperty(get_class($set), 'maxScore');
4494
                $property->setAccessible(true);
4495
                $property->setValue($set, 0.0);
4496
4497
                foreach ($set->searchHits as $hit) {
4498
                    $property = new \ReflectionProperty(get_class($hit), 'score');
4499
                    $property->setAccessible(true);
4500
                    $property->setValue($hit, 0.0);
4501
                }
4502
            }
4503
        }
4504
4505
        foreach (array($fixture, $result) as $set) {
4506
            foreach ($set->searchHits as $hit) {