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

Commit

Permalink
Remove Arr::get where not necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
GromNaN committed Aug 21, 2023
1 parent 92cf02c commit e3e0afd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function __construct(array $config)
$dsn = $this->getDsn($config);

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

// Create the connection
$this->connection = $this->createConnection($dsn, $config, $options);
Expand Down
4 changes: 2 additions & 2 deletions src/Queue/MongoConnector.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ public function __construct(ConnectionResolverInterface $connections)
public function connect(array $config)
{
return new MongoQueue(
$this->connections->connection(Arr::get($config, 'connection')),
$this->connections->connection($config['connection']),
$config['table'],
$config['queue'],
Arr::get($config, 'expire', 60)
$config['expire'] ?? 60
);
}
}

0 comments on commit e3e0afd

Please sign in to comment.