1
0
mirror of https://github.com/flarum/core.git synced 2025-08-08 09:26:34 +02:00

Apply fixes from StyleCI

[ci skip] [skip ci]
This commit is contained in:
luceos
2021-07-14 09:30:06 +00:00
committed by David Wheatley
parent 72780f514f
commit 65a5ed4e86
7 changed files with 43 additions and 1 deletions

View File

@@ -1,5 +1,12 @@
<?php
/*
* This file is part of Flarum.
*
* For detailed copyright and license information, please view the
* LICENSE file that was distributed with this source code.
*/
use Flarum\Database\Migration;
use Illuminate\Database\Schema\Blueprint;

View File

@@ -1,5 +1,12 @@
<?php
/*
* This file is part of Flarum.
*
* For detailed copyright and license information, please view the
* LICENSE file that was distributed with this source code.
*/
use Flarum\Database\Migration;
use Illuminate\Database\Schema\Blueprint;

View File

@@ -1,5 +1,12 @@
<?php
/*
* This file is part of Flarum.
*
* For detailed copyright and license information, please view the
* LICENSE file that was distributed with this source code.
*/
namespace Flarum\Queue\Driver;
use Illuminate\Contracts\Queue\Queue;

View File

@@ -1,5 +1,12 @@
<?php
/*
* This file is part of Flarum.
*
* For detailed copyright and license information, please view the
* LICENSE file that was distributed with this source code.
*/
namespace Flarum\Queue\Driver;
use Illuminate\Contracts\Container\Container;

View File

@@ -1,5 +1,12 @@
<?php
/*
* This file is part of Flarum.
*
* For detailed copyright and license information, please view the
* LICENSE file that was distributed with this source code.
*/
namespace Flarum\Queue\Driver;
use Illuminate\Contracts\Container\Container;
@@ -8,5 +15,6 @@ use Illuminate\Contracts\Queue\Queue;
interface DriverInterface
{
public function build(): Queue;
public function setContainer(Container $container): self;
}

View File

@@ -1,5 +1,12 @@
<?php
/*
* This file is part of Flarum.
*
* For detailed copyright and license information, please view the
* LICENSE file that was distributed with this source code.
*/
namespace Flarum\Queue\Driver;
use Illuminate\Contracts\Queue\Queue;

View File

@@ -69,7 +69,6 @@ class QueueServiceProvider extends AbstractServiceProvider
return $driver->build();
});
// Register a simple connection factory that always returns the same
// connection, as that is enough for our purposes.
$this->container->singleton(Factory::class, function (Container $container) {