From 32dd57f3e31e67c6fe20be3f8f1ccefc555a4426 Mon Sep 17 00:00:00 2001
From: Demian Katz <demian.katz@villanova.edu>
Date: Tue, 10 Feb 2015 13:42:23 -0500
Subject: [PATCH] php-cs-fixer: parenthesis

---
 module/VuFind/src/VuFind/Auth/LDAP.php                      | 2 +-
 module/VuFind/src/VuFind/ILS/Driver/Aleph.php               | 2 +-
 module/VuFind/src/VuFind/ILS/Driver/Amicus.php              | 2 +-
 module/VuFind/src/VuFind/ILS/Driver/HorizonXMLAPI.php       | 2 +-
 module/VuFind/src/VuFind/ILS/Driver/LBS4.php                | 2 +-
 module/VuFind/src/VuFind/ILS/Driver/Polaris.php             | 2 +-
 module/VuFind/src/VuFind/ILS/Driver/Symphony.php            | 2 +-
 module/VuFind/src/VuFind/ILS/Driver/Unicorn.php             | 2 +-
 module/VuFind/src/VuFind/ILS/Driver/VoyagerRestful.php      | 6 +++---
 .../src/VuFindTest/Recommend/WorldCatTermsTest.php          | 2 +-
 .../src/VuFindConsole/Controller/HarvestController.php      | 2 +-
 .../VuFindSearch/src/VuFindSearch/Backend/EIT/Backend.php   | 2 +-
 12 files changed, 14 insertions(+), 14 deletions(-)

diff --git a/module/VuFind/src/VuFind/Auth/LDAP.php b/module/VuFind/src/VuFind/Auth/LDAP.php
index 699402a6a06..451cf553685 100644
--- a/module/VuFind/src/VuFind/Auth/LDAP.php
+++ b/module/VuFind/src/VuFind/Auth/LDAP.php
@@ -279,7 +279,7 @@ class LDAP extends AbstractBase
                     if ($data[$i][$j] == $configValue && !empty($configValue)) {
                         $value = $data[$i][$configValue][0];
                         $this->debug("found $field = $value");
-                        if ($field != "cat_password" ) {
+                        if ($field != "cat_password") {
                             $user->$field = $value;
                         } else {
                             $catPassword = $value;
diff --git a/module/VuFind/src/VuFind/ILS/Driver/Aleph.php b/module/VuFind/src/VuFind/ILS/Driver/Aleph.php
index d07107c515f..a55a72cc889 100644
--- a/module/VuFind/src/VuFind/ILS/Driver/Aleph.php
+++ b/module/VuFind/src/VuFind/ILS/Driver/Aleph.php
@@ -85,7 +85,7 @@ class AlephTranslator
         $result = array();
         $file_handle = fopen($file, "r, ccs=UTF-8");
         $rgxp = "";
-        while (!feof($file_handle) ) {
+        while (!feof($file_handle)) {
             $line = fgets($file_handle);
             $line = chop($line);
             if (preg_match("/!!/", $line)) {
diff --git a/module/VuFind/src/VuFind/ILS/Driver/Amicus.php b/module/VuFind/src/VuFind/ILS/Driver/Amicus.php
index 968b93163fe..5bbf267770a 100644
--- a/module/VuFind/src/VuFind/ILS/Driver/Amicus.php
+++ b/module/VuFind/src/VuFind/ILS/Driver/Amicus.php
@@ -337,7 +337,7 @@ class Amicus extends AbstractBase implements TranslatorAwareInterface
                 $prestados = $this->sacaStatus($row['CPY_ID_NBR']);
                 $reservados = $this->sacaReservas($row['CPY_ID_NBR']);
                 if (!isset($data[$row['BIB_ITM_NBR']])) {
-                    if ($multiple != 1 ) {
+                    if ($multiple != 1) {
                         $multiple = $this->translate("Multiple Locations");
                         $textoLoc = $this->translate("Multiple");
                         $textoSign = $this->translate("Multiple Locations");
diff --git a/module/VuFind/src/VuFind/ILS/Driver/HorizonXMLAPI.php b/module/VuFind/src/VuFind/ILS/Driver/HorizonXMLAPI.php
index a568765c0f1..b2c4c6880e7 100644
--- a/module/VuFind/src/VuFind/ILS/Driver/HorizonXMLAPI.php
+++ b/module/VuFind/src/VuFind/ILS/Driver/HorizonXMLAPI.php
@@ -84,7 +84,7 @@ class HorizonXMLAPI extends Horizon implements \VuFindHttp\HttpServiceAwareInter
      */
     public function getConfig($function, $params = null)
     {
-        if (isset($this->config[$function]) ) {
+        if (isset($this->config[$function])) {
             $functionConfig = $this->config[$function];
         } else {
             $functionConfig = false;
diff --git a/module/VuFind/src/VuFind/ILS/Driver/LBS4.php b/module/VuFind/src/VuFind/ILS/Driver/LBS4.php
index 3a03c59be99..fe1049afa0d 100644
--- a/module/VuFind/src/VuFind/ILS/Driver/LBS4.php
+++ b/module/VuFind/src/VuFind/ILS/Driver/LBS4.php
@@ -351,7 +351,7 @@ class LBS4 extends AbstractBase implements TranslatorAwareInterface
      */
     protected function getNote($loanind, $locid, $callnumber)
     {
-        if ( $loanind == 0 && $locid=='000') {
+        if ($loanind == 0 && $locid=='000') {
             $note = $this->translate("Textbook Collection");
         } else if ($loanind == 1) {
             $note = $this->translate("Short loan");//Short time loan?
diff --git a/module/VuFind/src/VuFind/ILS/Driver/Polaris.php b/module/VuFind/src/VuFind/ILS/Driver/Polaris.php
index 32bce071e59..11990fc54f1 100644
--- a/module/VuFind/src/VuFind/ILS/Driver/Polaris.php
+++ b/module/VuFind/src/VuFind/ILS/Driver/Polaris.php
@@ -298,7 +298,7 @@ class Polaris extends AbstractBase implements \VuFindHttp\HttpServiceAwareInterf
      */
     public function getConfig($function, $params = null)
     {
-        if (isset($this->config[$function]) ) {
+        if (isset($this->config[$function])) {
             $functionConfig = $this->config[$function];
         } else {
             $functionConfig = false;
diff --git a/module/VuFind/src/VuFind/ILS/Driver/Symphony.php b/module/VuFind/src/VuFind/ILS/Driver/Symphony.php
index 39d8c60937f..ab801d1fb74 100644
--- a/module/VuFind/src/VuFind/ILS/Driver/Symphony.php
+++ b/module/VuFind/src/VuFind/ILS/Driver/Symphony.php
@@ -1448,7 +1448,7 @@ class Symphony extends AbstractBase
      */
     public function getConfig($function, $params = null)
     {
-        if (isset($this->config[$function]) ) {
+        if (isset($this->config[$function])) {
             $functionConfig = $this->config[$function];
         } else {
             $functionConfig = false;
diff --git a/module/VuFind/src/VuFind/ILS/Driver/Unicorn.php b/module/VuFind/src/VuFind/ILS/Driver/Unicorn.php
index e3e65bc00b8..2b713d0212e 100644
--- a/module/VuFind/src/VuFind/ILS/Driver/Unicorn.php
+++ b/module/VuFind/src/VuFind/ILS/Driver/Unicorn.php
@@ -132,7 +132,7 @@ class Unicorn extends AbstractBase implements \VuFindHttp\HttpServiceAwareInterf
      */
     public function getConfig($function, $params = null)
     {
-        if (isset($this->config[$function]) ) {
+        if (isset($this->config[$function])) {
             $functionConfig = $this->config[$function];
         } else {
             $functionConfig = false;
diff --git a/module/VuFind/src/VuFind/ILS/Driver/VoyagerRestful.php b/module/VuFind/src/VuFind/ILS/Driver/VoyagerRestful.php
index 42f8cb20c4f..1feaf830896 100644
--- a/module/VuFind/src/VuFind/ILS/Driver/VoyagerRestful.php
+++ b/module/VuFind/src/VuFind/ILS/Driver/VoyagerRestful.php
@@ -312,7 +312,7 @@ class VoyagerRestful extends Voyager implements \VuFindHttp\HttpServiceAwareInte
      */
     public function getConfig($function, $params = null)
     {
-        if (isset($this->config[$function]) ) {
+        if (isset($this->config[$function])) {
             $functionConfig = $this->config[$function];
         } else {
             $functionConfig = false;
@@ -1393,7 +1393,7 @@ EOT;
     protected function checkItemRequests($patronId, $request, $bibId,
         $itemId = false
     ) {
-        if (!empty($bibId) && !empty($patronId) && !empty($request) ) {
+        if (!empty($bibId) && !empty($patronId) && !empty($request)) {
 
             $hierarchy = array();
 
@@ -1423,7 +1423,7 @@ EOT;
 
                 // Valid Response
                 if ($reply == "ok") {
-                    if ($check->$request ) {
+                    if ($check->$request) {
                         $requestAttributes = $check->$request->attributes();
                         if ($requestAttributes['allowed'] == "Y") {
                             return true;
diff --git a/module/VuFind/tests/unit-tests/src/VuFindTest/Recommend/WorldCatTermsTest.php b/module/VuFind/tests/unit-tests/src/VuFindTest/Recommend/WorldCatTermsTest.php
index 774ce677d0f..fd467b31160 100644
--- a/module/VuFind/tests/unit-tests/src/VuFindTest/Recommend/WorldCatTermsTest.php
+++ b/module/VuFind/tests/unit-tests/src/VuFindTest/Recommend/WorldCatTermsTest.php
@@ -59,7 +59,7 @@ class WorldCatTermsTest extends \VuFindTest\Unit\TestCase
         $module->setConfig('');
         $module->init($results->getParams(), $request);
         $module->process($results);
-        $this->assertEquals( array('exact' => 'exact'), $module->getTerms());
+        $this->assertEquals(array('exact' => 'exact'), $module->getTerms());
     }
 
     /**
diff --git a/module/VuFindConsole/src/VuFindConsole/Controller/HarvestController.php b/module/VuFindConsole/src/VuFindConsole/Controller/HarvestController.php
index 40de9c8a608..887b7baf3aa 100644
--- a/module/VuFindConsole/src/VuFindConsole/Controller/HarvestController.php
+++ b/module/VuFindConsole/src/VuFindConsole/Controller/HarvestController.php
@@ -132,7 +132,7 @@ class HarvestController extends AbstractBase
         Console::writeLine('<collection>');
         while (false !== ($file = readdir($handle))) {
             // Only operate on XML files:
-            if (pathinfo($file, PATHINFO_EXTENSION) === "xml" ) {
+            if (pathinfo($file, PATHINFO_EXTENSION) === "xml") {
                 // get file content
                 $filePath = $dir . '/' . $file;
                 $fileContent = file_get_contents($filePath);
diff --git a/module/VuFindSearch/src/VuFindSearch/Backend/EIT/Backend.php b/module/VuFindSearch/src/VuFindSearch/Backend/EIT/Backend.php
index 98e5abb766f..a06a1c4c22e 100644
--- a/module/VuFindSearch/src/VuFindSearch/Backend/EIT/Backend.php
+++ b/module/VuFindSearch/src/VuFindSearch/Backend/EIT/Backend.php
@@ -91,7 +91,7 @@ class Backend extends AbstractBackend
     public function search(AbstractQuery $query, $offset, $limit,
         ParamBag $params = null
     ) {
-        if (null === $params ) {
+        if (null === $params) {
             $params = new ParamBag();
         }
         $params->mergeWith($this->getQueryBuilder()->build($query));
-- 
GitLab