(string $value)
| 341 | } |
| 342 | |
| 343 | private function parseDownloadCount(string $value): int { |
| 344 | $digits = preg_replace('/\D+/', '', $value); |
| 345 | if ($digits === null || $digits === '') { |
| 346 | return 0; |
| 347 | } |
| 348 | |
| 349 | return (int)$digits; |
| 350 | } |
| 351 | |
| 352 | private function getRawData($url, $option) { |
| 353 | $response = $this->httpClient->request($url, 'GET', $this->buildHtmlRequestHeaders($option)); |
no outgoing calls
no test coverage detected