Skip to content

Commit

Permalink
subGenre Fixed uppper class words
Browse files Browse the repository at this point in the history
  • Loading branch information
“duck7000” committed Aug 30, 2024
1 parent 852cdbc commit 56dc9e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Imdb/Title.php
Original file line number Diff line number Diff line change
Expand Up @@ -487,12 +487,12 @@ public function genre()
$subGenres = array();
if (isset($edge->subGenres) && !empty($edge->subGenres)) {
foreach ($edge->subGenres as $subGenre) {
$subGenres[] = $subGenre->keyword->text->text;
$subGenres[] = ucwords($subGenre->keyword->text->text);
}
}
$this->genres[] = array(
'mainGenre' => $edge->genre->text,
'subGenre' => ucwords($subGenres)
'subGenre' => $subGenres
);
}
}
Expand Down

0 comments on commit 56dc9e6

Please sign in to comment.