Skip to content
This repository was archived by the owner on Aug 22, 2023. It is now read-only.

Commit e3e0afd

Browse files
committed
Remove Arr::get where not necessary
1 parent 92cf02c commit e3e0afd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Connection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function __construct(array $config)
4848
$dsn = $this->getDsn($config);
4949

5050
// You can pass options directly to the MongoDB constructor
51-
$options = Arr::get($config, 'options', []);
51+
$options = $config['options'] ?? [];
5252

5353
// Create the connection
5454
$this->connection = $this->createConnection($dsn, $config, $options);

src/Queue/MongoConnector.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ public function __construct(ConnectionResolverInterface $connections)
3434
public function connect(array $config)
3535
{
3636
return new MongoQueue(
37-
$this->connections->connection(Arr::get($config, 'connection')),
37+
$this->connections->connection($config['connection']),
3838
$config['table'],
3939
$config['queue'],
40-
Arr::get($config, 'expire', 60)
40+
$config['expire'] ?? 60
4141
);
4242
}
4343
}

0 commit comments

Comments
 (0)