Code Duplication    Length = 9-9 lines in 2 locations

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

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

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

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