From bd8f00dd45ef13037bd268975373c0c8bba6b5db Mon Sep 17 00:00:00 2001
From: Demian Katz <demian.katz@villanova.edu>
Date: Wed, 18 Oct 2017 08:20:57 -0400
Subject: [PATCH] Style fixes.

---
 module/VuFind/src/VuFind/ILS/Driver/ClaviusSQL.php          | 2 +-
 module/VuFind/src/VuFind/ILS/Driver/PAIA.php                | 2 +-
 module/VuFind/src/VuFind/Search/Base/Params.php             | 2 +-
 module/VuFind/src/VuFind/Search/EDS/Options.php             | 2 +-
 module/VuFindApi/src/VuFindApi/Formatter/FacetFormatter.php | 2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/module/VuFind/src/VuFind/ILS/Driver/ClaviusSQL.php b/module/VuFind/src/VuFind/ILS/Driver/ClaviusSQL.php
index e0918ccba49..54764feb05e 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 0e023756b60..048411db31f 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 b2bf8fbd7a3..58c4b271f04 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 7fe292e463b..6f18eff171d 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 4657863090f..ba2bf79d6b2 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) == '"') {
-- 
GitLab