Skip to content

Commit 1244d2a

Browse files
feat(laravel): making cs fixer happy
1 parent de607f1 commit 1244d2a

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/Laravel/Tests/GraphQlTest.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
use Illuminate\Foundation\Testing\RefreshDatabase;
2020
use Orchestra\Testbench\Concerns\WithWorkbench;
2121
use Orchestra\Testbench\TestCase;
22-
use Symfony\Component\Uid\Ulid;
2322
use Workbench\Database\Factories\AuthorFactory;
2423
use Workbench\Database\Factories\BookFactory;
2524

@@ -88,8 +87,8 @@ public function testCreateBook(): void
8887
'author' => 'api/authors/'.$author->id,
8988
'isbn' => fake()->isbn13(),
9089
'isAvailable' => rand(0,1) === 1,
91-
]
92-
]
90+
],
91+
],
9392
], ['accept' => ['application/json']]);
9493
$response->assertStatus(200);
9594
$data = $response->json();

src/Laravel/workbench/database/factories/BookFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function definition(): array
3737
'author_id' => AuthorFactory::new(),
3838
'isbn' => fake()->isbn13(),
3939
'publication_date' => fake()->optional()->date(),
40-
'is_available' => rand(0,1) === 1,
40+
'is_available' => 1 === random_int(0, 1),
4141
'internal_note' => fake()->text(),
4242
];
4343
}

0 commit comments

Comments
 (0)