Merge pull request #4163 from dokuwiki/bot/autofix

🤖 Automatic code style fixes
This commit is contained in:
Andreas Gohr 2024-01-26 15:34:45 +01:00 committed by GitHub
commit 94fd57408c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 5 deletions

View File

@ -10,6 +10,7 @@
* @global Input $INPUT
*/
use dokuwiki\Feed\FeedCreatorOptions;
use dokuwiki\Cache\Cache;
use dokuwiki\ChangeLog\MediaChangeLog;
use dokuwiki\ChangeLog\PageChangeLog;
@ -29,7 +30,7 @@ if (!actionOK('rss')) {
exit;
}
$options = new \dokuwiki\Feed\FeedCreatorOptions();
$options = new FeedCreatorOptions();
// the feed is dynamic - we need a cache for each combo
// (but most people just use the default feed so it's still effective)

View File

@ -115,6 +115,7 @@ class FeedCreator
$ns = ':' . cleanID($this->options->get('namespace'));
$ns = utf8_encodeFN(str_replace(':', '/', $ns));
$data = [];
$search_opts = [
'depth' => 1,

View File

@ -130,10 +130,7 @@ class FeedCreatorOptions
*/
public function get($option, $default = null)
{
if (isset($this->options[$option])) {
return $this->options[$option];
}
return $default;
return $this->options[$option] ?? $default;
}
/**