Skip to content

Commit

Permalink
Merge pull request #220 from nxu/main
Browse files Browse the repository at this point in the history
⚰️ Remove invalid PHPDoc from stubs
  • Loading branch information
bezhanSalleh authored Sep 16, 2023
2 parents 7b1969c + 3529aa7 commit 62b5ee5
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 24 deletions.
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

0 comments on commit 62b5ee5

Please sign in to comment.