Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/HttpClient/HttpClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ public function getRequestPromise(Request $request): PromiseInterface
}

return $this->client
->sendAsync($request->getPsrRequest(), $request->getOptions())
->sendAsync($request->getPsrRequest(), $options)
->then(function (ResponseInterface $response) use ($request, $cacheKey, $options) {
$parseResult = $request->getParseHandler()($request->getPsrRequest(), $response, $options);
if ($cacheKey !== null && $parseResult !== null) {
Expand Down
4 changes: 2 additions & 2 deletions src/Model/AppInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,9 @@ public function getDeveloperName(): ?string
/**
* Returns a summary of the application.
*
* @return string summary of the application
* @return string|null summary of the application
*/
public function getSummary(): string
public function getSummary(): ?string
{
return $this->summary;
}
Expand Down
4 changes: 2 additions & 2 deletions src/Scraper/AppInfoScraper.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function __invoke(RequestInterface $request, ResponseInterface $response,
$country = $query[GPlayApps::REQ_PARAM_COUNTRY] ?? GPlayApps::DEFAULT_COUNTRY;

$name = $appInfo[0][0];
$description = ScraperUtil::html2text($appInfo[72][0][1]);
$description = ScraperUtil::html2text($appInfo[12][0][0][1] ?? $appInfo[72][0][1]);
$developer = $this->extractDeveloper($appInfo);

$category = $this->extractCategory($appInfo[79][0][0] ?? []);
Expand Down Expand Up @@ -110,7 +110,7 @@ public function __invoke(RequestInterface $request, ResponseInterface $response,
$cover = $this->extractCover($appInfo);
$screenshots = $this->extractScreenshots($appInfo);
$video = $this->extractVideo($appInfo);
$contentRating = $appInfo[111][1] ?? '';
$contentRating = $appInfo[9][0] ?? '';
$released = $this->convertDate($appInfo[10][1][0] ?? null);
$updated = $this->convertDate($appInfo[145][0][1][0] ?? null);
$recentChanges = $this->extractRecentChanges($appInfo);
Expand Down