Commit 2e3249bf authored by borisson_'s avatar borisson_

Code style fix

parent ba1d5de3
......@@ -394,12 +394,12 @@ class Facet extends ConfigEntityBase implements FacetInterface {
if (!isset($this->processors)) {
/** @var $processor_plugin_manager \Drupal\facetapi\Processor\ProcessorPluginManager */
$processor_plugin_manager = \Drupal::service('plugin.manager.facetapi.processor');
$processor_settings = $this->getOption('processors', array());
$processor_settings = $this->getOption('processors', []);
foreach ($processor_plugin_manager->getDefinitions() as $name => $processor_definition) {
if (class_exists($processor_definition['class']) && empty($this->processors[$name])) {
// Create our settings for this processor.
$settings = empty($processor_settings[$name]['settings']) ? array() : $processor_settings[$name]['settings'];
$settings = empty($processor_settings[$name]['settings']) ? [] : $processor_settings[$name]['settings'];
$settings['facet'] = $this;
/** @var $processor \Drupal\facetapi\Processor\ProcessorInterface */
......
......@@ -32,7 +32,7 @@ class MinimumCountProcessor extends ProcessorPluginBase implements BuildProcesso
$processors = $facet->getProcessors();
$config = $processors[$this->getPluginId()];
/** @var Result $result */
/** @var \Drupal\facetapi\Result\Result $result */
foreach ($results as $id => $result) {
if ($result->getCount() < $config->getConfiguration()['minimum_items']) {
unset($results[$id]);
......
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