Skip to content

Commit addf63f

Browse files
drbytegithub-actions[bot]
authored andcommitted
Fix styling
1 parent 6c7b1de commit addf63f

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

src/Guard.php

+2-8
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,6 @@ public static function getNames($model): Collection
4040

4141
/**
4242
* Get the model class associated with a given provider.
43-
*
44-
* @param string $provider
45-
* @return string|null
4643
*/
4744
protected static function getProviderModel(string $provider): ?string
4845
{
@@ -70,7 +67,7 @@ protected static function getConfigAuthGuards(string $class): Collection
7067
{
7168
return collect(config('auth.guards'))
7269
->map(function ($guard) {
73-
if (!isset($guard['provider'])) {
70+
if (! isset($guard['provider'])) {
7471
return null;
7572
}
7673

@@ -82,16 +79,13 @@ protected static function getConfigAuthGuards(string $class): Collection
8279

8380
/**
8481
* Get the model associated with a given guard name.
85-
*
86-
* @param string $guard
87-
* @return string|null
8882
*/
8983
public static function getModelForGuard(string $guard): ?string
9084
{
9185
// Get the provider configuration for the given guard
9286
$provider = config("auth.guards.{$guard}.provider");
9387

94-
if (!$provider) {
88+
if (! $provider) {
9589
return null;
9690
}
9791

src/helpers.php

-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
<?php
22

33
if (! function_exists('getModelForGuard')) {
4-
/**
5-
* @return string|null
6-
*/
74
function getModelForGuard(string $guard): ?string
85
{
96
return Spatie\Permission\Guard::getModelForGuard($guard);

0 commit comments

Comments
 (0)