]> BookStack Code Mirror - bookstack/blobdiff - app/Attachment.php
Updated 'Spanish Argentina' translation.
[bookstack] / app / Attachment.php
index fe291bec25d0f76c7a73f2f60505da6f570f1598..55344cd7d4d47c26b85d486843ce5d1c6791252e 100644 (file)
@@ -1,6 +1,5 @@
 <?php namespace BookStack;
 
-
 class Attachment extends Ownable
 {
     protected $fillable = ['name', 'order'];
@@ -11,7 +10,9 @@ class Attachment extends Ownable
      */
     public function getFileName()
     {
-        if (str_contains($this->name, '.')) return $this->name;
+        if (str_contains($this->name, '.')) {
+            return $this->name;
+        }
         return $this->name . '.' . $this->extension;
     }
 
@@ -32,5 +33,4 @@ class Attachment extends Ownable
     {
         return baseUrl('/attachments/' . $this->id);
     }
-
 }