private function getFallbackCountry() {

		if ( empty( $this->opts['fallback_country'] ) ) {
			$this->opts['fallback_country'] = 'US';
		}
		$record = (object) [
			'continent'   => new \StdClass(),
			'country'     => new \StdClass(),
			'state'       => new \StdClass(),
			'city'        => new \StdClass(),
			'geolocation' => new \StdClass(),
		];
		// debug page return empty
		if ( isset( $_GET['page'] ) && 'geot-debug-data' == $_GET['page'] ) {
			return new GeotRecord( $record );
		}

		$record->country = $this->getCountryByIsoCode( $this->opts['fallback_country'] );

		$this->user_data[ $this->cache_key ] = new GeotRecord( $record );

		return $this->user_data[ $this->cache_key ];

	}
private function getFallbackCountry() {

		if ( empty( $this->opts['fallback_country'] ) ) {
			$this->opts['fallback_country'] = 'US';
		}
		$record = (object) [
			'continent'   => new \StdClass(),
			'country'     => new \StdClass(),
			'state'       => new \StdClass(),
			'city'        => new \StdClass(),
			'geolocation' => new \StdClass(),
		];
		// debug page return empty
		if ( isset( $_GET['page'] ) && 'geot-debug-data' == $_GET['page'] ) {
			return new GeotRecord( $record );
		}

		$record->country = $this->getCountryByIsoCode( $this->opts['fallback_country'] );

		$this->user_data[ $this->cache_key ] = new GeotRecord( $record );

		return $this->user_data[ $this->cache_key ];

	}
private function getFallbackCountry ( ) { if ( empty ( $ this -> opts [ 'fallback_country' ] ) ) { $ this -> opts [ 'fallback_country' ] = 'US' ; } $ record = ( object ) [ 'continent' => new \ StdClass ( ) , 'country' => new \ StdClass ( ) , 'state' => new \ StdClass ( ) , 'city' => new \ StdClass ( ) , 'geolocation' => new \ StdClass ( ) , ] ; // debug page return empty if ( isset ( $ _GET [ 'page' ] ) && 'geot-debug-data' == $ _GET [ 'page' ] ) { return new GeotRecord ( $ record ) ; } $ record -> country = $ this -> getCountryByIsoCode ( $ this -> opts [ 'fallback_country' ] ) ; $ this -> user_data [ $ this -> cache_key ] = new GeotRecord ( $ record ) ; return $ this -> user_data [ $ this -> cache_key ] ; }
If we have an exception, return
@return array|bool
If we have an exception return