Skip to content
Snippets Groups Projects
Commit 97bea41c authored by Demian Katz's avatar Demian Katz
Browse files

Style fix (long lines).

parent 643216dd
No related merge requests found
......@@ -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])
......
......@@ -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:
......
......@@ -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) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment