Code Duplication    Length = 8-8 lines in 8 locations

src/Endpoints/Settings.php 8 locations

@@ 19-26 (lines=8) @@
16
     *
17
     * @return $this
18
     */
19
    public function apikeyinfo(): self
20
    {
21
        // Set HTTP params
22
        $this->type     = 'get';
23
        $this->endpoint = '/settings/apikeyinfo' . '?' . $this->getQuery();
24
25
        return $this;
26
    }
27
28
    /**
29
     * Get information, location and contact details about the business
@@ 33-40 (lines=8) @@
30
     *
31
     * @return $this
32
     */
33
    public function business(): self
34
    {
35
        // Set HTTP params
36
        $this->type     = 'get';
37
        $this->endpoint = '/settings/business' . '?' . $this->getQuery();
38
39
        return $this;
40
    }
41
42
    /**
43
     * Retrieve custom fields about customers and participants
@@ 47-54 (lines=8) @@
44
     *
45
     * @return $this
46
     */
47
    public function customercustomfields(): self
48
    {
49
        // Set HTTP params
50
        $this->type     = 'get';
51
        $this->endpoint = '/settings/customercustomfields' . '?' . $this->getQuery();
52
53
        return $this;
54
    }
55
56
    /**
57
     * Retrieve all supported languages
@@ 61-68 (lines=8) @@
58
     *
59
     * @return $this
60
     */
61
    public function languages(): self
62
    {
63
        // Set HTTP params
64
        $this->type     = 'get';
65
        $this->endpoint = '/settings/languages' . '?' . $this->getQuery();
66
67
        return $this;
68
    }
69
70
    /**
71
     * Retrieve all supported people categories
@@ 78-85 (lines=8) @@
75
     *
76
     * @return $this
77
     */
78
    public function peoplecategories(): self
79
    {
80
        // Set HTTP params
81
        $this->type     = 'get';
82
        $this->endpoint = '/settings/peoplecategories' . '?' . $this->getQuery();
83
84
        return $this;
85
    }
86
87
    /**
88
     * Get information about all the products (things that can be booked) offered.
@@ 98-105 (lines=8) @@
95
     *
96
     * @return $this
97
     */
98
    public function products(): self
99
    {
100
        // Set HTTP params
101
        $this->type     = 'get';
102
        $this->endpoint = '/settings/products' . '?' . $this->getQuery();
103
104
        return $this;
105
    }
106
107
    /**
108
     * Retrieve all available resources
@@ 112-119 (lines=8) @@
109
     *
110
     * @return $this
111
     */
112
    public function resources(): self
113
    {
114
        // Set HTTP params
115
        $this->type     = 'get';
116
        $this->endpoint = '/settings/resources' . '?' . $this->getQuery();
117
118
        return $this;
119
    }
120
121
    /**
122
     * Retrieve all taxes used by this business
@@ 126-133 (lines=8) @@
123
     *
124
     * @return $this
125
     */
126
    public function taxes(): self
127
    {
128
        // Set HTTP params
129
        $this->type     = 'get';
130
        $this->endpoint = '/settings/taxes' . '?' . $this->getQuery();
131
132
        return $this;
133
    }
134
135
}
136