From 69e21072e6697602c50f2702de2eed117ce39185 Mon Sep 17 00:00:00 2001 From: hapidjus <5553121+hapidjus@users.noreply.github.com> Date: Thu, 24 Oct 2024 00:51:23 +0200 Subject: [PATCH] Code style --- src/Watchers/JobWatcher.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Watchers/JobWatcher.php b/src/Watchers/JobWatcher.php index d8227076c..6183e8814 100644 --- a/src/Watchers/JobWatcher.php +++ b/src/Watchers/JobWatcher.php @@ -3,12 +3,10 @@ namespace Laravel\Telescope\Watchers; use Illuminate\Bus\BatchRepository; -use Illuminate\Contracts\Encryption\Encrypter; use Illuminate\Queue\Events\JobFailed; use Illuminate\Queue\Events\JobProcessed; use Illuminate\Queue\Queue; use Illuminate\Support\Arr; -use Illuminate\Support\Str; use Laravel\Telescope\EntryType; use Laravel\Telescope\EntryUpdate; use Laravel\Telescope\ExceptionContext; @@ -16,7 +14,6 @@ use Laravel\Telescope\ExtractTags; use Laravel\Telescope\IncomingEntry; use Laravel\Telescope\Telescope; -use RuntimeException; class JobWatcher extends Watcher { @@ -231,7 +228,7 @@ protected function updateBatch($payload) private function getBatchId(array $data) { - if(preg_match('/"batchId";s:\d+:"([^"]+)"/', $data['command'], $matches)){ + if (preg_match('/"batchId";s:\d+:"([^"]+)"/', $data['command'], $matches)){ return $matches[1]; } return null;