Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

⚰️ Remove invalid PHPDoc from stubs #220

Merged
merged 1 commit into from
Sep 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions stubs/DefaultPolicy.stub
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand All @@ -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
{
Expand All @@ -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
{
Expand All @@ -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
{
Expand All @@ -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
{
Expand All @@ -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
{
Expand All @@ -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
{
Expand All @@ -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
{
Expand All @@ -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
{
Expand All @@ -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
{
Expand All @@ -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
{
Expand All @@ -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
{
Expand Down
24 changes: 12 additions & 12 deletions stubs/UserPolicy.stub
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand All @@ -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
{
Expand All @@ -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
{
Expand All @@ -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
{
Expand All @@ -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
{
Expand All @@ -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
{
Expand All @@ -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
{
Expand All @@ -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
{
Expand All @@ -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
{
Expand All @@ -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
{
Expand All @@ -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
{
Expand All @@ -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
{
Expand Down