@@ -40,8 +40,7 @@ |
||
| 40 | 40 | $this->gpxDirectory, |
| 41 | 41 | $newFilename |
| 42 | 42 | ); |
| 43 | - } |
|
| 44 | - catch (FileException $e) { |
|
| 43 | + } catch (FileException $e) { |
|
| 45 | 44 | throw new HttpException(500, "Failed finishing GPX upload: " . $e->getMessage()); |
| 46 | 45 | } |
| 47 | 46 | return $newFilename; |
@@ -35,7 +35,7 @@ |
||
| 35 | 35 | { |
| 36 | 36 | $fs = new Filesystem(); |
| 37 | 37 | $finder = new Finder(); |
| 38 | - foreach($finder->in(__DIR__ . '/gpx')->name('/\.gpx$/i') as $source) { |
|
| 38 | + foreach ($finder->in(__DIR__ . '/gpx')->name('/\.gpx$/i') as $source) { |
|
| 39 | 39 | $targetPath = sys_get_temp_dir() . '/' . $source->getFilename(); |
| 40 | 40 | $fs->copy($source->getPathname(), $targetPath); |
| 41 | 41 | $uploadedFile = $this->uploaderHelper->uploadGpxFile(new File($targetPath)); |