@@ -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 | } |
@@ -57,7 +57,7 @@ |
||
| 57 | 57 | protected function unauthenticated($request, AuthenticationException $exception) |
| 58 | 58 | { |
| 59 | 59 | if ($request->expectsJson()) { |
| 60 | - return response()->json(['error' => 'Unauthenticated.'], 401); |
|
| 60 | + return response()->json([ 'error' => 'Unauthenticated.' ], 401); |
|
| 61 | 61 | } |
| 62 | 62 | |
| 63 | 63 | return redirect()->guest('login'); |
@@ -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 | /** |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('password_resets', function (Blueprint $table) { |
|
| 16 | + Schema::create('password_resets', function(Blueprint $table) { |
|
| 17 | 17 | $table->string('email')->index(); |
| 18 | 18 | $table->string('token')->index(); |
| 19 | 19 | $table->timestamp('created_at')->nullable(); |