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

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