Skip to content
This repository was archived by the owner on Jan 6, 2026. It is now read-only.

Commit 9b18dcb

Browse files
Fix code style for localization, logging configuration, factories, and migrations
1 parent f7fa2e1 commit 9b18dcb

15 files changed

+298
-310
lines changed

app/Models/SettingsSection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212

1313
class SettingsSection extends Model
1414
{
15-
use HasTranslations;
1615
use HasFactory, SoftDeletes;
16+
use HasTranslations;
1717

1818
protected $fillable = [
1919
'parent_id',

config/logging.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@
8181
'handler_with' => [
8282
'stream' => 'php://stderr',
8383
],
84-
'formatter' => env('LOG_STDERR_FORMATTER'),
85-
'processors' => [PsrLogMessageProcessor::class],
84+
'formatter' => env('LOG_STDERR_FORMATTER'),
85+
'processors' => [PsrLogMessageProcessor::class],
8686
],
8787

8888
'syslog' => [

database/factories/FilamentFactory.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,11 @@
44

55
namespace Database\Factories;
66

7-
use App\Models\Filament;
87
use Illuminate\Database\Eloquent\Factories\Factory;
98
use Illuminate\Support\Carbon;
109

1110
class FilamentFactory extends Factory
1211
{
13-
protected $model = Filament::class;
14-
1512
public function definition(): array
1613
{
1714
return [

database/factories/PrinterFactory.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,11 @@
44

55
namespace Database\Factories;
66

7-
use App\Models\Printer;
87
use Illuminate\Database\Eloquent\Factories\Factory;
98
use Illuminate\Support\Carbon;
109

1110
class PrinterFactory extends Factory
1211
{
13-
protected $model = Printer::class;
14-
1512
public function definition(): array
1613
{
1714
return [

database/factories/SettingsSectionFactory.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,11 @@
44

55
namespace Database\Factories;
66

7-
use App\Models\SettingsSection;
87
use Illuminate\Database\Eloquent\Factories\Factory;
98
use Illuminate\Support\Carbon;
109

1110
class SettingsSectionFactory extends Factory
1211
{
13-
protected $model = SettingsSection::class;
14-
1512
public function definition(): array
1613
{
1714
return [

database/factories/VendorFactory.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,11 @@
44

55
namespace Database\Factories;
66

7-
use App\Models\Vendor;
87
use Illuminate\Database\Eloquent\Factories\Factory;
98
use Illuminate\Support\Carbon;
109

1110
class VendorFactory extends Factory
1211
{
13-
protected $model = Vendor::class;
14-
1512
public function definition(): array
1613
{
1714
return [

database/migrations/2026_01_01_163006_create_vendors_table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
return new class extends Migration {
1010
public function up(): void
1111
{
12-
Schema::create('vendors', function (Blueprint $table) {
12+
Schema::create('vendors', function (Blueprint $table): void {
1313
$table->id();
1414

1515
$table->string('slug')->unique();

database/migrations/2026_01_01_164438_create_printers_table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
return new class extends Migration {
1010
public function up(): void
1111
{
12-
Schema::create('printers', function (Blueprint $table) {
12+
Schema::create('printers', function (Blueprint $table): void {
1313
$table->id();
1414

1515
$table->foreignId('vendor_id')->constrained('vendors')->restrictOnDelete();

database/migrations/2026_01_01_164559_create_filaments_table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
return new class extends Migration {
1010
public function up(): void
1111
{
12-
Schema::create('filaments', function (Blueprint $table) {
12+
Schema::create('filaments', function (Blueprint $table): void {
1313
$table->id();
1414

1515
$table->foreignId('vendor_id')->constrained('vendors')->restrictOnDelete();

database/migrations/2026_01_01_170158_create_settings_sections_table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
return new class extends Migration {
1010
public function up(): void
1111
{
12-
Schema::create('settings_sections', function (Blueprint $table) {
12+
Schema::create('settings_sections', function (Blueprint $table): void {
1313
$table->id();
1414

1515
$table->string('key')->unique();

0 commit comments

Comments
 (0)