diff --git a/src/JobRecorder/JobRecorder.php b/src/JobRecorder/JobRecorder.php index 39b15f6b..ba18c911 100644 --- a/src/JobRecorder/JobRecorder.php +++ b/src/JobRecorder/JobRecorder.php @@ -11,7 +11,6 @@ use Illuminate\Queue\CallQueuedClosure; use Illuminate\Queue\Events\JobExceptionOccurred; use Illuminate\Queue\Jobs\RedisJob; -use Illuminate\Support\Collection; use Illuminate\Support\Str; use ReflectionClass; use ReflectionProperty; @@ -117,11 +116,11 @@ protected function resolveCommandProperties(object $command, int $maxChainDepth) return in_array($property->name, $propertiesToIgnore); }) ->mapWithKeys(function (ReflectionProperty $property) use ($command) { - try{ + try { $property->setAccessible(true); return [$property->name => $property->getValue($command)]; - }catch(Error $error) { + } catch (Error $error) { return [$property->name => 'uninitialized']; } });