]> BookStack Code Mirror - bookstack/blobdiff - app/Image.php
settings.php: add missing french translation
[bookstack] / app / Image.php
index 66d54ba302befb6c9df5f232be5a262dcce4a08f..ad23a077adc5ba12cb652ad55043fa3289101f4d 100644 (file)
@@ -1,13 +1,9 @@
-<?php
-
-namespace BookStack;
-
+<?php namespace BookStack;
 
 use Images;
 
-class Image
+class Image extends Ownable
 {
-    use Ownable;
 
     protected $fillable = ['name'];
 
@@ -15,10 +11,11 @@ class Image
      * Get a thumbnail for this image.
      * @param  int       $width
      * @param  int       $height
-     * @param bool|false $hardCrop
+     * @param bool|false $keepRatio
+     * @return string
      */
-    public function getThumb($width, $height, $hardCrop = false)
+    public function getThumb($width, $height, $keepRatio = false)
     {
-        Images::getThumbnail($this, $width, $height, $hardCrop);
+        return Images::getThumbnail($this, $width, $height, $keepRatio);
     }
 }