Skip to content

Commit 9636c27

Browse files
committed
StyleCI fixes
1 parent 3afb324 commit 9636c27

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

src/Jenssegers/Mongodb/MongodbQueueServiceProvider.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,11 @@ class MongodbQueueServiceProvider extends QueueServiceProvider
1313
protected function registerFailedJobServices()
1414
{
1515
// Add compatible queue failer if mongodb is configured.
16-
if(config('queue.failed.database') == 'mongodb')
17-
{
16+
if(config('queue.failed.database') == 'mongodb') {
1817
$this->app->singleton('queue.failer', function ($app) {
1918
return new MongoFailedJobProvider($app['db'], config('queue.failed.database'), config('queue.failed.table'));
2019
});
21-
}
22-
else
23-
{
20+
} else {
2421
parent::registerFailedJobServices();
2522
}
2623
}

src/Jenssegers/Mongodb/Queue/Failed/MongoFailedJobProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function all()
3131
$all = $this->getTable()->orderBy('_id', 'desc')->get();
3232

3333
$all = array_map(function($job) {
34-
$job['id'] = (string)$job['_id'];
34+
$job['id'] = (string) $job['_id'];
3535
return $job;
3636
}, $all);
3737

@@ -48,7 +48,7 @@ public function find($id)
4848
{
4949
$job = $this->getTable()->find($id);
5050

51-
$job['id'] = (string)$job['_id'];
51+
$job['id'] = (string) $job['_id'];
5252

5353
return $job;
5454
}

0 commit comments

Comments
 (0)