mirror of
https://github.com/RobThree/TwoFactorAuth.git
synced 2026-08-18 04:11:55 +00:00
split constructor in multilines
This commit is contained in:
@@ -22,8 +22,12 @@ class BaconQrCodeProvider implements IQRCodeProvider
|
||||
/**
|
||||
* Ensure we using the latest Bacon QR Code and specify default options
|
||||
*/
|
||||
public function __construct(private int $borderWidth = 4, private string|array $backgroundColour = '#ffffff', private string|array $foregroundColour = '#000000', private string $format = 'png')
|
||||
{
|
||||
public function __construct(
|
||||
private int $borderWidth = 4,
|
||||
private string|array $backgroundColour = '#ffffff',
|
||||
private string|array $foregroundColour = '#000000',
|
||||
private string $format = 'png',
|
||||
) {
|
||||
if (!class_exists(ImagickImageBackEnd::class)) {
|
||||
throw new RuntimeException('Make sure you are using version 2 of Bacon QR Code');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user