Conditions | 3 |
Paths | 3 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
35 | public function __invoke(RequestInterface $request, ResponseInterface $response): ?string |
||
36 | { |
||
37 | $scriptData = ScraperUtil::extractScriptData($response->getBody()->getContents()); |
||
38 | foreach ($scriptData as $key => $scriptValue) { |
||
39 | if (isset($scriptValue[1][1][0][0][3][4][2])) { |
||
40 | return GPlayApps::GOOGLE_PLAY_URL . $scriptValue[1][1][0][0][3][4][2] . |
||
41 | '&' . GPlayApps::REQ_PARAM_LOCALE . '=' . urlencode($this->requestApp->getLocale()) . |
||
42 | '&' . GPlayApps::REQ_PARAM_COUNTRY . '=' . urlencode($this->requestApp->getCountry()); |
||
43 | break; |
||
|
|||
44 | } |
||
45 | } |
||
46 | return null; |
||
47 | } |
||
49 |
The
break
statement is not necessary if it is preceded for example by areturn
statement:If you would like to keep this construct to be consistent with other
case
statements, you can safely mark this issue as a false-positive.