Code Duplication    Length = 10-10 lines in 2 locations

core/helpers/EEH_URL.helper.php 1 location

@@ 237-246 (lines=10) @@
234
     *
235
     * @return string
236
     */
237
    public static function current_url()
238
    {
239
        $url = '';
240
        if (isset($_SERVER['HTTP_HOST'], $_SERVER['REQUEST_URI'])) {
241
            $url = is_ssl() ? 'https://' : 'http://';
242
            $url .= \EEH_URL::filter_input_server_url('HTTP_HOST');
243
            $url .= \EEH_URL::filter_input_server_url('REQUEST_URI');
244
        }
245
        return $url;
246
    }
247
248
249
    /**

payment_methods/Paypal_Standard/EEG_Paypal_Standard.gateway.php 1 location

@@ 499-508 (lines=10) @@
496
     * _process_response_url
497
     * @return string
498
     */
499
    protected function _process_response_url()
500
    {
501
        if (isset($_SERVER['HTTP_HOST'], $_SERVER['REQUEST_URI'])) {
502
            $url = is_ssl() ? 'https://' : 'http://';
503
            $url .= EEH_URL::filter_input_server_url('HTTP_HOST');
504
            $url .= EEH_URL::filter_input_server_url();
505
        } else {
506
            $url = 'unknown';
507
        }
508
        return $url;
509
    }
510
511