diff --git a/stubs/DefaultPolicy.stub b/stubs/DefaultPolicy.stub index e4d34e34..dae3697d 100644 --- a/stubs/DefaultPolicy.stub +++ b/stubs/DefaultPolicy.stub @@ -14,7 +14,7 @@ class {{ modelPolicy }} * Determine whether the {{ auth_model_variable }} can view any models. * * @param \{{ auth_model_fqcn }} ${{ auth_model_variable }} - * @return \Illuminate\Auth\Access\Response|bool + * @return bool */ public function viewAny({{ auth_model_name }} ${{ auth_model_variable }}): bool { @@ -26,7 +26,7 @@ class {{ modelPolicy }} * * @param \{{ auth_model_fqcn }} ${{ auth_model_variable }} * @param \{{ model_fqcn }} ${{ model_variable }} - * @return \Illuminate\Auth\Access\Response|bool + * @return bool */ public function view({{ auth_model_name }} ${{ auth_model_variable }}, {{ model_name }} ${{ model_variable }}): bool { @@ -37,7 +37,7 @@ class {{ modelPolicy }} * Determine whether the {{ auth_model_variable }} can create models. * * @param \{{ auth_model_fqcn }} ${{ auth_model_variable }} - * @return \Illuminate\Auth\Access\Response|bool + * @return bool */ public function create({{ auth_model_name }} ${{ auth_model_variable }}): bool { @@ -49,7 +49,7 @@ class {{ modelPolicy }} * * @param \{{ auth_model_fqcn }} ${{ auth_model_variable }} * @param \{{ model_fqcn }} ${{ model_variable }} - * @return \Illuminate\Auth\Access\Response|bool + * @return bool */ public function update({{ auth_model_name }} ${{ auth_model_variable }}, {{ model_name }} ${{ model_variable }}): bool { @@ -61,7 +61,7 @@ class {{ modelPolicy }} * * @param \{{ auth_model_fqcn }} ${{ auth_model_variable }} * @param \{{ model_fqcn }} ${{ model_variable }} - * @return \Illuminate\Auth\Access\Response|bool + * @return bool */ public function delete({{ auth_model_name }} ${{ auth_model_variable }}, {{ model_name }} ${{ model_variable }}): bool { @@ -72,7 +72,7 @@ class {{ modelPolicy }} * Determine whether the {{ auth_model_variable }} can bulk delete. * * @param \{{ auth_model_fqcn }} ${{ auth_model_variable }} - * @return \Illuminate\Auth\Access\Response|bool + * @return bool */ public function deleteAny({{ auth_model_name }} ${{ auth_model_variable }}): bool { @@ -84,7 +84,7 @@ class {{ modelPolicy }} * * @param \{{ auth_model_fqcn }} ${{ auth_model_variable }} * @param \{{ model_fqcn }} ${{ model_variable }} - * @return \Illuminate\Auth\Access\Response|bool + * @return bool */ public function forceDelete({{ auth_model_name }} ${{ auth_model_variable }}, {{ model_name }} ${{ model_variable }}): bool { @@ -95,7 +95,7 @@ class {{ modelPolicy }} * Determine whether the {{ auth_model_variable }} can permanently bulk delete. * * @param \{{ auth_model_fqcn }} ${{ auth_model_variable }} - * @return \Illuminate\Auth\Access\Response|bool + * @return bool */ public function forceDeleteAny({{ auth_model_name }} ${{ auth_model_variable }}): bool { @@ -107,7 +107,7 @@ class {{ modelPolicy }} * * @param \{{ auth_model_fqcn }} ${{ auth_model_variable }} * @param \{{ model_fqcn }} ${{ model_variable }} - * @return \Illuminate\Auth\Access\Response|bool + * @return bool */ public function restore({{ auth_model_name }} ${{ auth_model_variable }}, {{ model_name }} ${{ model_variable }}): bool { @@ -118,7 +118,7 @@ class {{ modelPolicy }} * Determine whether the {{ auth_model_variable }} can bulk restore. * * @param \{{ auth_model_fqcn }} ${{ auth_model_variable }} - * @return \Illuminate\Auth\Access\Response|bool + * @return bool */ public function restoreAny({{ auth_model_name }} ${{ auth_model_variable }}): bool { @@ -130,7 +130,7 @@ class {{ modelPolicy }} * * @param \{{ auth_model_fqcn }} ${{ auth_model_variable }} * @param \{{ model_fqcn }} ${{ model_variable }} - * @return \Illuminate\Auth\Access\Response|bool + * @return bool */ public function replicate({{ auth_model_name }} ${{ auth_model_variable }}, {{ model_name }} ${{ model_variable }}): bool { @@ -141,7 +141,7 @@ class {{ modelPolicy }} * Determine whether the {{ auth_model_variable }} can reorder. * * @param \{{ auth_model_fqcn }} ${{ auth_model_variable }} - * @return \Illuminate\Auth\Access\Response|bool + * @return bool */ public function reorder({{ auth_model_name }} ${{ auth_model_variable }}): bool { diff --git a/stubs/UserPolicy.stub b/stubs/UserPolicy.stub index 99d3ead0..3d673201 100644 --- a/stubs/UserPolicy.stub +++ b/stubs/UserPolicy.stub @@ -14,7 +14,7 @@ class {{ modelPolicy }} * Determine whether the {{ auth_model_variable }} can view any models. * * @param \{{ auth_model_fqcn }} ${{ auth_model_variable }} - * @return \Illuminate\Auth\Access\Response|bool + * @return bool */ public function viewAny({{ auth_model_name }} ${{ auth_model_variable }}): bool { @@ -25,7 +25,7 @@ class {{ modelPolicy }} * Determine whether the {{ auth_model_variable }} can view the model. * * @param \{{ auth_model_fqcn }} ${{ auth_model_variable }} - * @return \Illuminate\Auth\Access\Response|bool + * @return bool */ public function view({{ auth_model_name }} ${{ auth_model_variable }}): bool { @@ -36,7 +36,7 @@ class {{ modelPolicy }} * Determine whether the {{ auth_model_variable }} can create models. * * @param \{{ auth_model_fqcn }} ${{ auth_model_variable }} - * @return \Illuminate\Auth\Access\Response|bool + * @return bool */ public function create({{ auth_model_name }} ${{ auth_model_variable }}): bool { @@ -47,7 +47,7 @@ class {{ modelPolicy }} * Determine whether the {{ auth_model_variable }} can update the model. * * @param \{{ auth_model_fqcn }} ${{ auth_model_variable }} - * @return \Illuminate\Auth\Access\Response|bool + * @return bool */ public function update({{ auth_model_name }} ${{ auth_model_variable }}): bool { @@ -58,7 +58,7 @@ class {{ modelPolicy }} * Determine whether the {{ auth_model_variable }} can delete the model. * * @param \{{ auth_model_fqcn }} ${{ auth_model_variable }} - * @return \Illuminate\Auth\Access\Response|bool + * @return bool */ public function delete({{ auth_model_name }} ${{ auth_model_variable }}): bool { @@ -69,7 +69,7 @@ class {{ modelPolicy }} * Determine whether the {{ auth_model_variable }} can bulk delete. * * @param \{{ auth_model_fqcn }} ${{ auth_model_variable }} - * @return \Illuminate\Auth\Access\Response|bool + * @return bool */ public function deleteAny({{ auth_model_name }} ${{ auth_model_variable }}): bool { @@ -80,7 +80,7 @@ class {{ modelPolicy }} * Determine whether the {{ auth_model_variable }} can permanently delete. * * @param \{{ auth_model_fqcn }} ${{ auth_model_variable }} - * @return \Illuminate\Auth\Access\Response|bool + * @return bool */ public function forceDelete({{ auth_model_name }} ${{ auth_model_variable }}): bool { @@ -91,7 +91,7 @@ class {{ modelPolicy }} * Determine whether the {{ auth_model_variable }} can permanently bulk delete. * * @param \{{ auth_model_fqcn }} ${{ auth_model_variable }} - * @return \Illuminate\Auth\Access\Response|bool + * @return bool */ public function forceDeleteAny({{ auth_model_name }} ${{ auth_model_variable }}): bool { @@ -102,7 +102,7 @@ class {{ modelPolicy }} * Determine whether the {{ auth_model_variable }} can restore. * * @param \{{ auth_model_fqcn }} ${{ auth_model_variable }} - * @return \Illuminate\Auth\Access\Response|bool + * @return bool */ public function restore({{ auth_model_name }} ${{ auth_model_variable }}): bool { @@ -113,7 +113,7 @@ class {{ modelPolicy }} * Determine whether the {{ auth_model_variable }} can bulk restore. * * @param \{{ auth_model_fqcn }} ${{ auth_model_variable }} - * @return \Illuminate\Auth\Access\Response|bool + * @return bool */ public function restoreAny({{ auth_model_name }} ${{ auth_model_variable }}): bool { @@ -124,7 +124,7 @@ class {{ modelPolicy }} * Determine whether the {{ auth_model_variable }} can bulk restore. * * @param \{{ auth_model_fqcn }} ${{ auth_model_variable }} - * @return \Illuminate\Auth\Access\Response|bool + * @return bool */ public function replicate({{ auth_model_name }} ${{ auth_model_variable }}): bool { @@ -135,7 +135,7 @@ class {{ modelPolicy }} * Determine whether the {{ auth_model_variable }} can reorder. * * @param \{{ auth_model_fqcn }} ${{ auth_model_variable }} - * @return \Illuminate\Auth\Access\Response|bool + * @return bool */ public function reorder({{ auth_model_name }} ${{ auth_model_variable }}): bool {