From 97bea41cbe64ef4e8b90cb94e57bfcc7774c9192 Mon Sep 17 00:00:00 2001 From: Demian Katz <demian.katz@villanova.edu> Date: Fri, 31 Aug 2012 12:18:11 -0400 Subject: [PATCH] Style fix (long lines). --- module/VuFind/src/VuFind/Search/Base/Params.php | 3 ++- module/VuFind/src/VuFind/Search/Solr/Results.php | 3 ++- module/VuFind/src/VuFind/Search/Summon/Results.php | 5 +++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/module/VuFind/src/VuFind/Search/Base/Params.php b/module/VuFind/src/VuFind/Search/Base/Params.php index fd4e97d80a6..948915f4e3f 100644 --- a/module/VuFind/src/VuFind/Search/Base/Params.php +++ b/module/VuFind/src/VuFind/Search/Base/Params.php @@ -1043,7 +1043,8 @@ class Params // Loop through all the current filter fields foreach ($this->filterList as $field => $values) { // and each value currently used for that field - $translate = in_array($field, $this->getOptions()->getTranslatedFacets()); + $translate + = in_array($field, $this->getOptions()->getTranslatedFacets()); foreach ($values as $value) { // Add to the list unless it's in the list of fields to skip: if (!isset($skipList[$field]) diff --git a/module/VuFind/src/VuFind/Search/Solr/Results.php b/module/VuFind/src/VuFind/Search/Solr/Results.php index ea92c9b6368..ab4ad29e2ed 100644 --- a/module/VuFind/src/VuFind/Search/Solr/Results.php +++ b/module/VuFind/src/VuFind/Search/Solr/Results.php @@ -423,7 +423,8 @@ class Results extends BaseResults // Build our array of values for this field $list[$field]['list'] = array(); // Should we translate values for the current facet? - $translate = in_array($field, $this->getOptions()->getTranslatedFacets()); + $translate + = in_array($field, $this->getOptions()->getTranslatedFacets()); // Loop through values: foreach ($data as $facet) { // Initialize the array of data about the current facet: diff --git a/module/VuFind/src/VuFind/Search/Summon/Results.php b/module/VuFind/src/VuFind/Search/Summon/Results.php index 8b71d56d479..2883026873d 100644 --- a/module/VuFind/src/VuFind/Search/Summon/Results.php +++ b/module/VuFind/src/VuFind/Search/Summon/Results.php @@ -212,8 +212,9 @@ class Results extends BaseResults // Is this one of the fields we want to display? If so, do work... if (isset($filter[$field])) { // Should we translate values for the current facet? - $translate - = in_array($field, $this->getOptions()->getTranslatedFacets()); + $translate = in_array( + $field, $this->getOptions()->getTranslatedFacets() + ); // Loop through all the facet values to see if any are applied. foreach ($current['counts'] as $facetIndex => $facetDetails) { -- GitLab