diff --git a/module/VuFind/src/VuFind/ILS/Driver/ClaviusSQL.php b/module/VuFind/src/VuFind/ILS/Driver/ClaviusSQL.php
index e0918ccba49c8654fd123b8ffff1fe9d24cb7752..54764feb05ee1a032191e27fedb4c64733b9c0ad 100644
--- a/module/VuFind/src/VuFind/ILS/Driver/ClaviusSQL.php
+++ b/module/VuFind/src/VuFind/ILS/Driver/ClaviusSQL.php
@@ -724,7 +724,7 @@ class ClaviusSQL extends AbstractBase
             $char = substr($pin, $i, 1);
             $return = 1 + intval($char) + $return * 12;
         }
-        return 2109876543 -  $return * 7 * (intval($patron) % 89 + 7);
+        return 2109876543 - $return * 7 * (intval($patron) % 89 + 7);
     }
 
     /**
diff --git a/module/VuFind/src/VuFind/ILS/Driver/PAIA.php b/module/VuFind/src/VuFind/ILS/Driver/PAIA.php
index 0e023756b6082cd55fdb7c2f791156710813173f..048411db31fde19c5aa55bf36fb1bf67e5366f4e 100644
--- a/module/VuFind/src/VuFind/ILS/Driver/PAIA.php
+++ b/module/VuFind/src/VuFind/ILS/Driver/PAIA.php
@@ -1735,7 +1735,7 @@ class PAIA extends DAIA
     public function checkRequestIsValid($id, $data, $patron)
     {
         // TODO: make this more configurable
-        if (isset($patron['status']) && $patron['status']  == 0
+        if (isset($patron['status']) && $patron['status'] == 0
             && isset($patron['expires']) && $patron['expires'] > date('Y-m-d')
             && in_array('write_items', $this->getScope())
         ) {
diff --git a/module/VuFind/src/VuFind/Search/Base/Params.php b/module/VuFind/src/VuFind/Search/Base/Params.php
index b2bf8fbd7a3b74c696cd54b3b11f3009e313351c..58c4b271f0423e6816f0e1c4f4c03386bda4cc87 100644
--- a/module/VuFind/src/VuFind/Search/Base/Params.php
+++ b/module/VuFind/src/VuFind/Search/Base/Params.php
@@ -719,7 +719,7 @@ class Params
         $value = count($temp) > 0 ? $temp[0] : '';
 
         // Remove quotes from the value if there are any
-        if (substr($value, 0, 1)  == '"') {
+        if (substr($value, 0, 1) == '"') {
             $value = substr($value, 1);
         }
         if (substr($value, -1, 1) == '"') {
diff --git a/module/VuFind/src/VuFind/Search/EDS/Options.php b/module/VuFind/src/VuFind/Search/EDS/Options.php
index 7fe292e463b181db1e9b2c9d27369dacf47d6e5d..6f18eff171db3b332b51c15e5aaaec1d36663905 100644
--- a/module/VuFind/src/VuFind/Search/EDS/Options.php
+++ b/module/VuFind/src/VuFind/Search/EDS/Options.php
@@ -459,7 +459,7 @@ class Options extends \VuFind\Search\Base\Options
                         'Label' => $mode['Label'], 'Value' => $mode['Mode']
                     ];
                     if (isset($mode['DefaultOn'])
-                        &&  'y' == $mode['DefaultOn']
+                        && 'y' == $mode['DefaultOn']
                     ) {
                         $this->defaultMode = $mode['Mode'];
                     }
diff --git a/module/VuFindApi/src/VuFindApi/Formatter/FacetFormatter.php b/module/VuFindApi/src/VuFindApi/Formatter/FacetFormatter.php
index 4657863090f5179f9f69caf71f73e38ab2fcfbb1..ba2bf79d6b28f483ddb7b937e686abc620c8f759 100644
--- a/module/VuFindApi/src/VuFindApi/Formatter/FacetFormatter.php
+++ b/module/VuFindApi/src/VuFindApi/Formatter/FacetFormatter.php
@@ -53,7 +53,7 @@ class FacetFormatter extends BaseFormatter
             foreach ($request['facetFilter'] as $filter) {
                 list($facetField, $regex) = explode(':', $filter, 2);
                 $regex = trim($regex);
-                if (substr($regex, 0, 1)  == '"') {
+                if (substr($regex, 0, 1) == '"') {
                     $regex = substr($regex, 1);
                 }
                 if (substr($regex, -1, 1) == '"') {