@@ -19,7 +19,7 @@ |
||
19 | 19 | /* |
20 | 20 | * Authenticate the user's personal channel... |
21 | 21 | */ |
22 | - Broadcast::channel('App.User.*', function ($user, $userId) { |
|
22 | + Broadcast::channel('App.User.*', function($user, $userId) { |
|
23 | 23 | return (int) $user->id === (int) $userId; |
24 | 24 | }); |
25 | 25 | } |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | Route::group([ |
55 | 55 | 'middleware' => 'web', |
56 | 56 | 'namespace' => $this->namespace, |
57 | - ], function ($router) { |
|
57 | + ], function($router) { |
|
58 | 58 | require base_path('routes/web.php'); |
59 | 59 | }); |
60 | 60 | } |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | 'middleware' => 'api', |
73 | 73 | 'namespace' => $this->namespace, |
74 | 74 | 'prefix' => 'api', |
75 | - ], function ($router) { |
|
75 | + ], function($router) { |
|
76 | 76 | require base_path('routes/api.php'); |
77 | 77 | }); |
78 | 78 | } |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | */ |
21 | 21 | public function register() |
22 | 22 | { |
23 | - $this->app->singleton('App\Hacktoberfest\GitHub\PullRequestChecker', function ($app) { |
|
23 | + $this->app->singleton('App\Hacktoberfest\GitHub\PullRequestChecker', function($app) { |
|
24 | 24 | return new PullRequestChecker($app->make('cache')); |
25 | 25 | }); |
26 | 26 | } |
@@ -32,6 +32,6 @@ discard block |
||
32 | 32 | */ |
33 | 33 | public function provides() |
34 | 34 | { |
35 | - return [PullRequestChecker::class]; |
|
35 | + return [ PullRequestChecker::class ]; |
|
36 | 36 | } |
37 | 37 | } |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | protected function createGithubDriver() |
15 | 15 | { |
16 | - $config = $this->app['config']['services.github']; |
|
16 | + $config = $this->app[ 'config' ][ 'services.github' ]; |
|
17 | 17 | |
18 | 18 | return $this->buildProvider( |
19 | 19 | 'App\Hacktoberfest\OAuth\Providers\ScopelessGithubProvider', |
@@ -12,5 +12,5 @@ |
||
12 | 12 | * |
13 | 13 | * @var array |
14 | 14 | */ |
15 | - protected $scopes = []; |
|
15 | + protected $scopes = [ ]; |
|
16 | 16 | } |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function register() |
15 | 15 | { |
16 | - $this->app->singleton('Laravel\Socialite\Contracts\Factory', function ($app) { |
|
16 | + $this->app->singleton('Laravel\Socialite\Contracts\Factory', function($app) { |
|
17 | 17 | return new SocialiteManager($app); |
18 | 18 | }); |
19 | 19 | } |
@@ -16,7 +16,7 @@ |
||
16 | 16 | */ |
17 | 17 | public function redirectToProvider() |
18 | 18 | { |
19 | - return Socialite::driver('github')->scopes([])->redirect(); |
|
19 | + return Socialite::driver('github')->scopes([ ])->redirect(); |
|
20 | 20 | } |
21 | 21 | |
22 | 22 | /** |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | public function render($request, Exception $exception) |
52 | 52 | { |
53 | 53 | if (!app()->environment('local')) { |
54 | - return response()->view('errors.500', [], 500); |
|
54 | + return response()->view('errors.500', [ ], 500); |
|
55 | 55 | } |
56 | 56 | |
57 | 57 | return parent::render($request, $exception); |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | protected function unauthenticated($request, AuthenticationException $exception) |
68 | 68 | { |
69 | 69 | if ($request->expectsJson()) { |
70 | - return response()->json(['error' => 'Unauthenticated.'], 401); |
|
70 | + return response()->json([ 'error' => 'Unauthenticated.' ], 401); |
|
71 | 71 | } |
72 | 72 | |
73 | 73 | return redirect()->guest('login'); |