Code Duplication    Length = 11-11 lines in 2 locations

Bundle/BlogBundle/Repository/ArticleRepository.php 2 locations

@@ 110-120 (lines=11) @@
107
            ->getOneOrNullResult();
108
    }
109
110
    public function getVeryFirstRecord()
111
    {
112
        $queryBuilder = $this->getAll(true)
113
            ->getInstance();
114
115
        return $queryBuilder
116
            ->orderBy('article.id', 'ASC')
117
            ->setMaxResults(1)
118
            ->getQuery()
119
            ->getOneOrNullResult();
120
    }
121
122
    public function getVeryLastRecord()
123
    {
@@ 122-132 (lines=11) @@
119
            ->getOneOrNullResult();
120
    }
121
122
    public function getVeryLastRecord()
123
    {
124
        $queryBuilder = $this->getAll(true)
125
            ->getInstance();
126
127
        return $queryBuilder
128
            ->orderBy('article.id', 'DESC')
129
            ->setMaxResults(1)
130
            ->getQuery()
131
            ->getOneOrNullResult();
132
    }
133
}
134