Skip to content

Commit

Permalink
Coding standards.
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-vessey committed Feb 29, 2024
1 parent 0ac3d69 commit debe947
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Plugin/search_api/processor/EmbargoProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ public function preprocessSearchQuery(QueryInterface $query) : void {

$datasources = $query->getIndex()->getDatasources();
/** @var \Drupal\search_api\Datasource\DatasourceInterface[] $applicable_datasources */
$applicable_datasources = array_filter($datasources, function(DatasourceInterface $datasource) {
$applicable_datasources = array_filter($datasources, function (DatasourceInterface $datasource) {
return in_array($datasource->getEntityTypeId(), static::ENTITY_TYPES);
});
if (empty($applicable_datasources)) {
Expand All @@ -235,7 +235,8 @@ public function preprocessSearchQuery(QueryInterface $query) : void {
$scheduled_group->addCondition($indefinite_field->getFieldIdentifier(), 0);

// No scheduled embargo in the future.
// XXX: Might not quite work? If there's a single scheduled embargo lesser, would it open it?
// XXX: Might not quite work? If there's a single scheduled embargo
// lesser, would it open it?
if ($scheduled_field = $this->findField(NULL, 'embargo_info:scheduled_timestamps')) {
$scheduled_group->addCondition($scheduled_field->getFieldIdentifier(), [
0 => time() + 1,
Expand Down

0 comments on commit debe947

Please sign in to comment.