Code Duplication    Length = 9-9 lines in 3 locations

code/reports/SalesReport.php 3 locations

@@ 33-41 (lines=9) @@
30
    {
31
        self::$full_export_select_statement = $v;
32
    }
33
    public static function get_full_export_select_statement()
34
    {
35
        $bt = defined('DB::USE_ANSI_SQL') ? "\"" : "`";
36
        if ($bt == '"') {
37
            return str_replace('`', '"', self::$full_export_select_statement);
38
        } else {
39
            return self::$full_export_select_statement;
40
        }
41
    }
42
43
    protected static $full_export_join_statement = '
44
			INNER JOIN `Order` ON `Order`.`ID` = `OrderAttribute`.`OrderID`
@@ 57-65 (lines=9) @@
54
    {
55
        self::$full_export_join_statement = $v;
56
    }
57
    public static function get_full_export_join_statement()
58
    {
59
        $bt = defined('DB::USE_ANSI_SQL') ? "\"" : "`";
60
        if ($bt == '"') {
61
            return str_replace('`', '"', self::$full_export_join_statement);
62
        } else {
63
            return self::$full_export_join_statement;
64
        }
65
    }
66
67
    protected static $full_export_file_name = "SalesExport";
68
    public static function set_full_export_file_name($v)
@@ 72-80 (lines=9) @@
69
    {
70
        self::$full_export_file_name = $v;
71
    }
72
    public static function get_full_export_file_name()
73
    {
74
        $bt = defined('DB::USE_ANSI_SQL') ? "\"" : "`";
75
        if ($bt == '"') {
76
            return str_replace('`', '"', self::$full_export_file_name);
77
        } else {
78
            return self::$full_export_file_name;
79
        }
80
    }
81
82
    protected $title = 'All Orders';
83