Code Duplication    Length = 7-7 lines in 3 locations

src/Product.php 3 locations

@@ 92-98 (lines=7) @@
89
        }
90
    }
91
92
    private function getOrderPrice($product)
93
    {
94
        $sql = 'SELECT ps.price from '._DB_PREFIX_.'product_shop as ps WHERE ps.id_product = '.(int) $product;
95
        $result = $this->dbConn->fetchColumn($sql);
96
97
        return $result;
98
    }
99
100
    /**
101
     * @param string $product
@@ 103-109 (lines=7) @@
100
    /**
101
     * @param string $product
102
     */
103
    private function getProductName($product)
104
    {
105
        $sql = 'SELECT pl.name from '._DB_PREFIX_.'product_lang as pl WHERE pl.id_product = '.(int) $product;
106
        $result = $this->dbConn->fetchColumn($sql);
107
108
        return $result;
109
    }
110
111
    private function getProductCat($category)
112
    {
@@ 111-117 (lines=7) @@
108
        return $result;
109
    }
110
111
    private function getProductCat($category)
112
    {
113
        $sql = 'SELECT cl.name from '._DB_PREFIX_.'category_lang as cl WHERE cl.id_category = '.(int) $category;
114
        $result = $this->dbConn->fetchColumn($sql);
115
116
        return $result;
117
    }
118
119
}
120