Passed
Branch master (4503cc)
by Monney
06:14
created
Category
migrations/2018_06_29_155339_add_socialites_columns_to_users.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
      */
14 14
     public function up()
15 15
     {
16
-        Schema::table(config('laravel-oauth.users.table'), function (Blueprint $table) {
16
+        Schema::table(config('laravel-oauth.users.table'), function(Blueprint $table) {
17 17
             foreach (config('laravel-oauth.providers') as $provider => $status) {
18 18
                 if ($status === true) {
19 19
                     $table->string($provider.'_id')->nullable();
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
      */
30 30
     public function down()
31 31
     {
32
-        Schema::table(config('laravel-oauth.users.table'), function (Blueprint $table) {
32
+        Schema::table(config('laravel-oauth.users.table'), function(Blueprint $table) {
33 33
             foreach (config('laravel-oauth.providers') as $provider => $status) {
34 34
                 if (Schema::hasColumn(config('laravel-oauth.users.table'), $provider.'_id')) {
35 35
                     $table->dropColumn($provider.'_id');
Please login to merge, or discard this patch.
src/LaravelOAuthServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
         $loader->alias('Socialite', \Laravel\Socialite\Facades\Socialite::class);
61 61
 
62 62
         // Register the service the package provides.
63
-        $this->app->singleton('laravelsocialite', function ($app) {
63
+        $this->app->singleton('laravelsocialite', function($app) {
64 64
             return new LaravelSocialite;
65 65
         });
66 66
         // Create aliase for the package provider
@@ -74,6 +74,6 @@  discard block
 block discarded – undo
74 74
      */
75 75
     public function provides()
76 76
     {
77
-        return ['laravelsocialite'];
77
+        return [ 'laravelsocialite' ];
78 78
     }
79 79
 }
Please login to merge, or discard this patch.
src/LaravelSocialite.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
                     $buttons .= "<i class='social-{$provider}'></i>";
30 30
                 }
31 31
 
32
-                $buttons .= trans("laravel-oauth::word.{$type}", ['provider' => $provider]);
32
+                $buttons .= trans("laravel-oauth::word.{$type}", [ 'provider' => $provider ]);
33 33
                 $buttons .= '</a>';
34 34
             }
35 35
         }
Please login to merge, or discard this patch.
src/Traits/OAuthSocialite.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
         $provider = strtolower($provider);
20 20
 
21 21
         if ($provider === 'facebook') {
22
-            return Socialite::driver('facebook')->with(['auth_type' => 'rerequest'])->redirect();
22
+            return Socialite::driver('facebook')->with([ 'auth_type' => 'rerequest' ])->redirect();
23 23
         }
24 24
 
25 25
         return Socialite::driver($provider)->redirect();
Please login to merge, or discard this patch.
src/Providers/BladeServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
      */
15 15
     public function boot()
16 16
     {
17
-        Blade::directive('socialite', function ($expression) {
17
+        Blade::directive('socialite', function($expression) {
18 18
             // Check user needs :login or :register text
19 19
             return "<?php echo LaravelSocialite::socialiteButtons($expression); ?>";
20 20
         });
Please login to merge, or discard this patch.