@@ -4,7 +4,8 @@ discard block |
||
4 | 4 | use Illuminate\Contracts\Auth\Guard; |
5 | 5 | use Illuminate\Http\RedirectResponse; |
6 | 6 | |
7 | -class RedirectIfAuthenticated { |
|
7 | +class RedirectIfAuthenticated |
|
8 | +{ |
|
8 | 9 | |
9 | 10 | /** |
10 | 11 | * The Guard implementation. |
@@ -33,8 +34,7 @@ discard block |
||
33 | 34 | */ |
34 | 35 | public function handle($request, Closure $next) |
35 | 36 | { |
36 | - if ($this->auth->check()) |
|
37 | - { |
|
37 | + if ($this->auth->check()) { |
|
38 | 38 | return new RedirectResponse(url('/home')); |
39 | 39 | } |
40 | 40 |
@@ -3,7 +3,8 @@ |
||
3 | 3 | use Closure; |
4 | 4 | use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken as BaseVerifier; |
5 | 5 | |
6 | -class VerifyCsrfToken extends BaseVerifier { |
|
6 | +class VerifyCsrfToken extends BaseVerifier |
|
7 | +{ |
|
7 | 8 | |
8 | 9 | /** |
9 | 10 | * Handle an incoming request. |
@@ -2,7 +2,8 @@ |
||
2 | 2 | |
3 | 3 | use Illuminate\Foundation\Http\FormRequest; |
4 | 4 | |
5 | -abstract class Request extends FormRequest { |
|
5 | +abstract class Request extends FormRequest |
|
6 | +{ |
|
6 | 7 | |
7 | 8 | // |
8 | 9 |
@@ -28,8 +28,7 @@ |
||
28 | 28 | if (\App::environment('production')) { |
29 | 29 | |
30 | 30 | //If the user doesn't have a slack username registered there is nothing we can do |
31 | - if (empty($event->notification->user()->slack_username)) |
|
32 | - { |
|
31 | + if (empty($event->notification->user()->slack_username)) { |
|
33 | 32 | return; |
34 | 33 | } |
35 | 34 |
@@ -2,7 +2,8 @@ |
||
2 | 2 | |
3 | 3 | use Illuminate\Support\ServiceProvider; |
4 | 4 | |
5 | -class AppServiceProvider extends ServiceProvider { |
|
5 | +class AppServiceProvider extends ServiceProvider |
|
6 | +{ |
|
6 | 7 | |
7 | 8 | /** |
8 | 9 | * Bootstrap any application services. |
@@ -3,7 +3,8 @@ discard block |
||
3 | 3 | use Illuminate\Bus\Dispatcher; |
4 | 4 | use Illuminate\Support\ServiceProvider; |
5 | 5 | |
6 | -class BusServiceProvider extends ServiceProvider { |
|
6 | +class BusServiceProvider extends ServiceProvider |
|
7 | +{ |
|
7 | 8 | |
8 | 9 | /** |
9 | 10 | * Bootstrap any application services. |
@@ -13,8 +14,7 @@ discard block |
||
13 | 14 | */ |
14 | 15 | public function boot(Dispatcher $dispatcher) |
15 | 16 | { |
16 | - $dispatcher->mapUsing(function($command) |
|
17 | - { |
|
17 | + $dispatcher->mapUsing(function($command) { |
|
18 | 18 | return Dispatcher::simpleMapping( |
19 | 19 | $command, 'BB\Commands', 'BB\Handlers\Commands' |
20 | 20 | ); |
@@ -2,7 +2,8 @@ |
||
2 | 2 | |
3 | 3 | use Illuminate\Support\ServiceProvider; |
4 | 4 | |
5 | -class ConfigServiceProvider extends ServiceProvider { |
|
5 | +class ConfigServiceProvider extends ServiceProvider |
|
6 | +{ |
|
6 | 7 | |
7 | 8 | /** |
8 | 9 | * Overwrite any vendor / package configuration. |
@@ -18,7 +18,8 @@ |
||
18 | 18 | use Illuminate\Contracts\Events\Dispatcher as DispatcherContract; |
19 | 19 | use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider; |
20 | 20 | |
21 | -class EventServiceProvider extends ServiceProvider { |
|
21 | +class EventServiceProvider extends ServiceProvider |
|
22 | +{ |
|
22 | 23 | |
23 | 24 | /** |
24 | 25 | * The event handler mappings for the application. |
@@ -3,7 +3,8 @@ discard block |
||
3 | 3 | use Illuminate\Routing\Router; |
4 | 4 | use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider; |
5 | 5 | |
6 | -class RouteServiceProvider extends ServiceProvider { |
|
6 | +class RouteServiceProvider extends ServiceProvider |
|
7 | +{ |
|
7 | 8 | |
8 | 9 | /** |
9 | 10 | * This namespace is applied to the controller routes in your routes file. |
@@ -35,8 +36,7 @@ discard block |
||
35 | 36 | */ |
36 | 37 | public function map(Router $router) |
37 | 38 | { |
38 | - $router->group(['namespace' => $this->namespace], function($router) |
|
39 | - { |
|
39 | + $router->group(['namespace' => $this->namespace], function($router) { |
|
40 | 40 | require app_path('Http/routes.php'); |
41 | 41 | }); |
42 | 42 | } |