@@ -36,7 +36,7 @@ |
||
| 36 | 36 | */ |
| 37 | 37 | public function check($value, $hashedValue, array $options = array()) |
| 38 | 38 | { |
| 39 | - if ( strlen($hashedValue) <= 32 ) { |
|
| 39 | + if (strlen($hashedValue) <= 32) { |
|
| 40 | 40 | return $hashedValue == md5($value); |
| 41 | 41 | } |
| 42 | 42 | |
@@ -39,13 +39,13 @@ discard block |
||
| 39 | 39 | { |
| 40 | 40 | $this->mergeConfigFrom(__DIR__ . '/../config/wordpress-auth.php', 'wordpress-auth'); |
| 41 | 41 | |
| 42 | - Auth::extend('wordpress', function ($app) { |
|
| 42 | + Auth::extend('wordpress', function($app) { |
|
| 43 | 43 | return new WordpressGuard( |
| 44 | 44 | new EloquentWordpressUserProvider($app['wordpress-auth'], $config['model']) |
| 45 | 45 | ); |
| 46 | 46 | }); |
| 47 | 47 | |
| 48 | - $this->app->singleton('wordpress-auth', function ($app) { |
|
| 48 | + $this->app->singleton('wordpress-auth', function($app) { |
|
| 49 | 49 | $iteration_count = $app['config']->get('wordpress-auth.hash.iteration_count'); |
| 50 | 50 | $portable_hashes = $app['config']->get('wordpress-auth.hash.portable_hashes'); |
| 51 | 51 | |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | return new WordPressHasher($hasher); |
| 55 | 55 | }); |
| 56 | 56 | |
| 57 | - Auth::provider('eloquent.wordpress', function ($app, array $config) { |
|
| 57 | + Auth::provider('eloquent.wordpress', function($app, array $config) { |
|
| 58 | 58 | return new EloquentWordpressUserProvider($app['wordpress-auth'], $config['model']); |
| 59 | 59 | }); |
| 60 | 60 | } |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | | If you're using any other column name other than default `user_email` |
| 45 | 45 | | |
| 46 | 46 | */ |
| 47 | - 'email_column' => 'user_email', |
|
| 47 | + 'email_column' => 'user_email', |
|
| 48 | 48 | |
| 49 | 49 | /* |
| 50 | 50 | |-------------------------------------------------------------------------- |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | | If you're using any other column name other than default `user_pass` |
| 55 | 55 | | |
| 56 | 56 | */ |
| 57 | - 'password_column' => 'user_pass', |
|
| 57 | + 'password_column' => 'user_pass', |
|
| 58 | 58 | |
| 59 | 59 | ], |
| 60 | 60 | |