From 0bd96c1c2d11b4b781dad5b5b98af3add4bd9369 Mon Sep 17 00:00:00 2001 From: lsces Date: Sun, 19 Apr 2026 19:05:19 +0100 Subject: PHP8.4 style tweaks --- includes/classes/FeedCreator.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/includes/classes/FeedCreator.php b/includes/classes/FeedCreator.php index 304635a..2c071b5 100755 --- a/includes/classes/FeedCreator.php +++ b/includes/classes/FeedCreator.php @@ -276,7 +276,7 @@ class FeedCreator extends HtmlDescribable { */ public function _createAdditionalElements($elements, $indentString="") { $ae = ""; - if (is_array( $elements )) { + if (\is_array( $elements )) { foreach ( $elements as $key => $value ) { $ae .= $indentString . "<$key>$value\n"; } @@ -415,14 +415,14 @@ class FeedCreator extends HtmlDescribable { public function addNamespace($ns,$uri) { - $array = array_combine(array($ns),array($uri)); + $array = array_combine( [ $ns ], [ $uri ] ); $this->namespace = array_merge($array,$this->namespace); } public function _createNamespace() { $ns = ""; - if (is_array($this->namespace)) { + if (\is_array($this->namespace)) { foreach($this->namespace AS $key => $value) { $ns.= " xmlns:$key=\"$value\""; } @@ -637,12 +637,12 @@ class RSSCreator091 extends FeedCreator { if ($this->skipDays != "") { $feed .= " " . htmlspecialchars( $this->skipDays ) . "\n"; } - if (isset( $this->media ) && is_array( $this->media )) { + if (isset( $this->media ) && \is_array( $this->media )) { if (isset( $this->media['thumbnail'] )) { $feed .= " \n"; } } - if (isset( $this->itunes ) && is_array( $this->itunes )) { + if (isset( $this->itunes ) && \is_array( $this->itunes )) { if (isset( $this->itunes['thumbnail'] )) { $feed .= " \n"; } -- cgit v1.3