File tree 2 files changed +2
-11
lines changed
2 files changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -40,9 +40,6 @@ public static function getNames($model): Collection
40
40
41
41
/**
42
42
* Get the model class associated with a given provider.
43
- *
44
- * @param string $provider
45
- * @return string|null
46
43
*/
47
44
protected static function getProviderModel (string $ provider ): ?string
48
45
{
@@ -70,7 +67,7 @@ protected static function getConfigAuthGuards(string $class): Collection
70
67
{
71
68
return collect (config ('auth.guards ' ))
72
69
->map (function ($ guard ) {
73
- if (!isset ($ guard ['provider ' ])) {
70
+ if (! isset ($ guard ['provider ' ])) {
74
71
return null ;
75
72
}
76
73
@@ -82,16 +79,13 @@ protected static function getConfigAuthGuards(string $class): Collection
82
79
83
80
/**
84
81
* Get the model associated with a given guard name.
85
- *
86
- * @param string $guard
87
- * @return string|null
88
82
*/
89
83
public static function getModelForGuard (string $ guard ): ?string
90
84
{
91
85
// Get the provider configuration for the given guard
92
86
$ provider = config ("auth.guards. {$ guard }.provider " );
93
87
94
- if (!$ provider ) {
88
+ if (! $ provider ) {
95
89
return null ;
96
90
}
97
91
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
3
if (! function_exists ('getModelForGuard ' )) {
4
- /**
5
- * @return string|null
6
- */
7
4
function getModelForGuard (string $ guard ): ?string
8
5
{
9
6
return Spatie \Permission \Guard::getModelForGuard ($ guard );
You can’t perform that action at this time.
0 commit comments