Passed
Push — master ( 35d424...d32fef )
by Luiz Kim
07:53
created
src/Controller/GetFileDataAction.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,8 +41,9 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.