From 1b0074494703a2a83bf38b818b3c93ae376b3225 Mon Sep 17 00:00:00 2001
From: Demian Katz <demian.katz@villanova.edu>
Date: Thu, 2 Jul 2020 14:25:49 -0400
Subject: [PATCH] Resolved unused parameter warnings.

---
 module/VuFind/src/VuFind/ILS/Driver/Folio.php                  | 2 ++
 .../VuFind/src/VuFind/Security/CspHeaderGeneratorFactory.php   | 3 +++
 2 files changed, 5 insertions(+)

diff --git a/module/VuFind/src/VuFind/ILS/Driver/Folio.php b/module/VuFind/src/VuFind/ILS/Driver/Folio.php
index 0cb009b4fec..d8e665dc28f 100644
--- a/module/VuFind/src/VuFind/ILS/Driver/Folio.php
+++ b/module/VuFind/src/VuFind/ILS/Driver/Folio.php
@@ -835,6 +835,8 @@ class Folio extends AbstractAPI implements
      *
      * @return array An array of associative arrays with locationID and
      * locationDisplay keys
+     *
+     * @SuppressWarnings(PHPMD.UnusedFormalParameter)
      */
     public function getPickupLocations($patron)
     {
diff --git a/module/VuFind/src/VuFind/Security/CspHeaderGeneratorFactory.php b/module/VuFind/src/VuFind/Security/CspHeaderGeneratorFactory.php
index b6faf647834..ddfeaf88ab2 100644
--- a/module/VuFind/src/VuFind/Security/CspHeaderGeneratorFactory.php
+++ b/module/VuFind/src/VuFind/Security/CspHeaderGeneratorFactory.php
@@ -62,6 +62,9 @@ class CspHeaderGeneratorFactory implements FactoryInterface
     public function __invoke(ContainerInterface $container, $requestedName,
         array $options = null
     ) {
+        if (!empty($options)) {
+            throw new \Exception('Unexpected options passed to factory.');
+        }
         $config = $container->get(\VuFind\Config\PluginManager::class)
             ->get('contentsecuritypolicy');
         $nonceGenerator = $container->get(NonceGenerator::class);
-- 
GitLab