Code Duplication    Length = 9-9 lines in 2 locations

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

@@ 1437-1445 (lines=9) @@
1434
     *
1435
     * @return string
1436
     */
1437
    protected function printResult(SearchResult $result)
1438
    {
1439
        $printed = '';
1440
        foreach ($result->searchHits as $hit) {
1441
            $printed .= sprintf(" - %s (%s)\n", $hit->valueObject['title'], $hit->valueObject['id']);
1442
        }
1443
1444
        return $printed;
1445
    }
1446
1447
    /**
1448
     * Simplify search result.

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

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