Passed
Push — master ( 27cbe4...83f7cd )
by Luiz Kim
02:33
created
src/Service/FileService.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -19,13 +19,13 @@
 block discarded – undo
19 19
 
20 20
     public function getFileUrl(People $people): ?array
21 21
     {
22
-      if ($people->getImage() instanceof File)
22
+        if ($people->getImage() instanceof File)
23 23
         return [
24
-          'id'     => $people->getImage()->getId(),
25
-          'domain' => $this->domainService->getMainDomain(),
26
-          'url'    => '/files/' . $people->getImage()->getId() . '/download'
24
+            'id'     => $people->getImage()->getId(),
25
+            'domain' => $this->domainService->getMainDomain(),
26
+            'url'    => '/files/' . $people->getImage()->getId() . '/download'
27 27
         ];
28 28
   
29
-      return null;
29
+        return null;
30 30
     }
31 31
 }
Please login to merge, or discard this patch.
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,12 +19,13 @@
 block discarded – undo
19 19
 
20 20
     public function getFileUrl(People $people): ?array
21 21
     {
22
-      if ($people->getImage() instanceof File)
23
-        return [
22
+      if ($people->getImage() instanceof File) {
23
+              return [
24 24
           'id'     => $people->getImage()->getId(),
25 25
           'domain' => $this->domainService->getMainDomain(),
26 26
           'url'    => '/files/' . $people->getImage()->getId() . '/download'
27 27
         ];
28
+      }
28 29
   
29 30
       return null;
30 31
     }
Please login to merge, or discard this patch.