From 1a2cc53d9442a764bc6c3b4be803498f99195eeb Mon Sep 17 00:00:00 2001 From: Demian Katz <demian.katz@villanova.edu> Date: Fri, 20 Feb 2015 12:34:33 -0500 Subject: [PATCH] php-cs-fixer --- .../src/VuFind/Feed/Writer/Extension/OpenSearch/Feed.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 c80163d4c27..ab197d54179 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; -- GitLab