mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-04-24 03:59:08 -05:00
refactor: rename property to match type
This commit is contained in:
@@ -25,16 +25,16 @@ class AlbumController extends Controller
|
||||
/**
|
||||
* @var OmdbClient
|
||||
*/
|
||||
private $client;
|
||||
private $omdbClient;
|
||||
|
||||
/**
|
||||
* AlbumController Constructor.
|
||||
*
|
||||
* @param OmdbClient $client
|
||||
*/
|
||||
public function __construct(OmdbClient $client)
|
||||
public function __construct(OmdbClient $omdbClient)
|
||||
{
|
||||
$this->client = $client;
|
||||
$this->omdbClient = $omdbClient;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -69,7 +69,7 @@ class AlbumController extends Controller
|
||||
public function store(Request $request)
|
||||
{
|
||||
$imdb = Str::startsWith($request->input('imdb'), 'tt') ? $request->input('imdb') : 'tt'.$request->input('imdb');
|
||||
$omdb = $this->client->find(['imdb' => $imdb]);
|
||||
$omdb = $this->omdbClient->find(['imdb' => $imdb]);
|
||||
|
||||
if ($omdb === null || ! $omdb) {
|
||||
return redirect()->route('albums.create')
|
||||
|
||||
Reference in New Issue
Block a user