Code Duplication    Length = 10-10 lines in 2 locations

Repositories/Cache/CachePageDecorator.php 2 locations

@@ 25-34 (lines=10) @@
22
     *
23
     * @return object
24
     */
25
    public function findHomepage()
26
    {
27
        return $this->cache
28
            ->tags($this->entityName, 'global')
29
            ->remember("{$this->locale}.{$this->entityName}.findHomepage", $this->cacheTime,
30
                function () {
31
                    return $this->repository->findHomepage();
32
                }
33
            );
34
    }
35
36
    /**
37
     * Count all records
@@ 40-49 (lines=10) @@
37
     * Count all records
38
     * @return int
39
     */
40
    public function countAll()
41
    {
42
        return $this->cache
43
            ->tags($this->entityName, 'global')
44
            ->remember("{$this->locale}.{$this->entityName}.countAll", $this->cacheTime,
45
                function () {
46
                    return $this->repository->countAll();
47
                }
48
            );
49
    }
50
}
51