Skip to content

Commit ed44a63

Browse files
committed
Code style fixes.
1 parent a9bae71 commit ed44a63

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

stubs/modules/Blog/Http/Controllers/PostController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function index(): Response
2626
->search(request('searchContext'), request('searchTerm'))
2727
->paginate(request('rowsPerPage', 10))
2828
->withQueryString()
29-
->through(fn($post) => [
29+
->through(fn ($post) => [
3030
'id' => $post->id,
3131
'image_url' => $post->image_url,
3232
'title' => $post->title,

stubs/modules/Blog/Tests/PostTest.php

+11-11
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
afterEach(function () {
2424
if ($this->post->image) {
25-
Storage::disk('public')->delete('blog/' . $this->post->image);
25+
Storage::disk('public')->delete('blog/'.$this->post->image);
2626
}
2727
});
2828

@@ -32,12 +32,12 @@
3232
$response->assertStatus(200);
3333

3434
$response->assertInertia(
35-
fn(Assert $page) => $page
35+
fn (Assert $page) => $page
3636
->component('BlogPost/PostIndex')
3737
->has(
3838
'posts.data',
3939
1,
40-
fn(Assert $page) => $page
40+
fn (Assert $page) => $page
4141
->where('id', $this->post->id)
4242
->where('image_url', $this->post->image_url)
4343
->where('title', $this->post->title)
@@ -52,7 +52,7 @@
5252
$response->assertStatus(200);
5353

5454
$response->assertInertia(
55-
fn(Assert $page) => $page
55+
fn (Assert $page) => $page
5656
->component('BlogPost/PostForm')
5757
);
5858
});
@@ -78,16 +78,16 @@
7878
});
7979

8080
test('post edit page can be rendered', function () {
81-
$response = $this->loggedRequest->get('/admin/blog-post/' . $this->post->id . '/edit');
81+
$response = $this->loggedRequest->get('/admin/blog-post/'.$this->post->id.'/edit');
8282

8383
$response->assertStatus(200);
8484

8585
$response->assertInertia(
86-
fn(Assert $page) => $page
86+
fn (Assert $page) => $page
8787
->component('BlogPost/PostForm')
8888
->has(
8989
'post',
90-
fn(Assert $page) => $page
90+
fn (Assert $page) => $page
9191
->where('id', $this->post->id)
9292
->where('blog_author_id', $this->post->blog_author_id)
9393
->where('blog_category_id', $this->post->blog_category_id)
@@ -106,7 +106,7 @@
106106
});
107107

108108
test('post can be updated', function () {
109-
$response = $this->loggedRequest->put('/admin/blog-post/' . $this->post->id, [
109+
$response = $this->loggedRequest->put('/admin/blog-post/'.$this->post->id, [
110110
'blog_author_id' => null,
111111
'blog_category_id' => null,
112112
'title' => 'New Post Title',
@@ -121,12 +121,12 @@
121121

122122
$redirectResponse = $this->loggedRequest->get('/admin/blog-post');
123123
$redirectResponse->assertInertia(
124-
fn(Assert $page) => $page
124+
fn (Assert $page) => $page
125125
->component('BlogPost/PostIndex')
126126
->has(
127127
'posts.data',
128128
1,
129-
fn(Assert $page) => $page
129+
fn (Assert $page) => $page
130130
->where('id', $this->post->id)
131131
->where('title', 'New Post Title')
132132
->where('image_url', $this->post->image_url)
@@ -136,7 +136,7 @@
136136
});
137137

138138
test('post can be deleted', function () {
139-
$response = $this->loggedRequest->delete('/admin/blog-post/' . $this->user->id);
139+
$response = $this->loggedRequest->delete('/admin/blog-post/'.$this->user->id);
140140

141141
$response->assertRedirect('/admin/blog-post');
142142

stubs/modules/Blog/Tests/Site/PostTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
afterEach(function () {
1919
if ($this->post->image) {
20-
Storage::disk('public')->delete('blog/' . $this->post->image);
20+
Storage::disk('public')->delete('blog/'.$this->post->image);
2121
}
2222
});
2323

@@ -32,7 +32,7 @@
3232

3333
test('blog post page can be rendered', function () {
3434
$this->withoutVite();
35-
$response = $this->get('/blog/' . $this->post->slug);
35+
$response = $this->get('/blog/'.$this->post->slug);
3636

3737
$response->assertStatus(200);
3838
$response->assertSee($this->post->title);

0 commit comments

Comments
 (0)