Commit b37891c0 authored by borisson_'s avatar borisson_

Coding standards clean up

parent 21343a6a
......@@ -55,14 +55,16 @@ class SliderWidget extends WidgetPluginBase {
$min = (float) reset($results)->getRawValue();
$max = (float) end($results)->getRawValue();
$build['#items'] = [[
'#type' => 'html_tag',
'#tag' => 'div',
'#attributes' => [
'class' => ['facet-slider'],
'id' => $facet->id(),
$build['#items'] = [
[
'#type' => 'html_tag',
'#tag' => 'div',
'#attributes' => [
'class' => ['facet-slider'],
'id' => $facet->id(),
],
],
]];
];
$active = $facet->getActiveItems();
......
......@@ -159,8 +159,8 @@ class FacetBlock extends BlockBase implements ContainerFactoryPluginInterface {
public function blockSubmit($form, FormStateInterface $form_state) {
// Checks for a valid form id. Panelizer does not generate one.
if (isset($form['id']['#value'])) {
// Save block id to configuration, we do this for loading the original block
// with ajax.
// Save block id to configuration, we do this for loading the original
// block with ajax.
$block_id = $form['id']['#value'];
$this->configuration['block_id'] = $block_id;
}
......
......@@ -47,7 +47,7 @@ class GranularItemProcessor extends ProcessorPluginBase implements BuildProcesso
'include_lower' => TRUE,
'include_upper' => FALSE,
'include_edges' => TRUE,
] + parent::defaultConfiguration();
] + parent::defaultConfiguration();
}
/**
......
......@@ -66,7 +66,7 @@ class QueryString extends UrlProcessorPluginBase {
// Try to grab any route params from the original request.
// In case of request path not having a matching route, Url generator will
// fail with
// fail with.
try {
$routeParameters = Url::createFromRequest($this->request)
->getRouteParameters();
......@@ -86,7 +86,7 @@ class QueryString extends UrlProcessorPluginBase {
$requestUrl = Url::fromUserInput($facet_path, [
'query' => [
'_format' => $this->request->get('_format'),
]
],
]);
}
......
......@@ -3,7 +3,6 @@
namespace Drupal\facets\Utility;
use Drupal\Core\Entity\EntityTypeManagerInterface;
use Drupal\facets\FacetInterface;
use Drupal\facets\Result\Result;
use Drupal\facets\UrlProcessor\UrlProcessorPluginManager;
......
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