| Conditions | 3 |
| Paths | 3 |
| Total Lines | 17 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | public function fetchAppDetails($previewUrl) |
||
| 13 | { |
||
| 14 | $details = $this->mobileAppStore($previewUrl); |
||
| 15 | |||
| 16 | switch ($details['platform']) { |
||
| 17 | case self::PLATFORM_IOS: |
||
| 18 | $appDetails = new AppStoreInfo($details); |
||
| 19 | break; |
||
| 20 | case self::PLATFORM_ANDROID: |
||
| 21 | $appDetails = new PlayStoreInfo($details); |
||
| 22 | break; |
||
| 23 | default: |
||
| 24 | throw new \Exception(); |
||
| 25 | } |
||
| 26 | |||
| 27 | return $appDetails; |
||
| 28 | } |
||
| 29 | |||
| 55 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.