Skip to content

Commit 9a12972

Browse files
committed
Fix code style.
1 parent d0c94c6 commit 9a12972

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

stubs/modules/Blog/Tests/AuthorTest.php

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

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

@@ -76,7 +76,7 @@
7676
});
7777

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

8181
$response->assertStatus(200);
8282

@@ -99,7 +99,7 @@
9999
});
100100

101101
test('author can be updated', function () {
102-
$response = $this->loggedRequest->put('/admin/blog-author/' . $this->author->id, [
102+
$response = $this->loggedRequest->put('/admin/blog-author/'.$this->author->id, [
103103
'name' => 'New Name',
104104
'email' => '[email protected]',
105105
]);
@@ -125,7 +125,7 @@
125125
});
126126

127127
test('author can be deleted', function () {
128-
$response = $this->loggedRequest->delete('/admin/blog-author/' . $this->user->id);
128+
$response = $this->loggedRequest->delete('/admin/blog-author/'.$this->user->id);
129129

130130
$response->assertRedirect('/admin/blog-author');
131131

stubs/modules/Blog/Tests/CategoryTest.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
afterEach(function () {
2525
if ($this->category->image) {
26-
Storage::disk('public')->delete('blog/' . $this->category->image);
26+
Storage::disk('public')->delete('blog/'.$this->category->image);
2727
}
2828
});
2929

@@ -75,7 +75,7 @@
7575
});
7676

7777
test('category edit page can be rendered', function () {
78-
$response = $this->loggedRequest->get('/admin/blog-category/' . $this->category->id . '/edit');
78+
$response = $this->loggedRequest->get('/admin/blog-category/'.$this->category->id.'/edit');
7979

8080
$response->assertStatus(200);
8181

@@ -99,7 +99,7 @@
9999
});
100100

101101
test('category can be updated', function () {
102-
$response = $this->loggedRequest->put('/admin/blog-category/' . $this->category->id, [
102+
$response = $this->loggedRequest->put('/admin/blog-category/'.$this->category->id, [
103103
'name' => 'New Name',
104104
'is_visible' => true,
105105
]);
@@ -123,7 +123,7 @@
123123
});
124124

125125
test('category can be deleted', function () {
126-
$response = $this->loggedRequest->delete('/admin/blog-category/' . $this->user->id);
126+
$response = $this->loggedRequest->delete('/admin/blog-category/'.$this->user->id);
127127

128128
$response->assertRedirect('/admin/blog-category');
129129

stubs/modules/Blog/Tests/PostTest.php

+4-4
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

@@ -77,7 +77,7 @@
7777
});
7878

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

8282
$response->assertStatus(200);
8383

@@ -104,7 +104,7 @@
104104
});
105105

106106
test('post can be updated', function () {
107-
$response = $this->loggedRequest->put('/admin/blog-post/' . $this->post->id, [
107+
$response = $this->loggedRequest->put('/admin/blog-post/'.$this->post->id, [
108108
'blog_author_id' => null,
109109
'blog_category_id' => null,
110110
'title' => 'New Post Title',
@@ -133,7 +133,7 @@
133133
});
134134

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

138138
$response->assertRedirect('/admin/blog-post');
139139

0 commit comments

Comments
 (0)