Skip to content

Commit 12f70d0

Browse files
authored
Apply fixes from StyleCI (#27)
1 parent 6bf75c5 commit 12f70d0

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/Http/Controllers/Api/Controller.php

+1-5
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,6 @@ public function handleIndexAction($request)
111111
$this->authoriseUserAction('viewAny');
112112
$this->getUriParser($request);
113113

114-
115114
$this->parseIncludeParams();
116115
$this->parseSortParams();
117116
$this->parseFilterParams();
@@ -133,7 +132,6 @@ public function handleIndexAction($request)
133132
*/
134133
public function handleStoreAction($request)
135134
{
136-
137135
$this->validateRequestType($request);
138136
$this->authoriseUserAction('create');
139137

@@ -158,7 +156,6 @@ public function handleStoreAction($request)
158156
DB::beginTransaction();
159157

160158
try {
161-
162159
$item = self::$model->create($insert);
163160

164161
$this->storeRelated($item, $diff, $data);
@@ -174,6 +171,7 @@ public function handleStoreAction($request)
174171
throw new ApiException($message);
175172
} catch (\Exception $exception) {
176173
DB::rollback();
174+
177175
return $this->errorWrongArgs($exception->getMessage());
178176
}
179177
}
@@ -222,7 +220,6 @@ public function handleUpdateAction($id, $request)
222220

223221
$this->validate($request, $this->rulesForCreate());
224222

225-
226223
$data = $request->all();
227224

228225
if (empty($data)) {
@@ -247,7 +244,6 @@ public function handleUpdateAction($id, $request)
247244

248245
$this->unguardIfNeeded();
249246

250-
251247
DB::beginTransaction();
252248

253249
try {

0 commit comments

Comments
 (0)