@@ -13,6 +13,9 @@ |
||
13 | 13 | protected $app; |
14 | 14 | |
15 | 15 | |
16 | + /** |
|
17 | + * @param \Illuminate\Foundation\Application $app |
|
18 | + */ |
|
16 | 19 | public function __construct($app) |
17 | 20 | { |
18 | 21 | $this->app = $app; |
@@ -7,7 +7,6 @@ |
||
7 | 7 | use Illuminate\Routing\Controller; |
8 | 8 | use Illuminate\Session\SessionManager; |
9 | 9 | use Laravel\Socialite\Facades\Socialite; |
10 | -use LGL\Core\Auth\Laravel\Facades\Sentinel; |
|
11 | 10 | |
12 | 11 | /** |
13 | 12 | * AuthController |
@@ -12,7 +12,7 @@ |
||
12 | 12 | */ |
13 | 13 | public function up() |
14 | 14 | { |
15 | - Schema::create('social_connections', function (Blueprint $table) { |
|
15 | + Schema::create('social_connections', function(Blueprint $table) { |
|
16 | 16 | $table->increments('id'); |
17 | 17 | $table->integer('user_id')->unsigned()->nullable(); |
18 | 18 | $table->string('social_id', 127)->index(); |
@@ -18,7 +18,7 @@ |
||
18 | 18 | $output->title('Starting Database Seed'); |
19 | 19 | |
20 | 20 | //---------------- Create user database ------------- |
21 | - Schema::create('users', function (Blueprint $table) { |
|
21 | + Schema::create('users', function(Blueprint $table) { |
|
22 | 22 | $table->increments('id'); |
23 | 23 | $table->string('name'); |
24 | 24 | $table->string('email')->unique(); |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -$factory->define(Humweb\Sociable\Tests\Stubs\User::class, function (Faker\Generator $faker) { |
|
3 | +$factory->define(Humweb\Sociable\Tests\Stubs\User::class, function(Faker\Generator $faker) { |
|
4 | 4 | return [ |
5 | 5 | 'name' => $faker->name, |
6 | 6 | 'email' => $faker->safeEmail, |
@@ -20,7 +20,7 @@ |
||
20 | 20 | */ |
21 | 21 | public function register() |
22 | 22 | { |
23 | - $this->app->singleton('social.auth', function ($app) { |
|
23 | + $this->app->singleton('social.auth', function($app) { |
|
24 | 24 | return new Manager($app); |
25 | 25 | }); |
26 | 26 | } |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | public function detachProviderByName($provider) |
68 | 68 | { |
69 | 69 | $count = 0; |
70 | - $this->social()->ofProvider($provider)->get()->each(function (SocialConnection $social) use ($count) { |
|
70 | + $this->social()->ofProvider($provider)->get()->each(function(SocialConnection $social) use ($count) { |
|
71 | 71 | $count = $count + $social->delete(); |
72 | 72 | }); |
73 | 73 | |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | public function detachProviderById($provider) |
86 | 86 | { |
87 | 87 | $count = 0; |
88 | - $this->social()->ofProviderId($provider)->get()->each(function (SocialConnection $social) use ($count) { |
|
88 | + $this->social()->ofProviderId($provider)->get()->each(function(SocialConnection $social) use ($count) { |
|
89 | 89 | $count = $count + $social->delete(); |
90 | 90 | }); |
91 | 91 |
@@ -40,7 +40,7 @@ |
||
40 | 40 | */ |
41 | 41 | public function map(Router $router) |
42 | 42 | { |
43 | - $router->group(['namespace' => $this->namespace], function ($router) { |
|
43 | + $router->group(['namespace' => $this->namespace], function($router) { |
|
44 | 44 | require __DIR__.'/Http/routes.php'; |
45 | 45 | }); |
46 | 46 | } |