]> BookStack Code Mirror - bookstack/blobdiff - app/Uploads/Image.php
Fixed tests from streaming changes
[bookstack] / app / Uploads / Image.php
index 3657aa9469d2bac249fe0b146608a4784ba96eef..bdf10f080fe99cd991f52bc0174e75cc4c5ac00f 100644 (file)
@@ -1,21 +1,25 @@
-<?php namespace BookStack\Uploads;
+<?php
+
+namespace BookStack\Uploads;
 
 use BookStack\Entities\Models\Page;
 use BookStack\Model;
 use BookStack\Traits\HasCreatorAndUpdater;
+use Illuminate\Database\Eloquent\Factories\HasFactory;
 
 /**
- * @property int $id
+ * @property int    $id
  * @property string $name
  * @property string $url
  * @property string $path
  * @property string $type
- * @property int $uploaded_to
- * @property int $created_by
- * @property int $updated_by
+ * @property int    $uploaded_to
+ * @property int    $created_by
+ * @property int    $updated_by
  */
 class Image extends Model
 {
+    use HasFactory;
     use HasCreatorAndUpdater;
 
     protected $fillable = ['name'];
@@ -23,6 +27,7 @@ class Image extends Model
 
     /**
      * Get a thumbnail for this image.
+     *
      * @throws \Exception
      */
     public function getThumb(int $width, int $height, bool $keepRatio = false): string