(string $value)
| 354 | } |
| 355 | |
| 356 | private function parseDownloadCount(string $value): int { |
| 357 | $digits = preg_replace('/\D+/', '', $value); |
| 358 | if ($digits === null || $digits === '') { |
| 359 | return 0; |
| 360 | } |
| 361 | |
| 362 | return (int)$digits; |
| 363 | } |
| 364 | |
| 365 | private function getRawData($url, $option) { |
| 366 | $response = $this->httpClient->request($url, 'GET', $this->buildHtmlRequestHeaders($option)); |
no outgoing calls
no test coverage detected