@@ -33,7 +33,7 @@ |
||
| 33 | 33 | /** |
| 34 | 34 | * @var array |
| 35 | 35 | */ |
| 36 | - protected $guarded = []; |
|
| 36 | + protected $guarded = [ ]; |
|
| 37 | 37 | |
| 38 | 38 | protected $casts = [ |
| 39 | 39 | 'online' => 'boolean', |
@@ -25,11 +25,11 @@ |
||
| 25 | 25 | { |
| 26 | 26 | $this->app->register(\Auth0\Login\LoginServiceProvider::class); |
| 27 | 27 | |
| 28 | - $this->app->bind(\Auth0\Login\Contract\Auth0UserRepository::class, function () { |
|
| 28 | + $this->app->bind(\Auth0\Login\Contract\Auth0UserRepository::class, function() { |
|
| 29 | 29 | return new Auth0Service(new UserService()); |
| 30 | 30 | }); |
| 31 | 31 | |
| 32 | - $this->app->bind(Auth0ServiceContract::class, function () { |
|
| 32 | + $this->app->bind(Auth0ServiceContract::class, function() { |
|
| 33 | 33 | return new Auth0Service(new UserService()); |
| 34 | 34 | }); |
| 35 | 35 | } |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | | This is used to verify the decoded tokens when using RS256 |
| 60 | 60 | | |
| 61 | 61 | */ |
| 62 | - 'authorized_issuers' => [env('AUTH0_DOMAIN')], |
|
| 62 | + 'authorized_issuers' => [ env('AUTH0_DOMAIN') ], |
|
| 63 | 63 | |
| 64 | 64 | /* |
| 65 | 65 | |-------------------------------------------------------------------------- |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | | Token decoding algorithms supported by your API |
| 86 | 86 | | |
| 87 | 87 | */ |
| 88 | - 'supported_algs' => ['RS256'], |
|
| 88 | + 'supported_algs' => [ 'RS256' ], |
|
| 89 | 89 | |
| 90 | 90 | /* |
| 91 | 91 | |-------------------------------------------------------------------------- |
@@ -13,11 +13,11 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | |
| 15 | 15 | 'supportsCredentials' => true, |
| 16 | - 'allowedOrigins' => ['*'], |
|
| 17 | - 'allowedOriginsPatterns' => [], |
|
| 18 | - 'allowedHeaders' => ['*'], |
|
| 19 | - 'allowedMethods' => ['*'], |
|
| 20 | - 'exposedHeaders' => [], |
|
| 16 | + 'allowedOrigins' => [ '*' ], |
|
| 17 | + 'allowedOriginsPatterns' => [ ], |
|
| 18 | + 'allowedHeaders' => [ '*' ], |
|
| 19 | + 'allowedMethods' => [ '*' ], |
|
| 20 | + 'exposedHeaders' => [ ], |
|
| 21 | 21 | 'maxAge' => 0, |
| 22 | 22 | |
| 23 | 23 | ]; |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | 'production' => [ |
| 75 | 75 | 'supervisor-1' => [ |
| 76 | 76 | 'connection' => 'redis', |
| 77 | - 'queue' => ['default'], |
|
| 77 | + 'queue' => [ 'default' ], |
|
| 78 | 78 | 'balance' => 'simple', |
| 79 | 79 | 'processes' => 10, |
| 80 | 80 | 'tries' => 3, |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | 'local' => [ |
| 85 | 85 | 'supervisor-1' => [ |
| 86 | 86 | 'connection' => 'redis', |
| 87 | - 'queue' => ['default'], |
|
| 87 | + 'queue' => [ 'default' ], |
|
| 88 | 88 | 'balance' => 'simple', |
| 89 | 89 | 'processes' => 3, |
| 90 | 90 | 'tries' => 3, |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::create('users', function (Blueprint $table) { |
|
| 15 | + Schema::create('users', function(Blueprint $table) { |
|
| 16 | 16 | $table->increments('id'); |
| 17 | 17 | $table->string('identity_id')->unique(); |
| 18 | 18 | $table->string('email'); |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | $this->artisan('migrate:refresh'); |
| 33 | 33 | } |
| 34 | 34 | $this->artisan('db:seed'); |
| 35 | - $this->beforeApplicationDestroyed(function () { |
|
| 35 | + $this->beforeApplicationDestroyed(function() { |
|
| 36 | 36 | RefreshDatabaseState::$migrated = false; |
| 37 | 37 | }); |
| 38 | 38 | } |
@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | /** |
| 25 | 25 | * ModelCache constructor. |
| 26 | 26 | */ |
| 27 | - public function __construct(string $model, array $indexes = [], $cacheTime = null) |
|
| 27 | + public function __construct(string $model, array $indexes = [ ], $cacheTime = null) |
|
| 28 | 28 | { |
| 29 | 29 | $this->model = $model; |
| 30 | 30 | $this->secondaryIndexes = $indexes; |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | protected function eagerLoadRelations($model) |
| 71 | 71 | { |
| 72 | 72 | if ($model !== null) { |
| 73 | - return $model::eagerLoadRelations([$model])[0]; |
|
| 73 | + return $model::eagerLoadRelations([ $model ])[ 0 ]; |
|
| 74 | 74 | } |
| 75 | 75 | } |
| 76 | 76 | |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | |
| 35 | 35 | $this->resolver->setDefaultConnection($this->getDatabase()); |
| 36 | 36 | |
| 37 | - Model::unguarded(function () { |
|
| 37 | + Model::unguarded(function() { |
|
| 38 | 38 | foreach ($this->getSeeders() as $seeder) { |
| 39 | 39 | $seeder = $this->laravel->make($seeder); |
| 40 | 40 | if (!isset($seeder->enabled) || $seeder->enabled) { |
@@ -50,6 +50,6 @@ discard block |
||
| 50 | 50 | { |
| 51 | 51 | $this->service = $this->laravel->make(BootstrapRegistrarService::class); |
| 52 | 52 | |
| 53 | - return $this->service->getSeeders() ?? []; |
|
| 53 | + return $this->service->getSeeders() ?? [ ]; |
|
| 54 | 54 | } |
| 55 | 55 | } |