src/FilterSetting/Perimetersearch.php
protected function getCountryInformation()
    {
        // Get the country for the lookup.
        $country = null;

        if (('get' === $this->get('countrymode')) && $this->get('country_get')) {
            $getValue = Input::get($this->get('country_get')) ?: Input::post($this->get('country_get'));
            $getValue = \trim($getValue);
            if (!empty($getValue)) {
                $country = $getValue;
            }
        } elseif ('preset' === $this->get('countrymode')) {
            $country = $this->get('country_preset');
        }

        return $country;
    }
protected function getCountryInformation()
    {
        // Get the country for the lookup.
        $country = null;

        if (('get' === $this->get('countrymode')) && $this->get('country_get')) {
            $getValue = Input::get($this->get('country_get')) ?: Input::post($this->get('country_get'));
            $getValue = \trim($getValue);
            if (!empty($getValue)) {
                $country = $getValue;
            }
        } elseif ('preset' === $this->get('countrymode')) {
            $country = $this->get('country_preset');
        }

        return $country;
    }
protected function getCountryInformation ( ) { // Get the country for the lookup. $ country = null ; if ( ( 'get' === $ this -> get ( 'countrymode' ) ) && $ this -> get ( 'country_get' ) ) { $ getValue = Input :: get ( $ this -> get ( 'country_get' ) ) ? : Input :: post ( $ this -> get ( 'country_get' ) ) ; $ getValue = \ trim ( $ getValue ) ; if ( ! empty ( $ getValue ) ) { $ country = $ getValue ; } } elseif ( 'preset' === $ this -> get ( 'countrymode' ) ) { $ country = $ this -> get ( 'country_preset' ) ; } return $ country ; }
Try to get a valid country information.

@return string|null The country short tag (2-letters) or null.
Try to get a valid country information .