Code Duplication    Length = 15-15 lines in 2 locations

src/pages/Locator.php 2 locations

@@ 178-192 (lines=15) @@
175
     * Gets the info window template
176
     * @return mixed
177
     */
178
    public function getInfoWindowTemplate()
179
    {
180
        $contents = json_encode(
181
            file_get_contents(
182
                $this->parseModuleResourceReference(
183
                    Config::inst()->get(
184
                        Locator::class,
185
                        'infoWindowTemplate'
186
                    )
187
                )
188
            )
189
        );
190
191
        return str_replace('\n', '', $contents);
192
    }
193
194
    /**
195
     * Gets the template for locations in the list
@@ 198-212 (lines=15) @@
195
     * Gets the template for locations in the list
196
     * @return string
197
     */
198
    public function getListTemplate()
199
    {
200
        $contents = json_encode(
201
            file_get_contents(
202
                $this->parseModuleResourceReference(
203
                    Config::inst()->get(
204
                        Locator::class,
205
                        'listTemplate'
206
                    )
207
                )
208
            )
209
        );
210
211
        return str_replace('\n', '', $contents);
212
    }
213
214
    /**
215
     * From SilverStripe/View/Requirements_Backend