Skip to content

Commit 9ddec46

Browse files
committed
fix: additional Pint style fixes
- Fix brace position in migration anonymous class - Reorder class elements (traits, constants, properties, methods) - Add blank lines between use statements
1 parent 4142e1a commit 9ddec46

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

server-documentation/database/migrations/2024_01_01_000004_update_documents_type_column.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
use Illuminate\Support\Facades\DB;
55
use Illuminate\Support\Facades\Schema;
66

7-
return new class extends Migration {
7+
return new class extends Migration
8+
{
89
public function up(): void
910
{
1011
$driver = Schema::getConnection()->getDriverName();

server-documentation/src/Models/Document.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,8 @@ class Document extends Model
4949
{
5050
/** @use HasFactory<DocumentFactory> */
5151
use HasFactory;
52-
use SoftDeletes;
5352

54-
protected static function newFactory(): DocumentFactory
55-
{
56-
return DocumentFactory::new();
57-
}
53+
use SoftDeletes;
5854

5955
/**
6056
* Resource name for API/permission references.
@@ -110,6 +106,11 @@ protected function casts(): array
110106
];
111107
}
112108

109+
protected static function newFactory(): DocumentFactory
110+
{
111+
return DocumentFactory::new();
112+
}
113+
113114
protected static function booted(): void
114115
{
115116
static::creating(function (Document $document) {

0 commit comments

Comments
 (0)