From fd1df2997266346267e282acc6ae51ff70c2f617 Mon Sep 17 00:00:00 2001 From: Given Ncube Date: Tue, 6 Feb 2024 11:11:49 +0200 Subject: [PATCH 1/2] fix: variables in stubs --- src/Commands/stubs/policy.user.stub | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Commands/stubs/policy.user.stub b/src/Commands/stubs/policy.user.stub index 36f1920..edf0076 100644 --- a/src/Commands/stubs/policy.user.stub +++ b/src/Commands/stubs/policy.user.stub @@ -28,9 +28,9 @@ class {{ class }} * @param {{ model }} $model * @return Response|bool */ - public function view({{ user }} $user, {{ userModel }} $model): bool + public function view({{ user }} $user, {{ model }} $model): bool { - return $user->can('view {{ modelSingularLowerCase }}', $model) + return $user->can('view {{ modelSingularLowerCase }}', $model); } /** From e7a7874a6a3a070da89ca055f27b653734abdc95 Mon Sep 17 00:00:00 2001 From: SlimGee Date: Tue, 6 Feb 2024 09:12:27 +0000 Subject: [PATCH 2/2] Fix styling --- src/Commands/LaravelAuthorizerCommand.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Commands/LaravelAuthorizerCommand.php b/src/Commands/LaravelAuthorizerCommand.php index f2f3d8c..79b5af8 100644 --- a/src/Commands/LaravelAuthorizerCommand.php +++ b/src/Commands/LaravelAuthorizerCommand.php @@ -163,7 +163,7 @@ public function getNamespace(): string /** * Get the class name for the policy. * - * @param string $name The name of the policy + * @param string $name The name of the policy */ public function getClassName(string $name): string { @@ -177,7 +177,7 @@ public function getClassName(string $name): string /** * Get the namespace for the model. * - * @param string $model The name of the model + * @param string $model The name of the model */ public function getNamespacedModel(string $model): string {