Code Duplication    Length = 10-10 lines in 2 locations

Services/PaywallService.php 2 locations

@@ 382-391 (lines=10) @@
379
     *
380
     * @return array
381
     */
382
    public function getIssuesByLanguageAndId($language, $subscription_id)
383
    {
384
        $issues = $this->em->getRepository('Newscoop\PaywallBundle\Entity\Issue')
385
            ->findBy(array(
386
                'language' => $language,
387
                'subscription' => $subscription_id,
388
        ));
389
390
        return $issues;
391
    }
392
393
    /**
394
     * Gets all available Issues by given language Id.
@@ 418-427 (lines=10) @@
415
     *
416
     * @return array
417
     */
418
    public function getArticlesByLanguageAndId($language, $subscription_id)
419
    {
420
        $articles = $this->em->getRepository('Newscoop\PaywallBundle\Entity\Article')
421
            ->findBy(array(
422
                'language' => $language,
423
                'subscription' => $subscription_id,
424
        ));
425
426
        return $articles;
427
    }
428
429
    /**
430
     * Gets all available Articles by given language Id.