Applied fixes from StyleCI
This commit is contained in:
committed by
StyleCI Bot
parent
be5df5334f
commit
d637c2b23f
@@ -3,10 +3,9 @@
|
||||
namespace App\Providers;
|
||||
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
use App\Http\Controllers\WelcomeController;
|
||||
|
||||
class AppServiceProvider extends ServiceProvider {
|
||||
|
||||
class AppServiceProvider extends ServiceProvider
|
||||
{
|
||||
/**
|
||||
* Register any application services.
|
||||
*
|
||||
@@ -16,31 +15,33 @@ class AppServiceProvider extends ServiceProvider {
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function register() {
|
||||
public function register()
|
||||
{
|
||||
$this->app->bind(
|
||||
'Illuminate\Contracts\Auth\Registrar', 'App\Services\Registrar'
|
||||
);
|
||||
}
|
||||
|
||||
public function boot() {
|
||||
// Please note the different namespace
|
||||
public function boot()
|
||||
{
|
||||
// Please note the different namespace
|
||||
// and please add a \ in front of your classes in the global namespace
|
||||
\Event::listen('cron.collectJobs', function() {
|
||||
\Event::listen('cron.collectJobs', function () {
|
||||
|
||||
\Cron::add('example1', '* * * * *', function() {
|
||||
\Cron::add('example1', '* * * * *', function () {
|
||||
$this->index();
|
||||
|
||||
return 'No';
|
||||
});
|
||||
|
||||
\Cron::add('example2', '*/2 * * * *', function() {
|
||||
\Cron::add('example2', '*/2 * * * *', function () {
|
||||
// Do some crazy things successfully every two minute
|
||||
return null;
|
||||
return;
|
||||
});
|
||||
|
||||
\Cron::add('disabled job', '0 * * * *', function() {
|
||||
\Cron::add('disabled job', '0 * * * *', function () {
|
||||
// Do some crazy things successfully every hour
|
||||
}, false);
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -5,16 +5,18 @@ namespace App\Providers;
|
||||
use Illuminate\Bus\Dispatcher;
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
|
||||
class BusServiceProvider extends ServiceProvider {
|
||||
|
||||
class BusServiceProvider extends ServiceProvider
|
||||
{
|
||||
/**
|
||||
* Bootstrap any application services.
|
||||
*
|
||||
* @param \Illuminate\Bus\Dispatcher $dispatcher
|
||||
* @param \Illuminate\Bus\Dispatcher $dispatcher
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function boot(Dispatcher $dispatcher) {
|
||||
$dispatcher->mapUsing(function($command) {
|
||||
public function boot(Dispatcher $dispatcher)
|
||||
{
|
||||
$dispatcher->mapUsing(function ($command) {
|
||||
return Dispatcher::simpleMapping(
|
||||
$command, 'App\Commands', 'App\Handlers\Commands'
|
||||
);
|
||||
@@ -26,8 +28,8 @@ class BusServiceProvider extends ServiceProvider {
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function register() {
|
||||
public function register()
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -4,8 +4,8 @@ namespace App\Providers;
|
||||
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
|
||||
class ConfigServiceProvider extends ServiceProvider {
|
||||
|
||||
class ConfigServiceProvider extends ServiceProvider
|
||||
{
|
||||
/**
|
||||
* Overwrite any vendor / package configuration.
|
||||
*
|
||||
@@ -15,10 +15,10 @@ class ConfigServiceProvider extends ServiceProvider {
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function register() {
|
||||
public function register()
|
||||
{
|
||||
config([
|
||||
//
|
||||
]);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -5,8 +5,8 @@ namespace App\Providers;
|
||||
use Illuminate\Contracts\Events\Dispatcher as DispatcherContract;
|
||||
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
|
||||
|
||||
class EventServiceProvider extends ServiceProvider {
|
||||
|
||||
class EventServiceProvider extends ServiceProvider
|
||||
{
|
||||
/**
|
||||
* The event handler mappings for the application.
|
||||
*
|
||||
@@ -21,13 +21,14 @@ class EventServiceProvider extends ServiceProvider {
|
||||
/**
|
||||
* Register any other events for your application.
|
||||
*
|
||||
* @param \Illuminate\Contracts\Events\Dispatcher $events
|
||||
* @param \Illuminate\Contracts\Events\Dispatcher $events
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function boot(DispatcherContract $events) {
|
||||
public function boot(DispatcherContract $events)
|
||||
{
|
||||
parent::boot($events);
|
||||
|
||||
//
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
|
||||
namespace App\Providers;
|
||||
|
||||
use Illuminate\Routing\Router;
|
||||
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
|
||||
use Illuminate\Routing\Router;
|
||||
|
||||
class RouteServiceProvider extends ServiceProvider {
|
||||
|
||||
class RouteServiceProvider extends ServiceProvider
|
||||
{
|
||||
/**
|
||||
* This namespace is applied to the controller routes in your routes file.
|
||||
*
|
||||
@@ -19,10 +19,12 @@ class RouteServiceProvider extends ServiceProvider {
|
||||
/**
|
||||
* Define your route model bindings, pattern filters, etc.
|
||||
*
|
||||
* @param \Illuminate\Routing\Router $router
|
||||
* @param \Illuminate\Routing\Router $router
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function boot(Router $router) {
|
||||
public function boot(Router $router)
|
||||
{
|
||||
//
|
||||
|
||||
parent::boot($router);
|
||||
@@ -31,13 +33,14 @@ class RouteServiceProvider extends ServiceProvider {
|
||||
/**
|
||||
* Define the routes for the application.
|
||||
*
|
||||
* @param \Illuminate\Routing\Router $router
|
||||
* @param \Illuminate\Routing\Router $router
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function map(Router $router) {
|
||||
$router->group(['namespace' => $this->namespace], function($router) {
|
||||
public function map(Router $router)
|
||||
{
|
||||
$router->group(['namespace' => $this->namespace], function ($router) {
|
||||
require app_path('Http/routes.php');
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user