@@ 185-192 (lines=8) @@ | ||
182 | return $data; |
|
183 | } |
|
184 | ||
185 | protected static function getBackendUrl($url, $db, $reportType) |
|
186 | { |
|
187 | $domain = static::getDomainFromUrl($url); |
|
188 | $database = static::getValidDatabase($db); |
|
189 | ||
190 | $backendUrl = Config\Services::SEMRUSH_BE_URL; |
|
191 | return sprintf($backendUrl, $database, $reportType, $domain); |
|
192 | } |
|
193 | ||
194 | protected static function getWidgetUrl($url, $db, $reportType) |
|
195 | { |
|
@@ 194-201 (lines=8) @@ | ||
191 | return sprintf($backendUrl, $database, $reportType, $domain); |
|
192 | } |
|
193 | ||
194 | protected static function getWidgetUrl($url, $db, $reportType) |
|
195 | { |
|
196 | $domain = static::getDomainFromUrl($url); |
|
197 | $database = static::getValidDatabase($db); |
|
198 | ||
199 | $widgetUrl = Config\Services::SEMRUSH_WIDGET_URL; |
|
200 | return sprintf($widgetUrl, $reportType, $database, $domain); |
|
201 | } |
|
202 | ||
203 | protected static function getWidgetData($url, $db, $reportType, $valueKey) |
|
204 | { |