Skip to content

Commit fd76179

Browse files
marickvantuilgithub-actions[bot]
authored andcommitted
Apply code style rules
1 parent fb054cb commit fd76179

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/CloudTasksQueue.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66

77
use Closure;
88
use Exception;
9-
use Google\Protobuf\Duration;
109
use Illuminate\Support\Str;
10+
use Google\Protobuf\Duration;
1111

1212
use function Safe\json_decode;
1313
use function Safe\json_encode;
@@ -285,7 +285,7 @@ public function addPayloadToTask(array $payload, Task $task, $job): Task
285285
$task->setHttpRequest($httpRequest);
286286

287287
if (! empty($this->config['dispatch_deadline'])) {
288-
$task->setDispatchDeadline((new Duration())->setSeconds($this->config['dispatch_deadline']));
288+
$task->setDispatchDeadline((new Duration)->setSeconds($this->config['dispatch_deadline']));
289289
}
290290
}
291291

tests/QueueTest.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ public function task_has_no_dispatch_deadline_by_default(): void
574574
CloudTasksApi::fake();
575575

576576
// Act
577-
$this->dispatch(new SimpleJob());
577+
$this->dispatch(new SimpleJob);
578578

579579
// Assert
580580
CloudTasksApi::assertTaskCreated(function (Task $task): bool {
@@ -590,7 +590,7 @@ public function task_has_no_dispatch_deadline_if_config_is_empty(): void
590590
$this->setConfigValue('dispatch_deadline', null);
591591

592592
// Act
593-
$this->dispatch(new SimpleJob());
593+
$this->dispatch(new SimpleJob);
594594

595595
// Assert
596596
CloudTasksApi::assertTaskCreated(function (Task $task): bool {
@@ -606,7 +606,7 @@ public function task_has_configured_dispatch_deadline(): void
606606
$this->setConfigValue('dispatch_deadline', 1800);
607607

608608
// Act
609-
$this->dispatch(new SimpleJob());
609+
$this->dispatch(new SimpleJob);
610610

611611
// Assert
612612
CloudTasksApi::assertTaskCreated(function (Task $task): bool {

0 commit comments

Comments
 (0)