Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Mar 24, 2020
1 parent f2e8ca8 commit 9d36a36
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
6 changes: 0 additions & 6 deletions src/Illuminate/Foundation/Console/PolicyMakeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
14 changes: 7 additions & 7 deletions src/Illuminate/Foundation/Console/stubs/policy.stub
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}
Expand All @@ -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
Expand All @@ -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 }}
Expand All @@ -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 }}
Expand All @@ -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 }}
Expand All @@ -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 }}
Expand Down

0 comments on commit 9d36a36

Please sign in to comment.