Skip to content
This repository has been archived by the owner on Apr 22, 2022. It is now read-only.

Commit

Permalink
Fix assets variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas committed Nov 8, 2019
1 parent 2ade586 commit 0882193
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Api/Players.php
Original file line number Diff line number Diff line change
Expand Up @@ -217,11 +217,11 @@ protected function cast(array $data)
$player->forceAutoplay = $data['forceAutoplay'];
$player->hideTitle = $data['hideTitle'];
$player->forceLoop = $data['forceLoop'];

if (array_key_exists('assets', $data)) {
$player->logo = $data['assets'];
$player->assets = $data['assets'];
}


return $player;
}
}
2 changes: 1 addition & 1 deletion src/Model/Player.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,5 @@ final class Player
public $forceLoop;

/** @var array */
public $logo = array();
public $assets = array();
}

0 comments on commit 0882193

Please sign in to comment.