Skip to content
This repository was archived by the owner on Mar 23, 2024. It is now read-only.

Commit d070e2a

Browse files
committed
🚿
1 parent 0a0858d commit d070e2a

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

examples/Providers/Spotify/mixesdb-scrape.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
require_once __DIR__.'/spotify-common.php';
2828

2929
$logger = $factory->getLogger();
30-
$requestFactory ??= $factory->getRequestFactory();
30+
$requestFactory = $factory->getRequestFactory();
3131

3232
$file ??= __DIR__.'/mixesdb-data.json';
3333
$baseURL = 'https://www.mixesdb.com';

examples/Providers/Spotify/playlist-diff.php

+6-5
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,6 @@
88
* @license MIT
99
*/
1010

11-
/**
12-
* @var \OAuthProviderFactory $factory
13-
* @var \chillerlan\OAuth\Providers\Spotify $spotify
14-
* @var string $ENVVAR
15-
*/
1611
require_once __DIR__.'/spotify-common.php';
1712

1813
class PlaylistDiff extends SpotifyClient{
@@ -35,5 +30,11 @@ public function diff(string $playlistID1, string $playlistID2, bool $createAsPla
3530

3631
};
3732

33+
/**
34+
* @var \OAuthProviderFactory $factory
35+
* @var \chillerlan\OAuth\Providers\Spotify $spotify
36+
* @var string $ENVVAR
37+
*/
38+
3839
$spotify = $factory->getProvider(PlaylistDiff::class, $ENVVAR);
3940
$spotify->diff('37i9dQZF1DX4UtSsGT1Sbe', '37i9dQZF1DXb57FjYWz00c', true);

0 commit comments

Comments
 (0)