Code Duplication    Length = 9-9 lines in 2 locations

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

@@ 1356-1364 (lines=9) @@
1353
     *
1354
     * @return string
1355
     */
1356
    protected function printResult(SearchResult $result)
1357
    {
1358
        $printed = '';
1359
        foreach ($result->searchHits as $hit) {
1360
            $printed .= sprintf(" - %s (%s)\n", $hit->valueObject['title'], $hit->valueObject['id']);
1361
        }
1362
1363
        return $printed;
1364
    }
1365
1366
    /**
1367
     * Simplify search result.

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

@@ 4621-4629 (lines=9) @@
4618
     *
4619
     * @return string
4620
     */
4621
    protected function printResult(SearchResult $result)
4622
    {
4623
        $printed = '';
4624
        foreach ($result->searchHits as $hit) {
4625
            $printed .= sprintf(" - %s (%s)\n", $hit->valueObject['title'], $hit->valueObject['id']);
4626
        }
4627
4628
        return $printed;
4629
    }
4630
4631
    /**
4632
     * Simplify search result.