Code Duplication    Length = 7-7 lines in 2 locations

src/Model/Product/LocalizedSearchKeywords.php 1 location

@@ 27-33 (lines=7) @@
24
     * @param $locale
25
     * @return SearchKeywords
26
     */
27
    public function __get($locale)
28
    {
29
        $context = new Context();
30
        $context->setGraceful($this->getContext()->isGraceful())
31
            ->setLanguages([$locale]);
32
        return $this->get($context);
33
    }
34
35
    /**
36
     * @param Context $context

src/Model/Product/LocalizedSuggestionCollection.php 1 location

@@ 28-34 (lines=7) @@
25
     * @param $locale
26
     * @return SuggestionCollection
27
     */
28
    public function __get($locale)
29
    {
30
        $context = new Context();
31
        $context->setGraceful($this->getContext()->isGraceful())
32
            ->setLanguages([$locale]);
33
        return $this->get($context);
34
    }
35
36
    /**
37
     * @param Context $context