Commit d0ffef10 authored by borisson_'s avatar borisson_

Code style fixes

parent 465c2131
.block-facets ul ul li {
margin-left: 10px;
margin-left: 10px;
}
......@@ -21,7 +21,7 @@
// Find all checkbox facet links and give them a checkbox.
var $links = $('.js-facets-checkbox-links .facet-item a');
$links.once('facets-checkbox-transform').each(Drupal.facets.makeCheckbox);
// Set indeterminate value on parents having an active trail
// Set indeterminate value on parents having an active trail.
$('.facet-item--expanded.facet-item--active-trail > input').prop("indeterminate", true);
};
......
......@@ -420,8 +420,8 @@ class DefaultFacetManager {
if (isset($parent_groups[$current_id]) && $parent_groups[$current_id]) {
$child_ids = $parent_groups[$current_id];
$child_keyed_results = [];
foreach($child_ids as $child_id){
if(isset($keyed_results[$child_id])){
foreach ($child_ids as $child_id) {
if (isset($keyed_results[$child_id])) {
$child_keyed_results[$child_id] = $keyed_results[$child_id];
}
}
......
......@@ -105,7 +105,6 @@ abstract class SearchApiBaseFacetSource extends FacetSourcePluginBase {
return $indexed_fields;
}
/**
* {@inheritdoc}
*/
......
......@@ -174,7 +174,7 @@ class SearchApiViews extends SearchApiBaseFacetSource implements SearchApiFacetS
*/
public function calculateDependencies() {
$plugin_id_array = explode(':', $this->pluginId);
list($view_id, ) = explode('__', $plugin_id_array[1]);
list($view_id,) = explode('__', $plugin_id_array[1]);
return [
'config' => ['views.view.' . $view_id],
'module' => ['views'],
......
Markdown is supported
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