From 9d36a369d377044d0f468d1f02fa317cbb93571f Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Tue, 24 Mar 2020 12:02:57 -0500 Subject: [PATCH] formatting --- .../Foundation/Console/PolicyMakeCommand.php | 6 ------ .../Foundation/Console/stubs/policy.stub | 14 +++++++------- 2 files changed, 7 insertions(+), 13 deletions(-) diff --git a/src/Illuminate/Foundation/Console/PolicyMakeCommand.php b/src/Illuminate/Foundation/Console/PolicyMakeCommand.php index e13db3c49ac5..ed401e106112 100644 --- a/src/Illuminate/Foundation/Console/PolicyMakeCommand.php +++ b/src/Illuminate/Foundation/Console/PolicyMakeCommand.php @@ -100,12 +100,6 @@ protected function replaceModel($stub, $model) 'dummyModel' => Str::camel($dummyModel), '{{ modelVariable }}' => Str::camel($dummyModel), '{{modelVariable}}' => Str::camel($dummyModel), - 'DocDummyModel' => Str::snake($dummyModel, ' '), - '{{ modelDoc }}' => Str::snake($dummyModel, ' '), - '{{modelDoc}}' => Str::snake($dummyModel, ' '), - 'DocDummyPluralModel' => Str::snake(Str::pluralStudly($dummyModel), ' '), - '{{ modelDocPlural }}' => Str::snake(Str::pluralStudly($dummyModel), ' '), - '{{modelDocPlural}}' => Str::snake(Str::pluralStudly($dummyModel), ' '), 'DummyUser' => $dummyUser, '{{ user }}' => $dummyUser, '{{user}}' => $dummyUser, diff --git a/src/Illuminate/Foundation/Console/stubs/policy.stub b/src/Illuminate/Foundation/Console/stubs/policy.stub index 37c6f52b6be9..969963e2dec1 100644 --- a/src/Illuminate/Foundation/Console/stubs/policy.stub +++ b/src/Illuminate/Foundation/Console/stubs/policy.stub @@ -11,7 +11,7 @@ class {{ class }} use HandlesAuthorization; /** - * Determine whether the user can view any {{ modelDocPlural }}. + * Determine whether the user can view any models. * * @param \{{ namespacedUserModel }} $user * @return mixed @@ -22,7 +22,7 @@ class {{ class }} } /** - * Determine whether the user can view the {{ modelDoc }}. + * Determine whether the user can view the model. * * @param \{{ namespacedUserModel }} $user * @param \{{ namespacedModel }} ${{ modelVariable }} @@ -34,7 +34,7 @@ class {{ class }} } /** - * Determine whether the user can create {{ modelDocPlural }}. + * Determine whether the user can create models. * * @param \{{ namespacedUserModel }} $user * @return mixed @@ -45,7 +45,7 @@ class {{ class }} } /** - * Determine whether the user can update the {{ modelDoc }}. + * Determine whether the user can update the model. * * @param \{{ namespacedUserModel }} $user * @param \{{ namespacedModel }} ${{ modelVariable }} @@ -57,7 +57,7 @@ class {{ class }} } /** - * Determine whether the user can delete the {{ modelDoc }}. + * Determine whether the user can delete the model. * * @param \{{ namespacedUserModel }} $user * @param \{{ namespacedModel }} ${{ modelVariable }} @@ -69,7 +69,7 @@ class {{ class }} } /** - * Determine whether the user can restore the {{ modelDoc }}. + * Determine whether the user can restore the model. * * @param \{{ namespacedUserModel }} $user * @param \{{ namespacedModel }} ${{ modelVariable }} @@ -81,7 +81,7 @@ class {{ class }} } /** - * Determine whether the user can permanently delete the {{ modelDoc }}. + * Determine whether the user can permanently delete the model. * * @param \{{ namespacedUserModel }} $user * @param \{{ namespacedModel }} ${{ modelVariable }}