diff options
author | Valentin Popov <info@valentineus.link> | 2020-07-15 14:11:50 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2020-07-15 14:11:50 +0300 |
commit | 63ba3120648cbcde5ebd818f90ad832539b1a9af (patch) | |
tree | b78150ea8e9affe9cc5426eeb1fb4e49b53b55a6 /src | |
parent | ecabedfa1f7a8cbba7a522ca8440b82063d04686 (diff) | |
download | php-epg-service-63ba3120648cbcde5ebd818f90ad832539b1a9af.tar.xz php-epg-service-63ba3120648cbcde5ebd818f90ad832539b1a9af.zip |
Updated method “getUrl()”
Signed-off-by: Valentin Popov <info@valentineus.link>
Diffstat (limited to 'src')
-rw-r--r-- | src/Environments/ServiceEnvironment.php | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/Environments/ServiceEnvironment.php b/src/Environments/ServiceEnvironment.php index ade87c1..004586f 100644 --- a/src/Environments/ServiceEnvironment.php +++ b/src/Environments/ServiceEnvironment.php @@ -28,7 +28,7 @@ class ServiceEnvironment { /** * @var string */ - protected const BASE_URL = 'http://xmldata.epgservice.ru/EPGService/hs/xmldata/%s/%s'; + protected const BASE_URL = 'http://xmldata.epgservice.ru/EPGService/hs/xmldata/%s'; /** * @var string @@ -52,11 +52,9 @@ class ServiceEnvironment { } /** - * @param string $method - * * @return string */ - public function getUrl(string $method = ''): string { - return sprintf(self::BASE_URL, $this->key, $method); + public function getUrl(): string { + return sprintf(self::BASE_URL, $this->key); } } |