diff options
| author | lsces <lester@lsces.co.uk> | 2026-04-19 19:05:19 +0100 |
|---|---|---|
| committer | lsces <lester@lsces.co.uk> | 2026-04-19 19:05:19 +0100 |
| commit | 0bd96c1c2d11b4b781dad5b5b98af3add4bd9369 (patch) | |
| tree | ad8383f652a6930d056ef7c467a77332a606c42a | |
| parent | 5d1e23b85fcbcf24236d8d8c5db1180000ea4d7e (diff) | |
| download | rss-5-php84.tar.gz rss-5-php84.tar.bz2 rss-5-php84.zip | |
PHP8.4 style tweaksV5-php84
| -rwxr-xr-x | includes/classes/FeedCreator.php | 10 |
1 files 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</$key>\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 .= " <skipDays>" . htmlspecialchars( $this->skipDays ) . "</skipDays>\n"; } - if (isset( $this->media ) && is_array( $this->media )) { + if (isset( $this->media ) && \is_array( $this->media )) { if (isset( $this->media['thumbnail'] )) { $feed .= " <media:thumbnail url='" . $this->media['thumbnail'] . "'/>\n"; } } - if (isset( $this->itunes ) && is_array( $this->itunes )) { + if (isset( $this->itunes ) && \is_array( $this->itunes )) { if (isset( $this->itunes['thumbnail'] )) { $feed .= " <itunes:image href='" . $this->itunes['thumbnail'] . "'/>\n"; } |
