From 0ca7c18587043e841ff3f858a01d8384afb57521 Mon Sep 17 00:00:00 2001 From: jviitamaki Date: Thu, 20 Feb 2025 13:01:59 +0200 Subject: [PATCH] Fixed syntax issues --- .../src/Plugin/views/field/ServiceHasUnpublishedChanges.php | 1 - .../hel_tpm_url_shortener/src/Form/ShortenerredirectForm.php | 1 - .../custom/hel_tpm_user_expiry/hel_tpm_user_expiry.module | 1 - 3 files changed, 3 deletions(-) diff --git a/public/modules/custom/hel_tpm_editorial/src/Plugin/views/field/ServiceHasUnpublishedChanges.php b/public/modules/custom/hel_tpm_editorial/src/Plugin/views/field/ServiceHasUnpublishedChanges.php index 6754d604..5782a9d9 100644 --- a/public/modules/custom/hel_tpm_editorial/src/Plugin/views/field/ServiceHasUnpublishedChanges.php +++ b/public/modules/custom/hel_tpm_editorial/src/Plugin/views/field/ServiceHasUnpublishedChanges.php @@ -104,7 +104,6 @@ public function render(ResultRow $values) { if (!$entity->isLatestTranslationAffectedRevision()) { $latest_translation_affected = $this->getLatestTranslationAffectedRevision($entity); if ($entity->get('moderation_state')->value !== $latest_translation_affected->get('moderation_state')->value) { - ; $moderation_state = $this->getLatestRevisionModerationState($entity); return [ '#theme' => 'service_has_changes_field', diff --git a/public/modules/custom/hel_tpm_url_shortener/src/Form/ShortenerredirectForm.php b/public/modules/custom/hel_tpm_url_shortener/src/Form/ShortenerredirectForm.php index c9309a1d..5284c81c 100644 --- a/public/modules/custom/hel_tpm_url_shortener/src/Form/ShortenerredirectForm.php +++ b/public/modules/custom/hel_tpm_url_shortener/src/Form/ShortenerredirectForm.php @@ -25,7 +25,6 @@ class ShortenerredirectForm extends ContentEntityForm { public function __construct(EntityRepositoryInterface $entity_repository, EntityTypeBundleInfoInterface $entity_type_bundle_info, TimeInterface $time, RendererInterface $renderer) { parent::__construct($entity_repository, $entity_type_bundle_info, $time); $this->renderer = $renderer; - ; } /** diff --git a/public/modules/custom/hel_tpm_user_expiry/hel_tpm_user_expiry.module b/public/modules/custom/hel_tpm_user_expiry/hel_tpm_user_expiry.module index 00401ffd..2dc16d26 100644 --- a/public/modules/custom/hel_tpm_user_expiry/hel_tpm_user_expiry.module +++ b/public/modules/custom/hel_tpm_user_expiry/hel_tpm_user_expiry.module @@ -34,7 +34,6 @@ function _hel_tpm_user_expiry_block_unactivated_users() { $storage = \Drupal::service('entity_type.manager')->getStorage('user'); $user_settings = \Drupal::config('user.settings'); $limit = \Drupal::time()->getRequestTime() - $user_settings->get('password_reset_timeout'); - ; $uids = \Drupal::database()->select('users_field_data', 'ufd') ->fields('ufd', ['uid'])