Skip to content

Commit

Permalink
Fix cs
Browse files Browse the repository at this point in the history
  • Loading branch information
jimsafley committed Feb 6, 2024
1 parent 120a656 commit e7631a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/src/View/Helper/AbstractLayout.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,9 @@ public function getBlockInlineStyles(SitePageBlockRepresentation $block)
$view = $this->getView();

// Validate a CSS <hex-color>.
$isValidHexColor = fn($hexColor) => preg_match('/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/', $hexColor);
$isValidHexColor = fn ($hexColor) => preg_match('/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/', $hexColor);
// Validate a CSS <length>
$isValidLength = fn($length) => preg_match(sprintf('/%s/', LengthCssDataType::PATTERN), $length);
$isValidLength = fn ($length) => preg_match(sprintf('/%s/', LengthCssDataType::PATTERN), $length);

// Allow modules to add inline styles for styling the layout.
$eventArgs = $this->eventManager->prepareArgs(['inline_styles' => []]);
Expand Down

0 comments on commit e7631a2

Please sign in to comment.