Skip to content

Commit fe9c736

Browse files
committed
Apply fixes from StyleCI
1 parent 4485c68 commit fe9c736

File tree

11 files changed

+10
-18
lines changed

11 files changed

+10
-18
lines changed

src/Exception/JobFailureException.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ final class JobFailureException extends RuntimeException
1414
public function __construct(
1515
private readonly MessageInterface $queueMessage,
1616
Throwable $previous
17-
)
18-
{
17+
) {
1918
$error = $previous->getMessage();
2019
$messageId = $queueMessage->getMetadata()[IdEnvelope::MESSAGE_ID_KEY] ?? 'null';
2120
$messageText = "Processing of message #$messageId is stopped because of an exception:\n$error.";

src/Middleware/CallableFactory.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ final class CallableFactory
2121
{
2222
public function __construct(
2323
private readonly ContainerInterface $container
24-
)
25-
{
24+
) {
2625
}
2726

2827
/**

src/Middleware/Consume/ConsumeFinalHandler.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ final class ConsumeFinalHandler implements MessageHandlerConsumeInterface
1313
{
1414
public function __construct(
1515
private readonly Closure $handler
16-
)
17-
{
16+
) {
1817
}
1918

2019
public function handleConsume(ConsumeRequest $request): ConsumeRequest

src/Middleware/Consume/MiddlewareFactoryConsume.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,7 @@ private function wrapCallable(callable $callback): MiddlewareConsumeInterface
9292
public function __construct(
9393
callable $callback,
9494
private readonly ContainerInterface $container
95-
)
96-
{
95+
) {
9796
$this->callback = $callback;
9897
}
9998

src/Middleware/FailureHandling/MiddlewareFactoryFailure.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,7 @@ private function wrapCallable(callable $callback): MiddlewareFailureInterface
9595
public function __construct(
9696
callable $callback,
9797
private readonly ContainerInterface $container
98-
)
99-
{
98+
) {
10099
$this->callback = $callback;
101100
}
102101

src/Middleware/Push/MiddlewareFactoryPush.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,7 @@ private function wrapCallable(callable $callback): MiddlewarePushInterface
9292
public function __construct(
9393
callable $callback,
9494
private readonly ContainerInterface $container
95-
)
96-
{
95+
) {
9796
$this->callback = $callback;
9897
}
9998

src/Worker/Worker.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,9 @@ private function getHandler(string $name): ?callable
101101
*
102102
* @param array|callable|object|string|null $definition
103103
*
104-
* @return callable|null
105104
* @throws ContainerExceptionInterface
106105
* @throws NotFoundExceptionInterface
106+
* @return callable|null
107107
*/
108108
private function prepare(callable|object|array|string|null $definition): callable|null
109109
{

tests/App/DummyQueue.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ final class DummyQueue implements QueueInterface
1515
{
1616
public function __construct(
1717
private readonly string $channel
18-
)
19-
{
18+
) {
2019
}
2120

2221
public function push(

tests/Integration/MessageConsumingTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
use Yiisoft\Queue\Tests\TestCase;
1818
use Yiisoft\Queue\Worker\Worker;
1919

20-
final class MessageConsumingTest extends TestCase
20+
final class MessageConsumingTest extends TestCase
2121
{
2222
private array $messagesProcessed;
2323
private array $messagesProcessedSecond;

tests/Integration/Support/TestMiddleware.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
use Yiisoft\Queue\Middleware\Push\MiddlewarePushInterface;
1313
use Yiisoft\Queue\Middleware\Push\PushRequest;
1414

15-
final class TestMiddleware implements MiddlewarePushInterface, MiddlewareConsumeInterface
15+
final class TestMiddleware implements MiddlewarePushInterface, MiddlewareConsumeInterface
1616
{
1717
public function __construct(private readonly string $stage)
1818
{

0 commit comments

Comments
 (0)