Skip to content

Commit 9d36a36

Browse files
committed
formatting
1 parent f2e8ca8 commit 9d36a36

File tree

2 files changed

+7
-13
lines changed

2 files changed

+7
-13
lines changed

src/Illuminate/Foundation/Console/PolicyMakeCommand.php

-6
Original file line numberDiff line numberDiff line change
@@ -100,12 +100,6 @@ protected function replaceModel($stub, $model)
100100
'dummyModel' => Str::camel($dummyModel),
101101
'{{ modelVariable }}' => Str::camel($dummyModel),
102102
'{{modelVariable}}' => Str::camel($dummyModel),
103-
'DocDummyModel' => Str::snake($dummyModel, ' '),
104-
'{{ modelDoc }}' => Str::snake($dummyModel, ' '),
105-
'{{modelDoc}}' => Str::snake($dummyModel, ' '),
106-
'DocDummyPluralModel' => Str::snake(Str::pluralStudly($dummyModel), ' '),
107-
'{{ modelDocPlural }}' => Str::snake(Str::pluralStudly($dummyModel), ' '),
108-
'{{modelDocPlural}}' => Str::snake(Str::pluralStudly($dummyModel), ' '),
109103
'DummyUser' => $dummyUser,
110104
'{{ user }}' => $dummyUser,
111105
'{{user}}' => $dummyUser,

src/Illuminate/Foundation/Console/stubs/policy.stub

+7-7
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class {{ class }}
1111
use HandlesAuthorization;
1212

1313
/**
14-
* Determine whether the user can view any {{ modelDocPlural }}.
14+
* Determine whether the user can view any models.
1515
*
1616
* @param \{{ namespacedUserModel }} $user
1717
* @return mixed
@@ -22,7 +22,7 @@ class {{ class }}
2222
}
2323

2424
/**
25-
* Determine whether the user can view the {{ modelDoc }}.
25+
* Determine whether the user can view the model.
2626
*
2727
* @param \{{ namespacedUserModel }} $user
2828
* @param \{{ namespacedModel }} ${{ modelVariable }}
@@ -34,7 +34,7 @@ class {{ class }}
3434
}
3535

3636
/**
37-
* Determine whether the user can create {{ modelDocPlural }}.
37+
* Determine whether the user can create models.
3838
*
3939
* @param \{{ namespacedUserModel }} $user
4040
* @return mixed
@@ -45,7 +45,7 @@ class {{ class }}
4545
}
4646

4747
/**
48-
* Determine whether the user can update the {{ modelDoc }}.
48+
* Determine whether the user can update the model.
4949
*
5050
* @param \{{ namespacedUserModel }} $user
5151
* @param \{{ namespacedModel }} ${{ modelVariable }}
@@ -57,7 +57,7 @@ class {{ class }}
5757
}
5858

5959
/**
60-
* Determine whether the user can delete the {{ modelDoc }}.
60+
* Determine whether the user can delete the model.
6161
*
6262
* @param \{{ namespacedUserModel }} $user
6363
* @param \{{ namespacedModel }} ${{ modelVariable }}
@@ -69,7 +69,7 @@ class {{ class }}
6969
}
7070

7171
/**
72-
* Determine whether the user can restore the {{ modelDoc }}.
72+
* Determine whether the user can restore the model.
7373
*
7474
* @param \{{ namespacedUserModel }} $user
7575
* @param \{{ namespacedModel }} ${{ modelVariable }}
@@ -81,7 +81,7 @@ class {{ class }}
8181
}
8282

8383
/**
84-
* Determine whether the user can permanently delete the {{ modelDoc }}.
84+
* Determine whether the user can permanently delete the model.
8585
*
8686
* @param \{{ namespacedUserModel }} $user
8787
* @param \{{ namespacedModel }} ${{ modelVariable }}

0 commit comments

Comments
 (0)