@@ -23,13 +23,13 @@ |
||
| 23 | 23 | { |
| 24 | 24 | if ($request->hasFile('file')) { |
| 25 | 25 | if ($request->file('file')->isValid()) { |
| 26 | - try{ |
|
| 26 | + try { |
|
| 27 | 27 | $request->file->storeAs('gedcom', 'file.ged'); |
| 28 | 28 | $parser = new GedcomParser(); |
| 29 | 29 | $parser->parse($request->file('file'), true); |
| 30 | 30 | |
| 31 | 31 | return ['File uploaded']; |
| 32 | - }catch(Exception $e){ |
|
| 32 | + } catch (Exception $e) { |
|
| 33 | 33 | return ['Not uploaded']; |
| 34 | 34 | } |
| 35 | 35 | } |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | $parser->parse($request->file('file'), true); |
| 30 | 30 | |
| 31 | 31 | return ['File uploaded']; |
| 32 | - }catch(Exception $e){ |
|
| 32 | + } catch(Exception $e){ |
|
| 33 | 33 | return ['Not uploaded']; |
| 34 | 34 | } |
| 35 | 35 | } |