]> BookStack Code Mirror - bookstack/blobdiff - app/PageRevision.php
Updated 'Spanish Argentina' translation.
[bookstack] / app / PageRevision.php
index 0a9764729dded7bca21748e581605fba61887565..ffcc4f9d25b26ec81eb6fc89db62b4393666e0a6 100644 (file)
@@ -1,6 +1,5 @@
 <?php namespace BookStack;
 
-
 class PageRevision extends Model
 {
     protected $fillable = ['name', 'html', 'text', 'markdown', 'summary'];
@@ -31,7 +30,9 @@ class PageRevision extends Model
     public function getUrl($path = null)
     {
         $url = $this->page->getUrl() . '/revisions/' . $this->id;
-        if ($path) return $url . '/' . trim($path, '/');
+        if ($path) {
+            return $url . '/' . trim($path, '/');
+        }
         return $url;
     }
 
@@ -58,5 +59,4 @@ class PageRevision extends Model
     {
         return $type === 'revision';
     }
-
 }