-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implemented UserAgent #30
base: main
Are you sure you want to change the base?
Conversation
There are no tests yet but this is the case in the full core package. Lets ensure we add them when we have a clear overview if all is in here. |
/** @var string[] */ | ||
private array $userAgents = ['firefox', 'chrome', 'internetExplorer', 'opera', 'safari', 'msedge']; | ||
|
||
/** @var string[] */ | ||
private array $linuxProcessor = ['i686', 'x86_64']; | ||
|
||
/** @var string[ */ | ||
private array $macProcessor = ['Intel', 'PPC', 'U; Intel', 'U; PPC']; | ||
|
||
/** @var string[] */ | ||
private array $windowsPlatformTokens = [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/** @var string[] */ | |
private array $userAgents = ['firefox', 'chrome', 'internetExplorer', 'opera', 'safari', 'msedge']; | |
/** @var string[] */ | |
private array $linuxProcessor = ['i686', 'x86_64']; | |
/** @var string[ */ | |
private array $macProcessor = ['Intel', 'PPC', 'U; Intel', 'U; PPC']; | |
/** @var string[] */ | |
private array $windowsPlatformTokens = [ | |
/** @var list<string> */ | |
private array $userAgents = ['firefox', 'chrome', 'internetExplorer', 'opera', 'safari', 'msedge']; | |
/** @var list<string> */ | |
private array $linuxProcessor = ['i686', 'x86_64']; | |
/** @var list<string> */ | |
private array $macProcessor = ['Intel', 'PPC', 'U; Intel', 'U; PPC']; | |
/** @var list<string> */ | |
private array $windowsPlatformTokens = [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This does exactly the same? What is the benefit of defining it as a list here?
Implementation port of useragent extension from Faker main lib to Core