diff --git a/module/VuFind/src/VuFind/Feed/Writer/Extension/OpenSearch/Feed.php b/module/VuFind/src/VuFind/Feed/Writer/Extension/OpenSearch/Feed.php index c80163d4c2781255de8c9c5fcca3714ad16c825e..ab197d5417975054bef256b4bbec2fad19d1070e 100644 --- a/module/VuFind/src/VuFind/Feed/Writer/Extension/OpenSearch/Feed.php +++ b/module/VuFind/src/VuFind/Feed/Writer/Extension/OpenSearch/Feed.php @@ -236,13 +236,13 @@ class Feed extends ParentFeed . 'a non-empty string and valid URI/IRI' ); } - if (!in_array(strtolower($type), array('rss', 'rdf', 'atom'))) { + if (!in_array(strtolower($type), ['rss', 'rdf', 'atom'])) { throw new Exception\InvalidArgumentException( 'Invalid parameter: "type"; You must declare the type of ' . 'feed the link points to, i.e. RSS, RDF or Atom' ); } - $link = array(); + $link = []; $link['url'] = $url; $link['role'] = $role; $link['type'] = $type;