Code Duplication    Length = 11-11 lines in 2 locations

codeception/_support/Page/Front/ProductDetailPage.php 1 location

@@ 40-50 (lines=11) @@
37
        return $page->goPage('products/detail/'.$id);
38
    }
39
40
    public function カテゴリ選択($categories)
41
    {
42
        $xpath = "//*[@class='ec-layoutRole__header']/";
43
        foreach ($categories as $i=>$category) {
44
            $xpath .= "/ul/li/a[contains(text(), '$category')]/parent::node()";
45
            $this->tester->waitForElement(['xpath' => $xpath]);
46
            $this->tester->moveMouseOver(['xpath' => $xpath]);
47
        }
48
        $this->tester->click(['xpath' => $xpath]);
49
        return $this;
50
    }
51
52
    public function サムネイル切替($num)
53
    {

codeception/_support/Page/Front/TopPage.php 1 location

@@ 56-66 (lines=11) @@
53
        $this->tester->click(['css' => "div.ec-news .ec-newsline:nth-child($rowNum) .ec-newsline__description a"]);
54
    }
55
56
    public function カテゴリ選択($categories)
57
    {
58
        $xpath = "//*[@class='ec-layoutRole__header']/";
59
        foreach ($categories as $i=>$category) {
60
            $xpath .= "/ul/li/a[contains(text(), '$category')]/parent::node()";
61
            $this->tester->waitForElement(['xpath' => $xpath]);
62
            $this->tester->moveMouseOver(['xpath' => $xpath]);
63
        }
64
        $this->tester->click(['xpath' => $xpath]);
65
        return $this;
66
    }
67
68
    public function 検索()
69
    {