@@ -41,8 +41,9 @@ |
||
41 | 41 | try { |
42 | 42 | $file = $data; |
43 | 43 | //$file = $this->manager->getRepository(File::class)->findOneBy(['url' => $request->getPathInfo()]); |
44 | - if (!$file) |
|
45 | - throw new \Exception('Not found', 404); |
|
44 | + if (!$file) { |
|
45 | + throw new \Exception('Not found', 404); |
|
46 | + } |
|
46 | 47 | |
47 | 48 | |
48 | 49 | $content = $file->getContent(); |