Skip to content

Commit 436ba81

Browse files
authored
Apply fixes from StyleCI (pterodactyl#351)
1 parent 1c47b2e commit 436ba81

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

app/Http/Controllers/Admin/PackController.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public function create(Request $request)
102102
Alert::success('Pack successfully created on the system.')->flash();
103103

104104
return redirect()->route('admin.packs.view', $pack->id);
105-
} catch(DisplayValidationException $ex) {
105+
} catch (DisplayValidationException $ex) {
106106
return redirect()->route('admin.packs.new')->withErrors(json_decode($ex->getMessage()))->withInput();
107107
} catch (DisplayException $ex) {
108108
Alert::danger($ex->getMessage())->flash();
@@ -144,7 +144,7 @@ public function update(Request $request, $id)
144144
if ($request->input('action') !== 'delete') {
145145
$pack = $repo->update($id, $request->intersect([
146146
'name', 'description', 'version',
147-
'option_id', 'selectable', 'visible', 'locked'
147+
'option_id', 'selectable', 'visible', 'locked',
148148
]));
149149
Alert::success('Pack successfully updated.')->flash();
150150
} else {
@@ -153,7 +153,7 @@ public function update(Request $request, $id)
153153

154154
return redirect()->route('admin.packs');
155155
}
156-
} catch(DisplayValidationException $ex) {
156+
} catch (DisplayValidationException $ex) {
157157
return redirect()->route('admin.packs.view', $id)->withErrors(json_decode($ex->getMessage()));
158158
} catch (DisplayException $ex) {
159159
Alert::danger($ex->getMessage())->flash();
@@ -211,5 +211,4 @@ public function export(Request $request, $id, $files = false)
211211
])->deleteFileAfterSend(true);
212212
}
213213
}
214-
215214
}

app/Models/ServiceVariable.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ class ServiceVariable extends Model
4343
protected $guarded = ['id', 'created_at', 'updated_at'];
4444

4545
/**
46-
* Cast values to correct type.
47-
*
48-
* @var array
49-
*/
46+
* Cast values to correct type.
47+
*
48+
* @var array
49+
*/
5050
protected $casts = [
5151
'option_id' => 'integer',
5252
'user_viewable' => 'integer',

0 commit comments

Comments
 (0)