File tree Expand file tree Collapse file tree 2 files changed +2
-11
lines changed Expand file tree Collapse file tree 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
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
Original file line number Diff line number Diff line change 11<?php
22
33if (! function_exists ('getModelForGuard ' )) {
4- /**
5- * @return string|null
6- */
74 function getModelForGuard (string $ guard ): ?string
85 {
96 return Spatie \Permission \Guard::getModelForGuard ($ guard );
You can’t perform that action at this time.
0 commit comments