Skip to content

Commit

Permalink
fixing cs
Browse files Browse the repository at this point in the history
  • Loading branch information
2amjsouza committed Dec 11, 2023
1 parent 7cd9b82 commit 33b8b92
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 20 deletions.
16 changes: 4 additions & 12 deletions src/Factory/LaravelQrCodeFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,8 @@ protected static function applyForeground(QrCodeInterface $qrCode, ?array $foreg
* @param string|null $gradientType
* @return void
*/
protected static function applyForeground2(
QrCodeInterface $qrCode,
?array $foreground2,
?string $gradientType
): void
protected static function applyForeground2(QrCodeInterface $qrCode, ?array $foreground2,
?string $gradientType): void
{
if (is_null($foreground2)) {
return;
Expand Down Expand Up @@ -216,13 +213,8 @@ protected static function buildQrCode($content, ?string $format): QrCodeInterfac
return new QrCode($qrCodeFormat->getText());
}

protected static function applyLabel(
QrCodeInterface $qrCode,
?string $label = null,
?string $fontPath = null,
?int $size = null,
?string $alignment = null
): void
protected static function applyLabel(QrCodeInterface $qrCode, ?string $label = null,
?string $fontPath = null, ?int $size = null, ?string $alignment = null ): void
{
if (! is_null($label)) {
$qrCode->setLabel(new Label(
Expand Down
19 changes: 12 additions & 7 deletions src/StyleManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,13 @@ class StyleManager implements PathStyleInterface, ColorsInterface
* @param string|null $gradientType
* @throws Exception
*/
public function __construct($foregroundColor, $backgroundColor, string $pathStyle = null, float $styleIntensity = null, $gradientType = null)
{
public function __construct(
$foregroundColor,
$backgroundColor,
string $pathStyle = null,
float $styleIntensity = null,
$gradientType = null
) {
$this->setForegroundColor($foregroundColor);
$this->setBackgroundColor($backgroundColor);

Expand Down Expand Up @@ -238,12 +243,12 @@ public function buildFillColor()
$this->getGradientTye(),
)
);
} else {
return Fill::uniformColor(
$this->getBackgroundColor(),
$this->getForegroundColor()
);
}

return Fill::uniformColor(
$this->getBackgroundColor(),
$this->getForegroundColor()
);
}

/**
Expand Down
1 change: 0 additions & 1 deletion src/Writer/EpsWriter.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ public function __construct()
public function writeString(QrCodeInterface $qrCode): string
{
$renderer = $this->buildRenderer($qrCode);
;

$writer = new Writer($renderer);

Expand Down

0 comments on commit 33b8b92

Please sign in to comment.