| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 62 | 31 | private static function extractDeveloper(array $data): Developer |
|
| 63 | { |
||
| 64 | 31 | $developerName = $data[4][0][0][0]; |
|
| 65 | 31 | $developerPage = GPlayApps::GOOGLE_PLAY_URL . $data[4][0][0][1][4][2]; |
|
| 66 | 31 | $developerId = parse_query(parse_url($developerPage, \PHP_URL_QUERY))[GPlayApps::REQ_PARAM_ID]; |
|
| 67 | |||
| 68 | 31 | return new Developer( |
|
| 69 | 31 | Developer::newBuilder() |
|
| 70 | 31 | ->setId($developerId) |
|
| 71 | 31 | ->setUrl($developerPage) |
|
| 72 | 31 | ->setName($developerName) |
|
| 73 | ); |
||
| 88 |