-
Notifications
You must be signed in to change notification settings - Fork 74
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 #229 from Tustin/php-81
Enforce PHP 8.1
- Loading branch information
Showing
61 changed files
with
198 additions
and
468 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
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,39 +1,37 @@ | ||
<?php | ||
namespace Tustin\PlayStation\Enum; | ||
|
||
use MyCLabs\Enum\Enum; | ||
|
||
class LanguageType extends Enum | ||
enum LanguageType: string | ||
{ | ||
private const english = 'en'; | ||
private const czech = 'cs'; | ||
private const danish = 'da'; | ||
private const german = 'de'; | ||
private const english_uk = 'en-GB'; | ||
private const english_us = 'en-US'; | ||
private const spanish = 'es'; //Spain | ||
private const latin_america = 'es-MX'; | ||
private const french = 'fr'; | ||
private const french_canada = 'fr-CA'; // Canada (Quebec) | ||
private const indonesian = 'id'; | ||
private const italian = 'it'; | ||
private const hungarian = 'hu'; | ||
private const dutch = 'nl'; | ||
private const norwegian = 'no'; | ||
private const polish = 'pl'; | ||
private const portuguese_brazil = 'pt-BR'; | ||
private const portuguese_portugal = 'pt'; | ||
private const russian = 'ru'; | ||
private const romanian = 'ro'; | ||
private const finnish = 'fi'; | ||
private const swedish = 'sv'; | ||
private const vietnamese = 'vi'; | ||
private const turkish = 'tr'; | ||
private const arabic = 'ar'; | ||
private const greek = 'el'; | ||
private const japanese = 'ja'; | ||
private const korean = 'ko'; | ||
private const thai = 'th'; | ||
private const chinese_simplified = 'zh-CN'; | ||
private const chinese_taiwan = 'zh-TW'; | ||
case English = 'en'; | ||
case Czech = 'cs'; | ||
case Danish = 'da'; | ||
case German = 'de'; | ||
case EnglishUK = 'en-GB'; | ||
case EnglishUS = 'en-US'; | ||
case Spanish = 'es'; //Spain | ||
case LatinAmerica = 'es-MX'; | ||
case French = 'fr'; | ||
case FrenchCanada = 'fr-CA'; // Canada (Quebec) | ||
case Indonesian = 'id'; | ||
case Italian = 'it'; | ||
case Hungarian = 'hu'; | ||
case Dutch = 'nl'; | ||
case Norwegian = 'no'; | ||
case Polish = 'pl'; | ||
case PortugueseBrazil = 'pt-BR'; | ||
case PortuguesePortugal = 'pt'; | ||
case Russian = 'ru'; | ||
case Romanian = 'ro'; | ||
case Finnish = 'fi'; | ||
case Swedish = 'sv'; | ||
case Vietnamese = 'vi'; | ||
case Turkish = 'tr'; | ||
case Arabic = 'ar'; | ||
case Greek = 'el'; | ||
case Japanese = 'ja'; | ||
case Korean = 'ko'; | ||
case Thai = 'th'; | ||
case ChineseSimplified = 'zh-CN'; | ||
case ChineseTaiwan = 'zh-TW'; | ||
} |
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 |
---|---|---|
@@ -1,12 +1,10 @@ | ||
<?php | ||
namespace Tustin\PlayStation\Enum; | ||
|
||
use MyCLabs\Enum\Enum; | ||
|
||
class TrophyType extends Enum | ||
enum TrophyType: string | ||
{ | ||
private const platinum = 'platinum'; | ||
private const bronze = 'bronze'; | ||
private const silver = 'silver'; | ||
private const gold = 'gold'; | ||
case Platinum = 'platinum'; | ||
case Bronze = 'bronze'; | ||
case Silver = 'silver'; | ||
case Gold = 'gold'; | ||
} |
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
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
Oops, something went wrong.