| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 2e4b417 commit b3c65c7
612 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,8 +2,8 @@ | |||
| 2 | 2 | ||
| 3 | 3 | use Illuminate\Support\Manager; | |
| 4 | 4 | ||
| 5 | - class AuthManager extends Manager { | ||
| 6 | - | ||
| 5 | + class AuthManager extends Manager | ||
| 6 | + { | ||
| 7 | 7 | /** | |
| 8 | 8 | * Create a new driver instance. | |
| 9 | 9 | * | |
@@ -34,8 +34,7 @@ protected function callCustomCreator($driver) | |||
| 34 | 34 | { | |
| 35 | 35 | $custom = parent::callCustomCreator($driver); | |
| 36 | 36 | ||
| 37 | - if ($custom instanceof Guard) | ||
| 38 | - { | ||
| 37 | + if ($custom instanceof Guard) { | ||
| 39 | 38 | return $custom; | |
| 40 | 39 | } | |
| 41 | 40 | ||
@@ -115,5 +114,4 @@ public function setDefaultDriver($name) | |||
| 115 | 114 | { | |
| 116 | 115 | $this->app['config']['auth.driver'] = $name; | |
| 117 | 116 | } | |
| 118 | - | ||
| 119 | 117 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,8 +2,8 @@ | |||
| 2 | 2 | ||
| 3 | 3 | use Illuminate\Support\ServiceProvider; | |
| 4 | 4 | ||
| 5 | - class AuthServiceProvider extends ServiceProvider { | ||
| 6 | - | ||
| 5 | + class AuthServiceProvider extends ServiceProvider | ||
| 6 | + { | ||
| 7 | 7 | /** | |
| 8 | 8 | * Register the service provider. | |
| 9 | 9 | * | |
@@ -25,8 +25,7 @@ public function register() | |||
| 25 | 25 | */ | |
| 26 | 26 | protected function registerAuthenticator() | |
| 27 | 27 | { | |
| 28 | - $this->app->singleton('auth', function($app) | ||
| 29 | - { | ||
| 28 | + $this->app->singleton('auth', function ($app) { | ||
| 30 | 29 | // Once the authentication service has actually been requested by the developer | |
| 31 | 30 | // we will set a variable in the application indicating such. This helps us | |
| 32 | 31 | // know that we need to set any queued cookies in the after event later. | |
@@ -35,8 +34,7 @@ protected function registerAuthenticator() | |||
| 35 | 34 | return new AuthManager($app); | |
| 36 | 35 | }); | |
| 37 | 36 | ||
| 38 | - $this->app->singleton('auth.driver', function($app) | ||
| 39 | - { | ||
| 37 | + $this->app->singleton('auth.driver', function ($app) { | ||
| 40 | 38 | return $app['auth']->driver(); | |
| 41 | 39 | }); | |
| 42 | 40 | } | |
@@ -48,8 +46,7 @@ protected function registerAuthenticator() | |||
| 48 | 46 | */ | |
| 49 | 47 | protected function registerUserResolver() | |
| 50 | 48 | { | |
| 51 | - $this->app->bind('Illuminate\Contracts\Auth\Authenticatable', function($app) | ||
| 52 | - { | ||
| 49 | + $this->app->bind('Illuminate\Contracts\Auth\Authenticatable', function ($app) { | ||
| 53 | 50 | return $app['auth']->user(); | |
| 54 | 51 | }); | |
| 55 | 52 | } | |
@@ -61,13 +58,10 @@ protected function registerUserResolver() | |||
| 61 | 58 | */ | |
| 62 | 59 | protected function registerRequestRebindHandler() | |
| 63 | 60 | { | |
| 64 | - $this->app->rebinding('request', function($app, $request) | ||
| 65 | - { | ||
| 66 | - $request->setUserResolver(function() use ($app) | ||
| 67 | - { | ||
| 61 | + $this->app->rebinding('request', function ($app, $request) { | ||
| 62 | + $request->setUserResolver(function () use ($app) { | ||
| 68 | 63 | return $app['auth']->user(); | |
| 69 | 64 | }); | |
| 70 | 65 | }); | |
| 71 | 66 | } | |
| 72 | - | ||
| 73 | 67 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,7 +1,7 @@ | |||
| 1 | 1 | <?php namespace Illuminate\Auth; | |
| 2 | 2 | ||
| 3 | - trait Authenticatable { | ||
| 4 | - | ||
| 3 | + trait Authenticatable | ||
| 4 | + { | ||
| 5 | 5 | /** | |
| 6 | 6 | * Get the unique identifier for the user. | |
| 7 | 7 | * | |
@@ -52,5 +52,4 @@ public function getRememberTokenName() | |||
| 52 | 52 | { | |
| 53 | 53 | return 'remember_token'; | |
| 54 | 54 | } | |
| 55 | - | ||
| 56 | 55 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,8 +2,8 @@ | |||
| 2 | 2 | ||
| 3 | 3 | use Illuminate\Console\Command; | |
| 4 | 4 | ||
| 5 | - class ClearResetsCommand extends Command { | ||
| 6 | - | ||
| 5 | + class ClearResetsCommand extends Command | ||
| 6 | + { | ||
| 7 | 7 | /** | |
| 8 | 8 | * The console command name. | |
| 9 | 9 | * | |
@@ -29,5 +29,4 @@ public function fire() | |||
| 29 | 29 | ||
| 30 | 30 | $this->info('Expired reset tokens cleared!'); | |
| 31 | 31 | } | |
| 32 | - | ||
| 33 | 32 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -5,8 +5,8 @@ | |||
| 5 | 5 | use Illuminate\Contracts\Hashing\Hasher as HasherContract; | |
| 6 | 6 | use Illuminate\Contracts\Auth\Authenticatable as UserContract; | |
| 7 | 7 | ||
| 8 | - class DatabaseUserProvider implements UserProvider { | ||
| 9 | - | ||
| 8 | + class DatabaseUserProvider implements UserProvider | ||
| 9 | + { | ||
| 10 | 10 | /** | |
| 11 | 11 | * The active database connection. | |
| 12 | 12 | * | |
@@ -100,10 +100,8 @@ public function retrieveByCredentials(array $credentials) | |||
| 100 | 100 | // generic "user" object that will be utilized by the Guard instances. | |
| 101 | 101 | $query = $this->conn->table($this->table); | |
| 102 | 102 | ||
| 103 | - foreach ($credentials as $key => $value) | ||
| 104 | - { | ||
| 105 | - if ( ! str_contains($key, 'password')) | ||
| 106 | - { | ||
| 103 | + foreach ($credentials as $key => $value) { | ||
| 104 | + if (! str_contains($key, 'password')) { | ||
| 107 | 105 | $query->where($key, $value); | |
| 108 | 106 | } | |
| 109 | 107 | } | |
@@ -124,8 +122,7 @@ public function retrieveByCredentials(array $credentials) | |||
| 124 | 122 | */ | |
| 125 | 123 | protected function getGenericUser($user) | |
| 126 | 124 | { | |
| 127 | - if ($user !== null) | ||
| 128 | - { | ||
| 125 | + if ($user !== null) { | ||
| 129 | 126 | return new GenericUser((array) $user); | |
| 130 | 127 | } | |
| 131 | 128 | } | |
@@ -143,5 +140,4 @@ public function validateCredentials(UserContract $user, array $credentials) | |||
| 143 | 140 | ||
| 144 | 141 | return $this->hasher->check($plain, $user->getAuthPassword()); | |
| 145 | 142 | } | |
| 146 | - | ||
| 147 | 143 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4,8 +4,8 @@ | |||
| 4 | 4 | use Illuminate\Contracts\Hashing\Hasher as HasherContract; | |
| 5 | 5 | use Illuminate\Contracts\Auth\Authenticatable as UserContract; | |
| 6 | 6 | ||
| 7 | - class EloquentUserProvider implements UserProvider { | ||
| 8 | - | ||
| 7 | + class EloquentUserProvider implements UserProvider | ||
| 8 | + { | ||
| 9 | 9 | /** | |
| 10 | 10 | * The hasher implementation. | |
| 11 | 11 | * | |
@@ -88,10 +88,8 @@ public function retrieveByCredentials(array $credentials) | |||
| 88 | 88 | // Eloquent User "model" that will be utilized by the Guard instances. | |
| 89 | 89 | $query = $this->createModel()->newQuery(); | |
| 90 | 90 | ||
| 91 | - foreach ($credentials as $key => $value) | ||
| 92 | - { | ||
| 93 | - if ( ! str_contains($key, 'password')) | ||
| 94 | - { | ||
| 91 | + foreach ($credentials as $key => $value) { | ||
| 92 | + if (! str_contains($key, 'password')) { | ||
| 95 | 93 | $query->where($key, $value); | |
| 96 | 94 | } | |
| 97 | 95 | } | |
@@ -124,5 +122,4 @@ public function createModel() | |||
| 124 | 122 | ||
| 125 | 123 | return new $class; | |
| 126 | 124 | } | |
| 127 | - | ||
| 128 | 125 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3,8 +3,8 @@ | |||
| 3 | 3 | use Illuminate\Support\ServiceProvider; | |
| 4 | 4 | use Illuminate\Auth\Console\ClearResetsCommand; | |
| 5 | 5 | ||
| 6 | - class GeneratorServiceProvider extends ServiceProvider { | ||
| 7 | - | ||
| 6 | + class GeneratorServiceProvider extends ServiceProvider | ||
| 7 | + { | ||
| 8 | 8 | /** | |
| 9 | 9 | * Indicates if loading of the provider is deferred. | |
| 10 | 10 | * | |
@@ -28,8 +28,7 @@ class GeneratorServiceProvider extends ServiceProvider { | |||
| 28 | 28 | */ | |
| 29 | 29 | public function register() | |
| 30 | 30 | { | |
| 31 | - foreach ($this->commands as $command) | ||
| 32 | - { | ||
| 31 | + foreach ($this->commands as $command) { | ||
| 33 | 32 | $this->{"register{$command}Command"}(); | |
| 34 | 33 | } | |
| 35 | 34 | ||
@@ -45,8 +44,7 @@ public function register() | |||
| 45 | 44 | */ | |
| 46 | 45 | protected function registerClearResetsCommand() | |
| 47 | 46 | { | |
| 48 | - $this->app->singleton('command.auth.resets.clear', function() | ||
| 49 | - { | ||
| 47 | + $this->app->singleton('command.auth.resets.clear', function () { | ||
| 50 | 48 | return new ClearResetsCommand; | |
| 51 | 49 | }); | |
| 52 | 50 | } | |
@@ -62,5 +60,4 @@ public function provides() | |||
| 62 | 60 | 'command.auth.resets.clear', | |
| 63 | 61 | ]; | |
| 64 | 62 | } | |
| 65 | - | ||
| 66 | 63 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,8 +2,8 @@ | |||
| 2 | 2 | ||
| 3 | 3 | use Illuminate\Contracts\Auth\Authenticatable as UserContract; | |
| 4 | 4 | ||
| 5 | - class GenericUser implements UserContract { | ||
| 6 | - | ||
| 5 | + class GenericUser implements UserContract | ||
| 6 | + { | ||
| 7 | 7 | /** | |
| 8 | 8 | * All of the user's attributes. | |
| 9 | 9 | * | |
@@ -117,5 +117,4 @@ public function __unset($key) | |||
| 117 | 117 | { | |
| 118 | 118 | unset($this->attributes[$key]); | |
| 119 | 119 | } | |
| 120 | - | ||
| 121 | 120 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments