From a9654f00c8fbc9934289d761843ddd071025013f Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Fri, 28 Aug 2026 17:20:28 +0000
Subject: [PATCH] =PHPStorm Code Inspection: fixed class reference errors (from getting rid of JVB() and replacing with direct class::getInstance; as well as general code sniffing, etc
---
inc/blocks/CustomBlocks.php | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/inc/blocks/CustomBlocks.php b/inc/blocks/CustomBlocks.php
index 20085fe..123b707 100644
--- a/inc/blocks/CustomBlocks.php
+++ b/inc/blocks/CustomBlocks.php
@@ -168,8 +168,7 @@
}
public function prerender(?string $content, array $block, ?WP_Block $parent = null):?string
{
- $result = $this->checkMethods($content, $block, $parent, true);
- return $result;
+ return $this->checkMethods($content, $block, $parent, true);
}
public function render(string $content, array $block):string
@@ -554,7 +553,7 @@
}
if (array_key_exists('focalPoint', $attrs)) {
$attrs['isObjectPosition'] = true;
- $style = $this->getFocalPointStyle($attrs['focalPoint'], $attrs);
+ $style = implode(';',$this->getFocalPointStyle($attrs['focalPoint'], $attrs));
$style .= ';object-fit:none;';
$imgLink = str_replace('<img', sprintf(
'<img style="%s"',
--
Gitblit v1.10.0