diff --git a/src/BlockEntityStorage.php b/src/BlockEntityStorage.php index 35ee81081a736412dd7890c767680d48c6f05fc6..034ec7f2604d2177ac911cf70bfbf27ec5fee703 100644 --- a/src/BlockEntityStorage.php +++ b/src/BlockEntityStorage.php @@ -76,7 +76,7 @@ class BlockEntityStorage extends ConfigEntityStorage { $entity_query = $this->getQuery(); $entity_query->condition('plugin', 'fieldblock:', 'STARTS_WITH'); $result = $entity_query->execute(); - return $result ? $this->loadMultiple($result) : array(); + return $result ? $this->loadMultiple($result) : []; } /** diff --git a/src/Form/FieldBlockConfigForm.php b/src/Form/FieldBlockConfigForm.php index abfa7bdf1a6b08728a837c22d9980691113e55b9..4994b28af132cf4c2990d9fe3ecfd7acfaf0ac89 100644 --- a/src/Form/FieldBlockConfigForm.php +++ b/src/Form/FieldBlockConfigForm.php @@ -77,13 +77,13 @@ class FieldBlockConfigForm extends ConfigFormBase { */ public function buildForm(array $form, FormStateInterface $form_state) { $enabled = $this->fieldblock_controller->getEnabledEntityTypes(); - $form['enabled_entity_types'] = array( + $form['enabled_entity_types'] = [ '#type' => 'checkboxes', '#title' => $this->t('Enable Entity Types'), '#options' => $this->getEntityTypeLabels(), '#description' => $this->t('Select the Entity Types to expose as field blocks.'), '#default_value' => $enabled, - ); + ]; $orphaned_types = $this->getOrphanedEntityTypes($enabled); $cleanup_options = []; $entity_type_definitions = $this->entityManager->getDefinitions();