@@ -67,13 +67,11 @@ |
||
| 67 | 67 | $developer = $this->extractDeveloper($scriptDataInfo); |
| 68 | 68 | if (isset($scriptDataInfo[0][12][13][0][0])) { |
| 69 | 69 | $category = $this->extractCategory($scriptDataInfo[0][12][13][0]); |
| 70 | - } |
|
| 71 | - elseif (!empty($data[0][12][13][25])){ |
|
| 70 | + } elseif (!empty($data[0][12][13][25])){ |
|
| 72 | 71 | $genreId = (string) $data[0][12][13][25]; |
| 73 | 72 | $genreName = ucwords(strtolower(str_replace(['_', 'AND'],[' ', '&'], $genreId))); |
| 74 | 73 | $category = new Category($genreId, $genreName); |
| 75 | - } |
|
| 76 | - else{ |
|
| 74 | + } else{ |
|
| 77 | 75 | throw new GooglePlayException('No data to create object '.Category::class); |
| 78 | 76 | } |
| 79 | 77 | $summary = $this->extractSummary($scriptDataInfo); |