mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-14 12:23:44 +02:00
Apply fixes from StyleCI
This commit is contained in:
committed by
StyleCI Bot
parent
fc38b09e1f
commit
efda0dd009
@@ -125,7 +125,7 @@ class Service
|
||||
|
||||
$validator = Validator::make($data, [
|
||||
'file' => 'required|in:index,main',
|
||||
'contents' => 'required|string'
|
||||
'contents' => 'required|string',
|
||||
]);
|
||||
|
||||
if ($validator->fails()) {
|
||||
@@ -139,10 +139,9 @@ class Service
|
||||
try {
|
||||
Storage::move($filepath, $backup);
|
||||
Storage::put($filepath, $data['contents']);
|
||||
} catch(\Exception $ex) {
|
||||
} catch (\Exception $ex) {
|
||||
Storage::move($backup, $filepath);
|
||||
throw $ex;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user