Code Duplication    Length = 9-9 lines in 2 locations

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

@@ 1105-1113 (lines=9) @@
1102
     *
1103
     * @return string
1104
     */
1105
    protected function printResult(SearchResult $result)
1106
    {
1107
        $printed = '';
1108
        foreach ($result->searchHits as $hit) {
1109
            $printed .= sprintf(" - %s (%s)\n", $hit->valueObject['title'], $hit->valueObject['id']);
1110
        }
1111
1112
        return $printed;
1113
    }
1114
1115
    /**
1116
     * Simplify search result.

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

@@ 4502-4510 (lines=9) @@
4499
     *
4500
     * @return string
4501
     */
4502
    protected function printResult(SearchResult $result)
4503
    {
4504
        $printed = '';
4505
        foreach ($result->searchHits as $hit) {
4506
            $printed .= sprintf(" - %s (%s)\n", $hit->valueObject['title'], $hit->valueObject['id']);
4507
        }
4508
4509
        return $printed;
4510
    }
4511
4512
    /**
4513
     * Simplify search result.