diff --git a/module/VuDL/src/VuDL/Connection/AbstractBase.php b/module/VuDL/src/VuDL/Connection/AbstractBase.php
index 4ed1d0edbe6b32b8acbd3d3591481b2aa0da698f..6df8e9641c3745f34b39ed440281686c94eb1fd2 100644
--- a/module/VuDL/src/VuDL/Connection/AbstractBase.php
+++ b/module/VuDL/src/VuDL/Connection/AbstractBase.php
@@ -130,7 +130,6 @@ class AbstractBase implements \VuFindHttp\HttpServiceAwareInterface
     {
         // Format details
         // Get config for which details we want
-        $fields = $combinedFields = array(); // Save to combine later
         $detailsList = $this->getDetailsList();
         if (empty($detailsList)) {
             throw new \Exception('Missing [Details] in VuDL.ini');
diff --git a/module/VuFind/src/VuFind/Controller/MyResearchController.php b/module/VuFind/src/VuFind/Controller/MyResearchController.php
index 427e218abcb5eac71c20a0df790c5ca60a8eba1a..92870c04e4b032aedb0bd791f2e1e9913b0b2751 100644
--- a/module/VuFind/src/VuFind/Controller/MyResearchController.php
+++ b/module/VuFind/src/VuFind/Controller/MyResearchController.php
@@ -1279,7 +1279,7 @@ class MyResearchController extends AbstractBase
                     // Reassign oldpwd to password in the request so login works
                     $temp_password = $post->password;
                     $post->password = $post->oldpwd;
-                    $authClass = $this->getAuthManager()->login($request);
+                    $this->getAuthManager()->login($request);
                     $post->password = $temp_password;
                 } catch(AuthException $e) {
                     $this->flashMessenger()->setNamespace('error')
diff --git a/module/VuFind/src/VuFind/Search/Primo/Params.php b/module/VuFind/src/VuFind/Search/Primo/Params.php
index eeac45fc4e9ebf2b3af190abddbccb6b93c05b02..4df764392c9936c6e3884f4e4d39ae32148d815a 100644
--- a/module/VuFind/src/VuFind/Search/Primo/Params.php
+++ b/module/VuFind/src/VuFind/Search/Primo/Params.php
@@ -48,8 +48,6 @@ class Params extends \VuFind\Search\Base\Params
     {
         $backendParams = new ParamBag();
 
-        $options = $this->getOptions();
-
         // The "relevance" sort option is a VuFind reserved word; we need to make
         // this null in order to achieve the desired effect with Summon:
         $sort = $this->getSort();
diff --git a/module/VuFindSearch/src/VuFindSearch/Backend/Primo/Connector.php b/module/VuFindSearch/src/VuFindSearch/Backend/Primo/Connector.php
index ab47639ea874905c341f23131370d9b602c4fc5a..01c318ac4ba41253c72c8295521a93bfaa9154a7 100644
--- a/module/VuFindSearch/src/VuFindSearch/Backend/Primo/Connector.php
+++ b/module/VuFindSearch/src/VuFindSearch/Backend/Primo/Connector.php
@@ -233,7 +233,7 @@ class Connector
         $lookfor = "";
 
         if (is_array($terms)) {
-            foreach ($terms as $key => $thisTerm) {
+            foreach ($terms as $thisTerm) {
                 //set the index to search
                 switch ($thisTerm['index']) {
                 case "AllFields":