Setup pint & run code style fix

This commit is contained in:
gdarko
2024-01-29 04:46:01 -06:00
parent 8de34efd8c
commit 4ab92473e9
406 changed files with 1616 additions and 2026 deletions

View File

@@ -11,15 +11,15 @@ use Spatie\MediaLibrary\InteractsWithMedia;
class Company extends Model implements HasMedia
{
use HasFactory;
use InteractsWithMedia;
use HasFactory;
protected $guarded = [
'id'
'id',
];
public const COMPANY_LEVEL = 'company_level';
public const CUSTOMER_LEVEL = 'customer_level';
protected $appends = ['logo', 'logo_path'];
@@ -160,7 +160,7 @@ class Company extends Model implements HasMedia
$super_admin = BouncerFacade::role()->firstOrCreate([
'name' => 'super admin',
'title' => 'Super Admin',
'scope' => $this->id
'scope' => $this->id,
]);
foreach (config('abilities.abilities') as $ability) {
@@ -292,7 +292,6 @@ class Company extends Model implements HasMedia
$this->customFieldValues()->delete();
}
if ($this->customFields()->exists()) {
$this->customFields()->delete();
}