-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from ker0x/feature/php-8.1
Drop support for PHP < 8.1, convert SCOPE_ constants to enumeration
- Loading branch information
Showing
12 changed files
with
125 additions
and
143 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
build/ | ||
vendor/ | ||
/build/ | ||
/vendor/ | ||
composer.lock | ||
.php_cs | ||
.php_cs.cache | ||
.php-cs-fixer.cache | ||
.phpunit.result.cache | ||
phpunit.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
$finder = (new PhpCsFixer\Finder()) | ||
->in(__DIR__) | ||
; | ||
|
||
return (new PhpCsFixer\Config()) | ||
->setRules([ | ||
'@Symfony' => true, | ||
'@Symfony:risky' => true, | ||
'declare_strict_types' => true, | ||
]) | ||
->setRiskyAllowed(true) | ||
->setFinder($finder) | ||
; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Kerox\OAuth2\Client\Provider; | ||
|
||
enum SpotifyScope: string | ||
{ | ||
// Images | ||
case UGC_IMAGE_UPLOAD = 'ugc-image-upload'; | ||
|
||
// Spotify Connect | ||
case USER_READ_PLAYBACK_STATE = 'user-read-playback-state'; | ||
case USER_MODIFY_PLAYBACK_STATE = 'user-modify-playback-state'; | ||
case USER_READ_CURRENTLY_PLAYING = 'user-read-currently-playing'; | ||
|
||
// Playback | ||
case APP_REMOTE_CONTROL = 'app-remote-control'; | ||
case STREAMING = 'streaming'; | ||
|
||
// Playlist | ||
case PLAYLIST_READ_PRIVATE = 'playlist-read-private'; | ||
case PLAYLIST_READ_COLLABORATIVE = 'playlist-read-collaborative'; | ||
case PLAYLIST_MODIFY_PRIVATE = 'playlist-modify-private'; | ||
case PLAYLIST_MODIFY_PUBLIC = 'playlist-modify-public'; | ||
|
||
// Follow | ||
case USER_FOLLOW_MODIFY = 'user-follow-modify'; | ||
case USER_FOLLOW_READ = 'user-follow-read'; | ||
|
||
// Listening History | ||
case USER_READ_PLAYBACK_POSITION = 'user-read-playback-position'; | ||
case USER_TOP_READ = 'user-top-read'; | ||
case USER_READ_RECENTLY_PLAYED = 'user-read-recently-played'; | ||
|
||
// Library | ||
case USER_LIBRARY_MODIFY = 'user-library-modify'; | ||
case USER_LIBRARY_READ = 'user-library-read'; | ||
|
||
// User | ||
case USER_READ_PRIVATE = 'user-read-private'; | ||
case USER_READ_EMAIL = 'user-read-email'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.