Skip to content

Commit 0a4746d

Browse files
GromNaNgithub-actions[bot]
authored andcommitted
apply phpcbf formatting
1 parent 194bde6 commit 0a4746d

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/MongoDBQueueServiceProvider.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
use Illuminate\Queue\Failed\NullFailedJobProvider;
88
use Illuminate\Queue\QueueServiceProvider;
9-
use InvalidArgumentException;
109
use MongoDB\Laravel\Queue\Failed\MongoFailedJobProvider;
1110

1211
use function array_key_exists;

src/Queue/MongoConnector.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
use Illuminate\Database\ConnectionResolverInterface;
99
use Illuminate\Queue\Connectors\ConnectorInterface;
1010

11+
use function trigger_error;
12+
13+
use const E_USER_DEPRECATED;
14+
1115
class MongoConnector implements ConnectorInterface
1216
{
1317
/**
@@ -32,12 +36,12 @@ public function __construct(ConnectionResolverInterface $connections)
3236
*/
3337
public function connect(array $config)
3438
{
35-
if (!isset($config['collection']) && isset($config['table'])) {
39+
if (! isset($config['collection']) && isset($config['table'])) {
3640
trigger_error('Since mongodb/laravel-mongodb 4.4: Using "table" option in queue configuration is deprecated. Use "collection" instead.', E_USER_DEPRECATED);
3741
$config['collection'] = $config['table'];
3842
}
3943

40-
if (!isset($config['retry_after']) && isset($config['expire'])) {
44+
if (! isset($config['retry_after']) && isset($config['expire'])) {
4145
trigger_error('Since mongodb/laravel-mongodb 4.4: Using "expire" option in queue configuration is deprecated. Use "retry_after" instead.', E_USER_DEPRECATED);
4246
$config['retry_after'] = $config['expire'];
4347
}

0 commit comments

Comments
 (0)