Commit ec03a754 authored by borisson_'s avatar borisson_

Fix coding standards

parent 84f61a7c
......@@ -30,10 +30,10 @@
facetsList.find('li:gt(' + zero_based_limit + ')').once().hide();
// Add "Show more" / "Show less" links.
facetsList.once().filter(function() {
facetsList.once().filter(function () {
return $(this).find('li').length > limit;
}).each(function() {
$('<a href="#" class="facets-soft-limit-link"></a>').text(Drupal.t('Show more')).click(function() {
}).each(function () {
$('<a href="#" class="facets-soft-limit-link"></a>').text(Drupal.t('Show more')).click(function () {
if ($(this).siblings().find('li:hidden').length > 0) {
$(this).siblings().find('li:gt(' + zero_based_limit + ')').slideDown();
$(this).addClass('open').text(Drupal.t('Show less'));
......
......@@ -2,7 +2,6 @@
namespace Drupal\facets\FacetSource;
use Drupal\Core\Entity\EntityTypeManager;
use Drupal\Core\Entity\EntityTypeManagerInterface;
use Drupal\Core\Plugin\Discovery\ContainerDeriverInterface;
......
......@@ -2,7 +2,6 @@
namespace Drupal\facets\Plugin\facets\processor;
use Drupal\facets\Processor\SortProcessorPluginBase;
use Drupal\facets\Processor\SortProcessorInterface;
use Drupal\facets\Result\Result;
......
......@@ -2,7 +2,6 @@
namespace Drupal\facets\Processor;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Plugin\PluginBase;
use Drupal\facets\FacetInterface;
......
......@@ -2,7 +2,6 @@
namespace Drupal\facets\QueryType;
use Drupal\Core\Cache\CacheBackendInterface;
use Drupal\Core\Extension\ModuleHandlerInterface;
use Drupal\Core\Plugin\DefaultPluginManager;
......
......@@ -2,7 +2,6 @@
namespace Drupal\facets\Result;
use Drupal\Core\Url;
/**
......
......@@ -151,7 +151,6 @@ class ExcludeSpecifiedItemsProcessorTest extends UnitTestCase {
}
}
/**
* Tests filtering happens for string filter.
*/
......
......@@ -146,7 +146,7 @@ class TranslateEntityProcessorTest extends UnitTestCase {
// Set expected results.
$expected_results = [
['nid' => 2, 'title' => 'shaken not stirred']
['nid' => 2, 'title' => 'shaken not stirred'],
];
// Without the processor we expect the id to display.
......
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