Skip to content

Commit 6e13536

Browse files
committedJan 17, 2025
Running php-cs-fixer
Running php-cs-fixer to fix CS drift
1 parent 3ef3206 commit 6e13536

File tree

85 files changed

+160
-360
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+160
-360
lines changed
 

‎Client/ChainExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public function __construct(array $extensions)
6767
}
6868

6969
if (false == $extensionValid) {
70-
throw new \LogicException(sprintf('Invalid extension given %s', get_class($extension)));
70+
throw new \LogicException(sprintf('Invalid extension given %s', $extension::class));
7171
}
7272
});
7373
}

‎Client/Config.php

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44

55
class Config
66
{
7-
const TOPIC = 'enqueue.topic';
8-
const COMMAND = 'enqueue.command';
9-
const PROCESSOR = 'enqueue.processor';
10-
const EXPIRE = 'enqueue.expire';
11-
const PRIORITY = 'enqueue.priority';
12-
const DELAY = 'enqueue.delay';
13-
const CONTENT_TYPE = 'enqueue.content_type';
7+
public const TOPIC = 'enqueue.topic';
8+
public const COMMAND = 'enqueue.command';
9+
public const PROCESSOR = 'enqueue.processor';
10+
public const EXPIRE = 'enqueue.expire';
11+
public const PRIORITY = 'enqueue.priority';
12+
public const DELAY = 'enqueue.delay';
13+
public const CONTENT_TYPE = 'enqueue.content_type';
1414

1515
/**
1616
* @var string
@@ -66,7 +66,7 @@ public function __construct(
6666
string $defaultQueue,
6767
string $routerProcessor,
6868
array $transportConfig,
69-
array $driverConfig
69+
array $driverConfig,
7070
) {
7171
$this->prefix = trim($prefix);
7272
$this->app = trim($app);
@@ -153,15 +153,15 @@ public function getDriverOptions(): array
153153
}
154154

155155
public static function create(
156-
string $prefix = null,
157-
string $separator = null,
158-
string $app = null,
159-
string $routerTopic = null,
160-
string $routerQueue = null,
161-
string $defaultQueue = null,
162-
string $routerProcessor = null,
156+
?string $prefix = null,
157+
?string $separator = null,
158+
?string $app = null,
159+
?string $routerTopic = null,
160+
?string $routerQueue = null,
161+
?string $defaultQueue = null,
162+
?string $routerProcessor = null,
163163
array $transportConfig = [],
164-
array $driverConfig = []
164+
array $driverConfig = [],
165165
): self {
166166
return new static(
167167
$prefix ?: '',

0 commit comments

Comments
 (0)