From 6c0e5bdd149c00f41687dec6215edc7858a75d7f Mon Sep 17 00:00:00 2001 From: Chris MacDonald <31731869+chrismacdonaldw@users.noreply.github.com> Date: Wed, 21 Feb 2024 14:28:27 -0400 Subject: [PATCH] Correct typo --- src/Plugin/QueueWorker/FixityCheckWorker.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Plugin/QueueWorker/FixityCheckWorker.php b/src/Plugin/QueueWorker/FixityCheckWorker.php index 2872688..b0a7106 100644 --- a/src/Plugin/QueueWorker/FixityCheckWorker.php +++ b/src/Plugin/QueueWorker/FixityCheckWorker.php @@ -7,7 +7,6 @@ use Drupal\Core\Queue\QueueWorkerBase; use Drupal\dgi_fixity\FixityCheckServiceInterface; use Drupal\dgi_fixity\FixityCheckInterface; use Symfony\Component\DependencyInjection\ContainerInterface; -use function PHPUnit\Framework\isEmpty; /** * Performs a fixity check. @@ -61,7 +60,7 @@ class FixityCheckWorker extends QueueWorkerBase implements ContainerFactoryPlugi */ public function processItem($data) { if ($data instanceof FixityCheckInterface) { - if (isEmpty($data->getFile())) { + if (empty($data->getFile())) { $data->delete(); return; }