code style fix

This commit is contained in:
Peter Papp
2021-04-25 09:02:00 +02:00
parent e103e61617
commit c47886fb8b
157 changed files with 2250 additions and 2583 deletions
+4 -5
View File
@@ -1,11 +1,10 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Support\Str;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Notifications\Notifiable;
use Illuminate\Support\Str;
use Illuminate\Database\Eloquent\Factories\HasFactory;
class Share extends Model
{
@@ -22,7 +21,7 @@ class Share extends Model
protected $primaryKey = 'token';
protected $casts = [
'is_protected' => 'boolean'
'is_protected' => 'boolean',
];
/**
@@ -48,7 +47,7 @@ class Share extends Model
parent::boot();
static::creating(function ($shared) {
$shared->id = (string)Str::uuid();
$shared->id = (string) Str::uuid();
$shared->token = Str::random(16);
});
}