@@ -112,9 +112,9 @@ protected function makeRepository()
112
112
*/
113
113
public function handleIndexAction ($ request )
114
114
{
115
- if (! is_a ($ request , Request::class)){
116
- throw new ApiException ("Request should be an instance of Illuminate\Http\Request " );
117
- }
115
+ if (! is_a ($ request , Request::class)) {
116
+ throw new ApiException ("Request should be an instance of Illuminate\Http\Request " );
117
+ }
118
118
119
119
$ this ->request = $ request ;
120
120
$ this ->uriParser = new UriParser ($ this ->request , config ('laravel-api-controller.parameters.filter ' ));
@@ -140,9 +140,9 @@ public function handleIndexAction($request)
140
140
*/
141
141
public function handleStoreAction ($ request )
142
142
{
143
- if (! is_a ($ request , Request::class)){
144
- throw new ApiException ("Request should be an instance of Illuminate\Http\Request " );
145
- }
143
+ if (! is_a ($ request , Request::class)) {
144
+ throw new ApiException ("Request should be an instance of Illuminate\Http\Request " );
145
+ }
146
146
147
147
$ data = $ request ->all ();
148
148
@@ -182,9 +182,9 @@ public function handleStoreAction($request)
182
182
*/
183
183
public function handleShowAction ($ id , $ request )
184
184
{
185
- if (! is_a ($ request , Request::class)){
186
- throw new ApiException ("Request should be an instance of Illuminate\Http\Request " );
187
- }
185
+ if (! is_a ($ request , Request::class)) {
186
+ throw new ApiException ("Request should be an instance of Illuminate\Http\Request " );
187
+ }
188
188
189
189
$ this ->request = $ request ;
190
190
$ this ->uriParser = new UriParser ($ this ->request , config ('laravel-api-controller.parameters.filter ' ));
@@ -211,9 +211,9 @@ public function handleShowAction($id, $request)
211
211
*/
212
212
public function handleUpdateAction ($ id , $ request )
213
213
{
214
- if (! is_a ($ request , Request::class)){
215
- throw new ApiException ("Request should be an instance of Illuminate\Http\Request " );
216
- }
214
+ if (! is_a ($ request , Request::class)) {
215
+ throw new ApiException ("Request should be an instance of Illuminate\Http\Request " );
216
+ }
217
217
218
218
$ data = $ request ->all ();
219
219
@@ -256,9 +256,9 @@ public function handleUpdateAction($id, $request)
256
256
*/
257
257
public function handleDestroyAction ($ id , $ request )
258
258
{
259
- if (! is_a ($ request , Request::class)){
260
- throw new ApiException ("Request should be an instance of Illuminate\Http\Request " );
261
- }
259
+ if (! is_a ($ request , Request::class)) {
260
+ throw new ApiException ("Request should be an instance of Illuminate\Http\Request " );
261
+ }
262
262
263
263
try {
264
264
$ item = $ this ->repository ->getById ($ id );
0 commit comments