Apply fixes from StyleCI

This commit is contained in:
Dane Everitt 2016-12-14 21:56:25 +00:00 committed by StyleCI Bot
parent fc38b09e1f
commit efda0dd009
9 changed files with 98 additions and 88 deletions

View file

@ -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;
}
}
}