From 70023a41b37eac94e19b2587ed3129ab838bdeb5 Mon Sep 17 00:00:00 2001 From: LMS235 <8693550+LMS235@users.noreply.github.com> Date: Tue, 8 Sep 2026 00:34:00 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=96=20Automatic=20code=20style=20fixes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- helper.php | 2 +- syntax/table.php | 3 ++- syntax/value.php | 9 +++------ 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/helper.php b/helper.php index 6818802..e91cc1b 100644 --- a/helper.php +++ b/helper.php @@ -139,7 +139,7 @@ public static function loadContent($file) $content = io_readFile($file); } // if not valid UTF-8 is given we assume ISO-8859-1 - if (!Clean::isUtf8($content)) $content = utf8_encode($content); + if (!Clean::isUtf8($content)) return utf8_encode($content); return $content; } diff --git a/syntax/table.php b/syntax/table.php index 136912c..ff6b24f 100644 --- a/syntax/table.php +++ b/syntax/table.php @@ -1,5 +1,6 @@ diff --git a/syntax/value.php b/syntax/value.php index b5fb7c7..1b24997 100644 --- a/syntax/value.php +++ b/syntax/value.php @@ -1,5 +1,6 @@ $opt = helper_plugin_csv::parseOptions($optstr); @@ -70,11 +71,7 @@ public function getCachedValue($opt) $this->rowcache[$cache] = helper_plugin_csv::prepareData($content, $opt); } - if (isset($this->rowcache[$cache][$r][$c])) { - return $this->rowcache[$cache][$r][$c]; - } else { - return 'Failed to find requested value'; - } + return $this->rowcache[$cache][$r][$c] ?? 'Failed to find requested value'; } /** @inheritdoc */