Skip to content

Commit 67ba205

Browse files
committed
Apply StyleCI fixes
1 parent 7c12a23 commit 67ba205

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

app/Jobs/LikeThread.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
use App\Exceptions\CannotLikeThreadMultipleTimes;
66
use App\Models\Thread;
77
use App\User;
8-
use Illuminate\Database\QueryException;
98

109
class LikeThread
1110
{

tests/Feature/ForumTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -181,12 +181,12 @@ public function users_can_like_a_thread()
181181

182182
$this->loginAs($user);
183183
$this->put("/forum/{$thread->slug}/like")
184-
->assertRedirectedTo("/forum/the-first-thread");
184+
->assertRedirectedTo('/forum/the-first-thread');
185185

186186
$this->seeInDatabase('likes', [
187187
'user_id' => $user->id,
188188
'likeable_id' => $thread->id,
189-
'likeable_type' => 'threads'
189+
'likeable_type' => 'threads',
190190
]);
191191
}
192192

@@ -199,12 +199,12 @@ public function users_can_unlike_a_thread()
199199

200200
$this->loginAs($user);
201201
$this->delete("/forum/{$thread->slug}/unlike")
202-
->assertRedirectedTo("/forum/the-first-thread");
202+
->assertRedirectedTo('/forum/the-first-thread');
203203

204204
$this->notSeeInDatabase('likes', [
205205
'user_id' => $user->id,
206206
'likeable_id' => $thread->id,
207-
'likeable_type' => 'threads'
207+
'likeable_type' => 'threads',
208208
]);
209209
}
210210
}

tests/Feature/ReplyTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public function users_can_like_a_reply()
133133
$this->seeInDatabase('likes', [
134134
'user_id' => $user->id,
135135
'likeable_id' => $reply->id,
136-
'likeable_type' => 'replies'
136+
'likeable_type' => 'replies',
137137
]);
138138
}
139139

@@ -153,7 +153,7 @@ public function users_can_unlike_a_reply()
153153
$this->notSeeInDatabase('likes', [
154154
'user_id' => $user->id,
155155
'likeable_id' => $reply->id,
156-
'likeable_type' => 'replies'
156+
'likeable_type' => 'replies',
157157
]);
158158
}
159159
}

0 commit comments

Comments
 (0)