Code Duplication    Length = 9-9 lines in 3 locations

src/HelperConfig.php 3 locations

@@ 141-149 (lines=9) @@
138
    /**
139
     *
140
     */
141
    private function loadCountries()
142
    {
143
        $countries = Yaml::parse(file_get_contents(HCSF_BASEDIR.'config/countries.yml'));
144
        if (is_file(PATH_BASEDIR.'config/countries.yml')) {
145
            $countries = array_merge($countries, Yaml::parse(file_get_contents(PATH_BASEDIR.'config/countries.yml')));
146
        }
147
148
        $this->countries = $countries;
149
    }
150
151
    /**
152
     * @param string|false $setting
@@ 167-175 (lines=9) @@
164
    /**
165
     *
166
     */
167
    private function loadSecrets()
168
    {
169
        $secrets = Yaml::parse(file_get_contents(HCSF_BASEDIR.'config/secrets.yml'));
170
        if (is_file(PATH_BASEDIR.'config/secrets.yml')) {
171
            $secrets = array_merge($secrets, Yaml::parse(file_get_contents(PATH_BASEDIR.'config/secrets.yml')));
172
        }
173
174
        $this->secrets = $secrets;
175
    }
176
177
    /**
178
     * @param string|false $setting
@@ 193-201 (lines=9) @@
190
    /**
191
     *
192
     */
193
    private function loadCustomer()
194
    {
195
        $customer = Yaml::parse(file_get_contents(HCSF_BASEDIR.'config/customer.yml'));
196
        if (is_file(PATH_BASEDIR.'/config/customer.yml')) {
197
            $customer = array_merge($customer, Yaml::parse(file_get_contents(PATH_BASEDIR.'config/customer.yml')));
198
        }
199
200
        $this->customer = $customer;
201
    }
202
203
    /**
204
     * @param string|bool $setting