Skip to content

Commit b045e5b

Browse files
committed
Coding standards
1 parent d12c24e commit b045e5b

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

web/modules/custom/ai_screening_project/ai_screening_project.module

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ use Drupal\core_event_dispatcher\Event\Entity\EntityBaseFieldInfoEvent;
1212
/**
1313
* Implements hook_entity_base_field_info().
1414
*/
15-
function ai_screening_project_entity_base_field_info(EntityTypeInterface $entityType): array
16-
{
15+
function ai_screening_project_entity_base_field_info(EntityTypeInterface $entityType): array {
1716
// @fixme I, Mikkel, cannot make this work using an event handler, but we can
1817
// get the fields data from the event handler.
1918
// Only add fields for node entities to avoid unnecessary processing.
@@ -30,8 +29,10 @@ function ai_screening_project_entity_base_field_info(EntityTypeInterface $entity
3029
$event = new EntityBaseFieldInfoEvent($entityType);
3130
$helper->entityBaseFieldInfo($event);
3231
return $event->getFields();
33-
} catch (\Exception $e) {
34-
// Service not available yet (e.g., during installation), return empty array.
32+
}
33+
catch (\Exception $e) {
34+
// Service not available yet (e.g., during installation),
35+
// return empty array.
3536
return [];
3637
}
3738
}

0 commit comments

Comments
 (0)