Code Duplication    Length = 9-9 lines in 2 locations

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

@@ 1120-1128 (lines=9) @@
1117
     *
1118
     * @return string
1119
     */
1120
    protected function printResult(SearchResult $result)
1121
    {
1122
        $printed = '';
1123
        foreach ($result->searchHits as $hit) {
1124
            $printed .= sprintf(" - %s (%s)\n", $hit->valueObject['title'], $hit->valueObject['id']);
1125
        }
1126
1127
        return $printed;
1128
    }
1129
1130
    /**
1131
     * Simplify search result.

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

@@ 4425-4433 (lines=9) @@
4422
     *
4423
     * @return string
4424
     */
4425
    protected function printResult(SearchResult $result)
4426
    {
4427
        $printed = '';
4428
        foreach ($result->searchHits as $hit) {
4429
            $printed .= sprintf(" - %s (%s)\n", $hit->valueObject['title'], $hit->valueObject['id']);
4430
        }
4431
4432
        return $printed;
4433
    }
4434
4435
    /**
4436
     * Simplify search result.